deckhearth/components
Randall Stillwell 2f2c915da1 🔧 Fix Collections Not Loading in Add to Collections Modal
🐛 Authentication Issue Resolution:
- Removed incorrect Authorization header from collections API call
- Modal was using 'auth_token' header when API uses development fallback
- Updated to match successful pattern used by collections page

📡 API Call Corrections:
- Collections fetch: Removed Authorization header (uses dev fallback)
- Add to collection: Removed Authorization header (middleware handles auth)
- Fixed response data handling (API returns array directly)
- Added better error handling and logging

🔍 Root Cause Analysis:
- CollectionSelectionModal used localStorage.getItem('auth_token')
- But /api/collections works without auth headers in development
- Other successful pages (collections.js, collection/[id].js) don't send auth headers
- Development middleware provides fallback admin user automatically

 Expected Behavior:
- Collections modal should now load user's collections properly
- Batch adding cards to collections should work correctly
- Consistent with authentication pattern used throughout app
- Better error messages for debugging

The 'Add to Collections' modal should now properly display collections! 📚
2025-07-26 09:57:54 -05:00
..
ActivityLog.js 🎉 COMPLETED: Full Collaborative Collections System 2025-07-25 08:34:28 -05:00
AdminProtected.js Fixed SSR and null user issues for production deployment 2025-07-24 17:04:06 -05:00
AuthLayout.js 🎨 Restructured Layout System 2025-07-25 11:28:04 -05:00
BulkInviteModal.js 🔄 Simplified Permission Model & UX Improvements 2025-07-25 10:29:45 -05:00
BulkSelectionToolbar.js 🔥 Transform to Deck Hearth Fire-Inspired Design 2025-07-26 08:30:07 -05:00
CardItem.js 🔥 Primary Red Add Button + Static Rarity Shadows 2025-07-26 09:17:22 -05:00
CollaborationManager.js 🔄 Simplified Permission Model & UX Improvements 2025-07-25 10:29:45 -05:00
CollaboratorFacepile.js 🔧 Fixed Cards Page API Response Format 2025-07-25 23:16:35 -05:00
CollectionSelectionModal.js 🔧 Fix Collections Not Loading in Add to Collections Modal 2025-07-26 09:57:54 -05:00
Layout.js 🔄 Restructured User Profile & Theme Toggle 2025-07-26 09:51:40 -05:00
PermissionIndicator.js 🔄 Simplified Permission Model & UX Improvements 2025-07-25 10:29:45 -05:00
ShareModal.js 🔥 Transform to Deck Hearth Fire-Inspired Design 2025-07-26 08:30:07 -05:00
UploadImageModal.js 🚀 Implemented Complete Collection Functionality 2025-07-25 22:28:52 -05:00