diff --git a/src/App.tsx b/src/App.tsx index 819117b..36c199c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -51,7 +51,7 @@ import { SocketProvider } from './context/SocketContext'; // Layout Component const AppLayout = ({ onLogout, title }: { onLogout: () => void, title: string }) => { return ( -
{stage.name}
- {stage.description && ( -{stage.description}
- )} - {stage.evaluators && stage.evaluators.length > 0 ? ( -- Evaluators: {stage.evaluators.join(' + ')} -
- ) : (() => { - // Determine expected count for this stage - const expectedMap: Record{stage.name}
+ {stage.description && ( +{stage.description}
+ )} + + {renderApprovers(stage.name as string)} + + {stage.evaluators && stage.evaluators.length > 0 && !['LOI Approval', 'LOA', '1st Level Interview', '2nd Level Interview', '3rd Level Interview'].includes(stage.name as string) && ( +
+
- {stage.status === 'completed' && stage.date && `Completed: ${new Date(stage.date).toLocaleDateString()}`} - {stage.status === 'active' && 'In Progress'} - {stage.status === 'pending' && 'Pending'} -
++ {stage.status === 'completed' && stage.date && `Completed: ${new Date(stage.date).toLocaleDateString()}`} + {stage.status === 'active' && 'In Progress'} + {stage.status === 'pending' && 'Pending'} +
+{branchStage.name}
+ {branchStage.description && ( +{branchStage.description}
)} + + {(() => { + const branchDocsCount = documents.filter(doc => + doc.documentType?.toLowerCase().includes(branchStage.name.toLowerCase().split(' ')[0]) || + doc.stage === branchStage.name + ).length; + + return ( ++ {branchStage.status === 'completed' && branchStage.date && `Done: ${new Date(branchStage.date).toLocaleDateString()}`} + {branchStage.status === 'active' && 'Evaluating'} + {branchStage.status === 'pending' && 'Pending'} +
{branchStage.name}
- {branchStage.description && ( -{branchStage.description}
- )} - - {/* Branch Stage Docs Link */} - {(() => { - const branchDocsCount = documents.filter(doc => - doc.documentType?.toLowerCase().includes(branchStage.name.toLowerCase().split(' ')[0]) || - doc.stage === branchStage.name - ).length; - - return ( -- {branchStage.status === 'completed' && branchStage.date && `Completed: ${new Date(branchStage.date).toLocaleDateString()}`} - {branchStage.status === 'active' && 'In Progress'} - {branchStage.status === 'pending' && 'Pending'} -
-