Skip to content

Build the participant profile page with editable cards and uploads - #33

Merged
saitunguturu merged 2 commits into
mainfrom
codex/profile-page-31
Nov 12, 2026
Merged

saitunguturu merged 2 commits into
mainfrom
codex/profile-page-31

Conversation

@abhinav-bellapu

Copy link
Copy Markdown
Collaborator

👍 What's new in this PR

Replaces the always-open profile form with the Figma card layout: personal info, military service, education and employment, resume/documents, and Coursera email. Each editable card has its own draft, Save/Cancel controls, validation, saving indicator, success message, and retryable error state.

  • Saves only the edited card's columns, so saving one section cannot overwrite changes in another. Incomplete legacy fields elsewhere do not block a section save.
  • Reuses authenticated participant access and private Supabase uploads/downloads. Upload controls expand from the documents card; saved files remain downloadable from the overview.
  • Adds the VTS navbar, Figma logo/info assets, Oswald heading, unverified banner/badges, account menu, and responsive layout.

Behavior decisions: unverified users can still edit and upload. This preserves the explicit acceptance flow in closed #13 and merged #16, and #31's visible-unverified requirement, despite the locked cards in the mockup. Verify is shown only when unverified and retains the honest placeholder until #21 / #27 lands. Affiliation uses the existing saved field in place of the mockup's unsupported location field. Coursera displays the saved email without claiming an enrollment status the current schema does not track.

Closes #31.

Screenshots

Fictional profile values; original test-account details were restored after capture.

Desktop, 1440 CSS px:

Desktop profile with editable cards and unverified status

Mobile, 390 CSS px:

Mobile profile with stacked cards

👍 How to review

  1. Review section validation and partial updates in lib/participant-profile.ts and lib/participant-data.ts.
  2. Review components/participant/profile-page-content.tsx and the scoped profile styles. Existing onboarding upload behavior remains the default.
  3. Sign in, open /profile, edit a card, save, and refresh. Try an invalid email and cancel an unsaved edit. Upload a resume and a supporting document, refresh, then download.

Validation completed:

  • 44 automated tests pass, including partial updates, protected-column exclusion, concurrent section persistence, failed saves/session changes, and section validation.
  • ESLint, Prettier, TypeScript, and next build --webpack pass.
  • Live Supabase: saved all four editable sections and verified values after refresh; uploaded the fictional PDF to both resume/document categories and verified both listings after refresh. Downloaded PDF matches the original SHA-256.
  • Browser: invalid-email feedback, saving state, Cancel/focus return, verification placeholder, desktop and mobile layouts, no mobile horizontal overflow.
  • Verified rendering checked with a temporary local fixture: Verify controls and unverified warnings disappear. The fixture was removed; the account's actual verification status was never changed.

No migrations or dependency changes.

👍 Next steps

Wire the Verify action to the ID-verification flow when #27 is ready; it also touches the profile page, so that integration needs reconciliation. Review and merge this frontend change.

👍 Relevant links

@saitunguturu
saitunguturu merged commit 71c90e9 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile Page (Frontend) Onboarding Flow + Resume/Document Upload

2 participants