claim managemnet with mock pi created

This commit is contained in:
laxmanhalaki 2025-12-08 10:48:33 +05:30
parent 5a585d17c3
commit ca936cc8d8
14 changed files with 17 additions and 4 deletions

View File

@ -239,7 +239,7 @@ function AppRoutes({ onLogout }: AppProps) {
navigate('/my-requests'); navigate('/my-requests');
toast.success('Request Submitted Successfully!', { toast.success('Request Submitted Successfully!', {
description: `Your request "${requestData.title}" (${requestId}) has been created and sent for approval.`, description: `Your request "${requestData.title}" (${requestId}) has been created and sent for approval.`,
duration: 5000, duration: 1000,
}); });
}; };
@ -249,12 +249,12 @@ function AppRoutes({ onLogout }: AppProps) {
if (action === 'approve') { if (action === 'approve') {
toast.success('Request Approved', { toast.success('Request Approved', {
description: 'The request has been approved and forwarded to the next step.', description: 'The request has been approved and forwarded to the next step.',
duration: 5000, duration: 1000,
}); });
} else { } else {
toast.error('Request Rejected', { toast.error('Request Rejected', {
description: 'The request has been rejected and returned to the initiator.', description: 'The request has been rejected and returned to the initiator.',
duration: 5000, duration: 1000,
}); });
} }
@ -503,7 +503,7 @@ function AppRoutes({ onLogout }: AppProps) {
console.error('[Claim Management] Failed to create request:', error); console.error('[Claim Management] Failed to create request:', error);
toast.error('Failed to Submit Request', { toast.error('Failed to Submit Request', {
description: error.message || 'An error occurred while creating the request. Please try again.', description: error.message || 'An error occurred while creating the request. Please try again.',
duration: 6000, duration: 2000,
}); });
throw error; // Re-throw to allow component to handle it throw error; // Re-throw to allow component to handle it
} }

View File

@ -380,3 +380,4 @@ For questions or issues, refer to:
- Data mapping: `utils/claimDataMapper.ts` - Data mapping: `utils/claimDataMapper.ts`
- SRS Document: `Dealer_Claim_Managment.md` - SRS Document: `Dealer_Claim_Managment.md`

View File

@ -160,3 +160,4 @@ export function ActivityInformationCard({ activityInfo, className }: ActivityInf
); );
} }

View File

@ -73,3 +73,4 @@ export function DealerInformationCard({ dealerInfo, className }: DealerInformati
); );
} }

View File

@ -256,3 +256,4 @@ export function ProcessDetailsCard({
); );
} }

View File

@ -120,3 +120,4 @@ export function ProposalDetailsCard({ proposalDetails, className }: ProposalDeta
); );
} }

View File

@ -74,3 +74,4 @@ export function RequestInitiatorCard({ initiatorInfo, className }: RequestInitia
); );
} }

View File

@ -9,3 +9,4 @@ export { ProposalDetailsCard } from './ProposalDetailsCard';
export { ProcessDetailsCard } from './ProcessDetailsCard'; export { ProcessDetailsCard } from './ProcessDetailsCard';
export { RequestInitiatorCard } from './RequestInitiatorCard'; export { RequestInitiatorCard } from './RequestInitiatorCard';

View File

@ -193,3 +193,4 @@ export function EditClaimAmountModal({
); );
} }

View File

@ -163,3 +163,4 @@ export function AdaptiveOverviewTab({
); );
} }

View File

@ -308,3 +308,4 @@ export function ClaimManagementWorkflowTab({
); );
} }

View File

@ -187,3 +187,4 @@ export function getRoleBasedVisibility(role: RequestRole): RoleBasedVisibility {
} }
} }

View File

@ -199,3 +199,4 @@ export function mapToClaimManagementRequest(apiRequest: any, userId: string): Cl
}; };
} }

View File

@ -265,3 +265,4 @@ export function extractWorkflowFromRequest(apiRequest: any): {
}; };
} }