diff --git a/frontend/src/screens/CandidateProfile.jsx b/frontend/src/screens/CandidateProfile.jsx index a690fd9..10b947f 100644 --- a/frontend/src/screens/CandidateProfile.jsx +++ b/frontend/src/screens/CandidateProfile.jsx @@ -42,7 +42,7 @@ import { companies, fmtDate, moneyK, pick } from '../data/seed' /* Workflow order: learn (Overview, Resume, Documents) → interview (Interview, Forms, Feedback) → track (Notes, Activity) → audit (Timeline, History). */ -const TABS = ['Overview', 'Resume', 'Documents', 'Interview', 'Forms', 'Feedback', 'Notes', 'Activity', 'Timeline', 'History'] +const TABS = ['Overview', 'Resume', 'Interview', 'Forms', 'Feedback', 'Notes', 'Activity', 'Timeline', 'History'] // Forward progression for the live Advance button. Rejected has no next stage. const KANBAN_ORDER = ['Shortlist', 'Screening', 'Assessment', 'Interview', 'Offer', 'Hired'] const LABEL = { fontSize: 12, color: 'var(--text-3)', fontWeight: 600, textTransform: 'uppercase', marginBottom: 8 } @@ -673,20 +673,13 @@ export default function CandidateProfile({ function ResumeTab({ live }) { const source = live.documents?.[0]?.name const resumeKey = s3Api.resumeKeyFrom(live) - if (!live.resume_text) { + if (!s3Api.canOpen(resumeKey)) { return ( - <> - {s3Api.canOpen(resumeKey) && ( -
- {source ? `Extracted from ${source}` : 'Extracted from the application email'} + {source ? `Original CV — ${source}` : 'Original CV from the application'}
- {s3Api.canOpen(resumeKey) && ( -
- {resumeText || 'Resume text not extracted yet.'}
-
+ No CV file stored in S3 for this application.
+ )}