elmeg-demo/.specify/tasks/11_user_preferences.md

20 lines
670 B
Markdown

# Task: User Preferences (Wiki Mode)
## Objective
Implement a preference system to allow users to toggle "Wiki Mode" (disable social features).
## Steps
- [x] **Backend**:
- [x] Create `UserPreferences` model (user_id, wiki_mode: bool, show_ratings: bool, show_comments: bool).
- [x] Create API endpoints to Get/Update preferences.
- [x] **Frontend**:
- [x] Create `Settings` page.
- [x] Create `SocialToggle` component.
- [x] Update `ShowDetail` and other pages to conditionally render social components based on preferences.
## Acceptance Criteria
- User can toggle "Wiki Mode" in settings.
- When enabled, Comments and Ratings are hidden from the UI.