Skip to content

[Admin] View Users #65

@peterchinh

Description

@peterchinh

Description

Admin can view user profile pages, view their reports, and have the option to ban the user.

Acceptance Criteria

  • Create page /admin/profile/[id] where id is the user's DB id
  • Refactor (tabs)/profile.tsx into component ProfileView that takes in a userId prop. If userId is empty, use existing user fetching logic. If its populated, fetch user with matching userId.
  • Render ProfileView with empty userId in (tabs)/profile.tsx
  • Render ProfileView with [id] as userId in /admin/profile/[id]
  • Add Ban button in ProfileView if current user is admin AND not looking at their own profile/userId

Notes

Context, risks, or open questions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions