Description:
Users currently cannot save interesting questions to read later. Adding a bookmarking feature would improve user experience by allowing them to save questions for future reference.
Expected Behavior:
- "Bookmark" button on each question card
- "Bookmarks" page in user profile showing all saved questions
- Remove bookmark option (toggle)
- Bookmarks should persist in database (user's bookmarks array)
Tech Stack:
- Backend: Express.js, MongoDB (add bookmarks to User model)
- Frontend: React (new Bookmarks page)
Suggested Implementation:
-
Backend:
- Add
bookmarks array field to User model (Array of Question ObjectIds)
- Create API endpoints:
- POST /api/users/bookmark/:questionId - Add bookmark
- DELETE /api/users/bookmark/:questionId - Remove bookmark
- GET /api/users/bookmarks - Get all bookmarks (populate question data)
-
Frontend:
- Add bookmark icon button to QuestionCard component
- Create Bookmarks page at /bookmarks route
- Add "Bookmarks" link in user navigation/menu
- Show bookmark status (filled/empty icon) based on saved state
Description:
Users currently cannot save interesting questions to read later. Adding a bookmarking feature would improve user experience by allowing them to save questions for future reference.
Expected Behavior:
Tech Stack:
Suggested Implementation:
Backend:
bookmarksarray field to User model (Array of Question ObjectIds)Frontend: