25 lines
1 KiB
Markdown
25 lines
1 KiB
Markdown
# Task: User Profile Enhancements
|
|
|
|
## Objective
|
|
|
|
Enhance the User Profile page to display a comprehensive overview of the user's activity, including attendance, reviews, ratings, and group memberships.
|
|
|
|
## Steps
|
|
|
|
- [x] **Backend**:
|
|
- [x] Create `routers/users.py` to handle user-specific data fetching (or extend `auth.py`).
|
|
- [x] Add endpoint `GET /users/{user_id}/attendance` (or `GET /attendance/me` which exists, but maybe we need public profiles too?).
|
|
- [x] Add endpoint `GET /users/{user_id}/reviews`.
|
|
- [x] Add endpoint `GET /users/{user_id}/groups`.
|
|
- [x] Add endpoint `GET /users/{user_id}/stats` (counts for shows, reviews, etc.).
|
|
- [x] **Frontend**:
|
|
- [x] Update `ProfilePage` to use Tabs (Overview, Attendance, Reviews, Groups).
|
|
- [x] Create `UserAttendanceList` component.
|
|
- [x] Create `UserReviewsList` component.
|
|
- [x] Create `UserGroupsList` component.
|
|
|
|
## Acceptance Criteria
|
|
|
|
- User can see their attended shows.
|
|
- User can see their written reviews.
|
|
- User can see groups they have joined.
|