You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Description
Admin can view user profile pages, view their reports, and have the option to ban the user.
Acceptance Criteria
Notes
Context, risks, or open questions.