Commit Graph

40 Commits

Author SHA1 Message Date
0471830e49 feat: add Sharp library and ImagePreviewService
- Install sharp@0.33.5 for image processing
- Create ImagePreviewService with preview generation
- Support 800px max width, JPEG 85% quality
- Automatic directory creation on first use
- Include preview size reduction logging
- Add cleanup method for orphaned previews
2025-10-30 20:25:33 +01:00
6ee736bcea docs: add feature plan for preview images
- Architecture overview: previews/ directory structure
- Backend: Sharp library for image processing
- DB schema extension: preview_path column
- Frontend: Use previews in galleries, keep originals in slideshow
- Estimated effort: 12-22h (2-3 days)
- Expected improvement: ~95% size reduction, ~96% faster load times

Ref: feature/preview-images
2025-10-29 23:34:08 +01:00
473465f363 Merge pull request 'upgrade/deps-react-node-20251028' (#2) from upgrade/deps-react-node-20251028 into main
Reviewed-on: #2
2025-10-29 23:22:30 +01:00
b0c95c5698 docs: add security audit results to CHANGELOG
Document npm audit findings for frontend (21 vulns) and backend (27 vulns).
Recommend separate security PR for critical packages (axios, send/serve-static).

Ref: upgrade/deps-react-node-20251028
2025-10-29 23:16:27 +01:00
80ffcfd210 docs: complete migration documentation and finalize dev environment
- Add comprehensive CHANGELOG.md with all upgrade phases and results
- Update TODO.md to mark framework upgrades as completed
- Update UPGRADE_PLAN with actual timelines and detailed phase results
- Finalize docker-compose.override.yml and Dockerfile.dev for dev workflow
- Update package-lock.json after dependency changes

All 4 phases completed successfully:
- Backend: Node 14 → 24
- Frontend: React 17 → 18.3.1, Router v5 → v6, MUI v4 → v5
- Dev environment with HMR fully functional
- Integration smoke tests passed
2025-10-29 23:11:37 +01:00
fe65544893 docs: complete upgrade documentation with CHANGELOG, smoke tests, and actual timelines 2025-10-29 23:10:21 +01:00
bf115453f1 chore(frontend): fix ESLint warnings - remove unused handlers/imports 2025-10-29 21:54:58 +01:00
a44a85be73 chore(frontend): remove @mui/styles, replace react-lottie with lottie-react and remove legacy-peer-deps in Dockerfile 2025-10-29 21:49:09 +01:00
5b4855a5f5 refactor(frontend): migrate SlideshowPage to MUI sx 2025-10-29 21:41:02 +01:00
182dcb228c refactor(frontend): migrate MultiUploadPage to MUI sx 2025-10-29 21:34:16 +01:00
494c09e062 refactor(frontend): migrate MultiImageDropzone to MUI sx 2025-10-29 21:31:02 +01:00
4aac9dae4e refactor(frontend): migrate DescriptionInput to MUI sx 2025-10-29 21:26:51 +01:00
8535e8fafe refactor(frontend): migrate UploadProgress to MUI sx (remove makeStyles) 2025-10-29 21:18:44 +01:00
5c6f0ce061 feat(frontend): migrate to MUI v5 (phase 4 step 1)
- Replace @material-ui/core -> @mui/material
- Replace @material-ui/icons -> @mui/icons-material
- Switch makeStyles imports to @mui/styles (compat)
- Add @mui/material, @mui/icons-material, @mui/styles, @emotion/react, @emotion/styled to package.json

Notes: Kept makeStyles via @mui/styles for incremental migration; next: replace makeStyles usage with sx/styled where needed.
2025-10-29 20:10:33 +01:00
5ba463427b feat(frontend): upgrade react-router-dom 5→6 (Phase 3)
- Update package.json: react-router-dom ^5.2.0→^6.28.0
- Migrate App.js: Switch→Routes, component→element props, path="*" for 404
- Migrate 5 pages: useHistory→useNavigate, history.push()→navigate()
  - GroupsOverviewPage.js (4x navigate)
  - ModerationGroupsPage.js (1x navigate)
  - ModerationGroupImagesPage.js (2x navigate)
  - PublicGroupImagesPage.js (import updated)
  - SlideshowPage.js (4x navigate + keyboard handler)
- Regenerate package-lock.json with react-router v6

 Tested: Production build 254.46 KB gzip (+1.17 KB)
 Manual test: Navigation, moderation routing, slideshow ESC - all working

Phase 3 complete: Modern react-router v6 with improved routing API.
2025-10-28 22:59:59 +01:00
93534587d2 feat(frontend): upgrade React 17→18 + react-scripts 4→5 (Phase 2)
- Update package.json: react/react-dom ^17→^18.3.1, react-scripts 4→5.0.1
- Migrate to React 18 Root API in src/index.js (createRoot)
- Add --legacy-peer-deps to Dockerfile for MUI v4 compatibility
- Regenerate package-lock.json with legacy peer deps flag

 Tested: Production build 253.28 KB gzip, containers running
 Manual test: Upload, Moderation, Public View, Slideshow - all working

Phase 2 complete: Frontend on React 18 with concurrent rendering.
2025-10-28 21:30:14 +01:00
acdb2fa6cd refactor(backend): upgrade to Node 24 LTS (v24.11.0)
- Update backend/Dockerfile: node:18 → node:24 (LTS)
- Node 24 provides longer support window and latest features
- Tested: Build successful (127s), container starts cleanly, all services working

Phase 1 refined: Backend now on Node 24 LTS with extended support timeline.
2025-10-28 20:35:03 +01:00
fd3a10657a feat(backend): upgrade Node 14 → 18 (Phase 1)
- Update backend/Dockerfile: FROM node:14 → node:18
- Remove Debian Buster EOL repository workarounds (Node 18 uses Bullseye)
- Tested: Docker build successful, container starts cleanly, DB initializes

Phase 1 complete: Backend runtime now on Node 18 LTS.
2025-10-28 20:25:26 +01:00
dea913ac99 Merge pull request 'chore(upgrade): add issue template and upgrade plan for deps upgrade' (#1) from upgrade/deps-react-node-20251028 into main
Reviewed-on: #1
2025-10-28 20:20:11 +01:00
58a1979b89 chore(upgrade): add issue template and upgrade plan for deps upgrade
- Add .github/ISSUES/upgrade-deps-react-node-20251028.md with analysis summary
- Add docs/UPGRADE_PLAN-upgrade-deps-react-node-20251028.md with detailed plan and steps

Branch: upgrade/deps-react-node-20251028
2025-10-28 20:13:57 +01:00
9406b725c1 removed old css in ImageGallery.css 2025-10-28 20:04:42 +01:00
a0d74f795a feat: Complete frontend refactoring and development environment setup
Major Frontend Refactoring:
- Replace ImagePreviewGallery with unified ImageGallery/ImageGalleryCard components
  - Support 4 display modes: group, moderation, preview, single-image
  - Add hidePreview prop to conditionally hide group preview images
  - Unified grid layout with responsive 3/2/1 column design

- Remove 15+ legacy files and components
  - Delete UploadedImagePage, SocialMedia components, old upload components
  - Remove unused CSS files (GroupCard.css, Image.css/scss)
  - Clean up /upload/:image_url route from App.js

- Fix image preview functionality in MultiUploadPage
  - Convert File objects to blob URLs with URL.createObjectURL()
  - Add proper memory cleanup with URL.revokeObjectURL()

- Improve page navigation and layout
  - Fix GroupsOverviewPage to route to /groups/:groupId detail page
  - Adjust PublicGroupImagesPage spacing and layout
  - Fix ModerationGroupsPage duplicate stats section

CSS Refactoring:
- Rename GroupCard.css → ImageGallery.css with updated class names
- Maintain backward compatibility with legacy class names
- Fix grid stretching with fixed 3-column layout

Development Environment:
- Add docker-compose.override.yml for local development
- Create Dockerfile.dev with hot-reload support
- Add start-dev.sh and nginx.dev.conf
- Update README.dev.md with development setup instructions

Production Build:
- Fix frontend/Dockerfile multi-stage build (as → AS)
- Update prod.sh to explicitly use docker-compose.yml (ignore override)
- Resolve node:18-alpine image corruption issue
- Backend Dockerfile improvements for Node 14 compatibility

Documentation:
- Update TODO.md marking completed frontend tasks
- Clean up docs/images directory
- Update README.md with current project status

All changes tested and verified in both development and production environments.
2025-10-27 22:22:52 +01:00
237c776ddc CSS Cleanup 2025-10-26 11:52:14 +01:00
03a7e91d2b Removed Erweiterungen.md, Update TODO.md 2025-10-22 20:22:46 +02:00
aec0be8982 tut wieder 2025-10-20 21:18:44 +02:00
f6c02259dd GroupsOverviewPage.js wieder hergestellt 2025-10-20 21:10:59 +02:00
d29aaa05cd removed old files 2025-10-20 20:07:45 +02:00
c7f75a4bd8 Renaming GroupImagePage -> ModerationGroupImagesPage.js 2025-10-20 19:47:06 +02:00
0c0547b4f5 css 2025-10-20 19:19:21 +02:00
bf4ff75ce5 CSS Anpassungen, noch nicht gut 2025-10-19 21:59:37 +02:00
e06625ba97 FIX: Fixed different navbar Style 2025-10-19 20:50:12 +02:00
2a8cedd512 CSS Style Anpassungen 2025-10-19 20:34:51 +02:00
16f53a129a FIX: Speichern funktioniert nun 2025-10-19 20:06:09 +02:00
8d2d27c71d speichern ohne funktion 2025-10-19 19:56:13 +02:00
566eb3aed6 IMP: Editierfunktion für Gruppen ergänzt 2025-10-19 18:15:34 +02:00
81c17c1b30 IMP: Editierfunktion für Gruppen ergänzt 2025-10-19 18:15:19 +02:00
24c1de1666 IMP: Eigene Verzeichnisse für Uploads und Datenbank
- README aktualisiert, um die neuen Verzeichnisse zu reflektieren
- Konstanten für Verzeichnispfade in 'constants.js' hinzugefügt
- 'DatabaseManager.js' angepasst, um die neuen Datenbankverzeichnisse zu verwenden
- Routen für Batch-Upload, Download und Upload aktualisiert, um die neuen Pfade zu berücksichtigen
- 'MigrationService.js' hinzugefügt, um vorhandene Daten in die neuen Verzeichnisse zu migrieren
- Hilfsfunktionen in 'groupStorage.js' und 'initiate-resources.js' angepasst
- 'docker-compose.yml' und 'prod.sh' aktualisiert, um die neuen Verzeichnisse zu berücksichtigen
2025-10-18 14:23:12 +02:00
0ec8a7590e IMP: Moved database to src/data/db and imges to src/data/images 2025-10-17 22:37:26 +02:00
48bf6f2074 Initial Commit 2025-10-15 21:33:00 +02:00
7ea96bfeca Initial commit 2025-10-15 21:25:52 +02:00