claim managemnet with mock pi created
This commit is contained in:
parent
5a585d17c3
commit
ca936cc8d8
@ -239,7 +239,7 @@ function AppRoutes({ onLogout }: AppProps) {
|
||||
navigate('/my-requests');
|
||||
toast.success('Request Submitted Successfully!', {
|
||||
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') {
|
||||
toast.success('Request Approved', {
|
||||
description: 'The request has been approved and forwarded to the next step.',
|
||||
duration: 5000,
|
||||
duration: 1000,
|
||||
});
|
||||
} else {
|
||||
toast.error('Request Rejected', {
|
||||
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);
|
||||
toast.error('Failed to Submit Request', {
|
||||
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
|
||||
}
|
||||
|
||||
@ -380,3 +380,4 @@ For questions or issues, refer to:
|
||||
- Data mapping: `utils/claimDataMapper.ts`
|
||||
- SRS Document: `Dealer_Claim_Managment.md`
|
||||
|
||||
|
||||
|
||||
@ -160,3 +160,4 @@ export function ActivityInformationCard({ activityInfo, className }: ActivityInf
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -73,3 +73,4 @@ export function DealerInformationCard({ dealerInfo, className }: DealerInformati
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -256,3 +256,4 @@ export function ProcessDetailsCard({
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -120,3 +120,4 @@ export function ProposalDetailsCard({ proposalDetails, className }: ProposalDeta
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -74,3 +74,4 @@ export function RequestInitiatorCard({ initiatorInfo, className }: RequestInitia
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ export { ProposalDetailsCard } from './ProposalDetailsCard';
|
||||
export { ProcessDetailsCard } from './ProcessDetailsCard';
|
||||
export { RequestInitiatorCard } from './RequestInitiatorCard';
|
||||
|
||||
|
||||
|
||||
@ -193,3 +193,4 @@ export function EditClaimAmountModal({
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -163,3 +163,4 @@ export function AdaptiveOverviewTab({
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -308,3 +308,4 @@ export function ClaimManagementWorkflowTab({
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -187,3 +187,4 @@ export function getRoleBasedVisibility(role: RequestRole): RoleBasedVisibility {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -199,3 +199,4 @@ export function mapToClaimManagementRequest(apiRequest: any, userId: string): Cl
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -265,3 +265,4 @@ export function extractWorkflowFromRequest(apiRequest: any): {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user