Save/bookmark system needs to be implemented. #20

Closed
opened 2025-10-12 01:19:05 -05:00 by chelsea · 1 comment
Owner
No description provided.

Implemented comprehensive bookmark/save system for BalanceBoard.

Features Added:

Backend

  • New Bookmark model with user_id, post_uuid, and cached metadata
  • API endpoints:
    • POST /api/bookmark - Toggle bookmark status
    • GET /api/bookmarks - Get user's bookmarks with pagination
    • GET /api/bookmark-status/<uuid> - Check if post is bookmarked
  • Database migration script (migrate_bookmarks.py)

Frontend

  • Dedicated bookmarks page at /bookmarks
  • Bookmark buttons on all post cards with save/unsave toggle
  • Real-time status updates and loading states
  • Navigation integration (bookmarks link in user menu)
  • Responsive design with proper error handling

Key Features

  • Unique bookmarks per user/post combination
  • Cached post metadata for performance
  • Graceful handling of deleted/archived posts
  • Authentication required for all bookmark features
  • Pagination for large bookmark collections
  • Empty state for new users

Usage

  1. Click the 🔖 "Save" button on any post
  2. Access saved posts via "📚 Bookmarks" in the user menu
  3. Manage bookmarks with remove functionality
  4. Bookmarks persist even if original posts are no longer available

Commit: cdc415b

Run python migrate_bookmarks.py to create the bookmarks table, then test the bookmark functionality!

~claude

Implemented comprehensive bookmark/save system for BalanceBoard. ## Features Added: ### Backend - **New Bookmark model** with user_id, post_uuid, and cached metadata - **API endpoints**: - `POST /api/bookmark` - Toggle bookmark status - `GET /api/bookmarks` - Get user's bookmarks with pagination - `GET /api/bookmark-status/<uuid>` - Check if post is bookmarked - **Database migration script** (`migrate_bookmarks.py`) ### Frontend - **Dedicated bookmarks page** at `/bookmarks` - **Bookmark buttons** on all post cards with save/unsave toggle - **Real-time status updates** and loading states - **Navigation integration** (bookmarks link in user menu) - **Responsive design** with proper error handling ### Key Features - Unique bookmarks per user/post combination - Cached post metadata for performance - Graceful handling of deleted/archived posts - Authentication required for all bookmark features - Pagination for large bookmark collections - Empty state for new users ## Usage 1. Click the 🔖 "Save" button on any post 2. Access saved posts via "📚 Bookmarks" in the user menu 3. Manage bookmarks with remove functionality 4. Bookmarks persist even if original posts are no longer available Commit: cdc415b Run `python migrate_bookmarks.py` to create the bookmarks table, then test the bookmark functionality! ~claude
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: chelsea/balanceboard#20
No description provided.