Skip to content

feat: Create barebones /profile page for authenticated user #48

@ryanpolasky

Description

@ryanpolasky

Description

Create a minimal profile page for the logged-in user. This page fetches data from /api/auth/me and displays their personal info. Styling and design polish will come later from the design team (@Frabina27 & Chris).

Goal

  • Page is accessible at /profile for authenticated users only.
  • On load, fetches data from /api/auth/me.
  • Displays:
    -- name / username
    -- email
    -- profile_picture (show placeholder if missing)
    -- survey_completed status (might not keep this long term, but good to have for dev rn)
  • Handles loading and error states gracefully.
  • Updates data correctly if backend changes (i.e. new profile picture).

Notes

  • Styling/layout isn’t important right now, focus on displaying correct data until design team finalizes.
  • Log errors to console if fetch fails.
  • Code should be modular to plug in design updates later.
  • You'll likely need to check with @PyDev19 for the exact field names you expect from the backend/he sends from the backend. Hooray teamwork! 🥳

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions