Project-Image-Uploader/backend/src
matthias.lotz 4b9feec887 Refactor: Create modular component architecture for ManagementPortalPage
- Created new modular components:
  * ConsentManager: Manages workshop + social media consents with individual save
  * GroupMetadataEditor: Manages group metadata (title, description, name, year) with save
  * ImageDescriptionManager: Manages image descriptions with batch save
  * DeleteGroupButton: Standalone group deletion component

- Refactored ManagementPortalPage to use modular components:
  * Each component in Paper box with heading inside (not outside)
  * HTML buttons with CSS classes (btn btn-success, btn btn-secondary)
  * Inline feedback with Material-UI Alert instead of SweetAlert2 popups
  * Icons: 💾 save, ↩ discard, 🗑️ delete
  * Individual save/discard functionality per component

- Enhanced ConsentCheckboxes component:
  * Added children prop for flexible composition
  * Conditional heading for manage mode inside Paper box

- Fixed DescriptionInput:
  * Removed duplicate heading (now only in parent component)

- React state management improvements:
  * Deep copy pattern for nested objects/arrays
  * Sorted array comparison for order-insensitive change detection
  * Set-based comparison for detecting removed items
  * Initialization guard to prevent useEffect overwrites

- Bug fixes:
  * Fixed image reordering using existing /api/groups/:groupId/reorder route
  * Fixed edit mode toggle with unsaved changes warning
  * Fixed consent state updates with proper object references
  * Fixed uploadImageBatch signature to use object destructuring
  * Removed unnecessary /api/manage/:token/reorder route from backend

Next: Apply same modular pattern to MultiUploadPage and ModerationGroupImagesPage
2025-11-15 17:25:51 +01:00
..
database feat(phase2): Implement Management Audit-Log (Task 10) 2025-11-11 21:12:07 +01:00
middlewares wip(phase2): Task 17 - Management-Link in Upload-Erfolg & Rate-Limiter Anpassung 2025-11-13 22:03:50 +01:00
models Initial Commit 2025-10-15 21:33:00 +02:00
repositories feat(phase2): Implement Management Audit-Log (Task 10) 2025-11-11 21:12:07 +01:00
routes Refactor: Create modular component architecture for ManagementPortalPage 2025-11-15 17:25:51 +01:00
scripts feat(testing): Add cleanup testing tools and API endpoints 2025-11-08 13:18:44 +01:00
services feat(backend): Implement automatic cleanup service 2025-11-08 12:23:49 +01:00
utils fix: Add display_in_workshop to groupFormatter and fix filter logic 2025-11-09 23:51:29 +01:00
constants.js feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
index.js Initial Commit 2025-10-15 21:33:00 +02:00
server.js feat(backend): Implement automatic cleanup service 2025-11-08 12:23:49 +01:00