✨ New Feature - Automatic System Collection: - Every user gets an undeletable 'All My Cards' collection on registration - Contains all cards marked as owned by the user - Cannot be deleted, renamed, or made public - Special 🔒 System indicator in the UI 🗃️ Database Changes: - Added is_system_collection column to collections table - Migration script created 'All My Cards' for all existing users (5 users) - Automatic creation in registration API for new users 🛡️ API Protections: - DELETE: System collections cannot be deleted - PUT: System collections cannot be renamed or made public - Added isSystemCollection field to API responses 🎨 Frontend Updates: - System collections show 🔒 System badge - Edit/Delete buttons hidden for system collections - Special visual indicator for protected collections 🎯 Implementation Details: - Unique slug generation (all-my-cards, all-my-cards-2, etc.) - Proper permissions setup for each collection - Error handling for edge cases - Non-blocking registration if collection creation fails Ready for users to have their automatic 'All My Cards' collection! 🚀 |
||
|---|---|---|
| .. | ||
| login.js | ||
| register.js | ||
| verify.js | ||