docs(dashboard): refactor to unified collections architecture
BREAKING CHANGES: - Remove smart_section_types table entirely - Use collections table for both system defaults and user sections - Add user_id (nullable), query_type, priority, is_system_collection to collections - Pre-seed 4 system collections (user_id = NULL): continue-reading, recently-added, recently-read, not-started FEATURES: - System collections are now editable by users - Per-collection restore functionality (restore-system-collection endpoint) - Single query type for all dashboard items (unified approach) UPDATES: - Database schema changes for collections table - Service layer methods updated (RestoreSystemCollection instead of RestoreSystemCollections) - API handler with per-collection restore endpoint - Templates updated with collection terminology - TypeScript types updated (8 fields instead of 11, type values: 'system'/'user') - Field names updated: hidden_collections, collection_order - All tests updated for new architecture BENEFITS: - Simpler data model (single table, single concept) - System defaults use same code path as user collections - Users can customize system collections - Easy reset with per-collection restore buttons
This commit is contained in:
+1289
-2210
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user