Skip to content

DRAFT -- Create User Profile Page to Display Info and Poll History (pages/profile-page) #39

@tran2106

Description

@tran2106

Build a profile page (/profile) showing user info, polls they created, and polls they participated in. If the user is an admin, display a visible “Admin” label or badge.
Create new page: /profile

  • Fetch user profile from GET /api/users/:userId/profile

Display:

  • firstName, lastName, userName, email

  • Show an “Admin” label/badge if role === "isadmin" (check model)

Sections:

  • “Polls You Created” — display as cards or list

  • “Polls You Participated In” — include poll links

  • Each poll links to /poll/:slug

  • Handle empty states gracefully (e.g. no created polls yet)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions