refactor(photos): remove NestJS backend, use local-first + direct mana-media

The Photos NestJS backend was a proxy to mana-media that enriched
responses with local album/favorite/tag data. Now:

- Albums store → local-first via albumCollection + albumItemCollection
- Favorites → local-first via favoriteCollection (toggle in IndexedDB)
- Photo tags → local-first via photoTagCollection
- Photo listing/stats → direct mana-media API calls from frontend
- Upload → direct mana-media upload from frontend
- Delete → direct mana-media delete from frontend

Removed 27 TypeScript files, 1 Docker container, 1 port (3039).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-28 02:18:03 +01:00
parent e7a8567e61
commit d7799ec95d
43 changed files with 243 additions and 1816 deletions

View file

@ -164,7 +164,7 @@ for container in $ALL_PROBLEM_CONTAINERS; do
mana-app-skilltree-web) SERVICE_NAME="skilltree-web" ;;
mana-app-skilltree-backend) SERVICE_NAME="skilltree-backend" ;;
mana-app-photos-web) SERVICE_NAME="photos-web" ;;
mana-app-photos-backend) SERVICE_NAME="photos-backend" ;;
# mana-app-photos-backend: REMOVED
mana-app-web) SERVICE_NAME="mana-web" ;;
mana-core-auth) SERVICE_NAME="mana-auth" ;;
mana-core-gateway) SERVICE_NAME="api-gateway" ;;

View file

@ -140,7 +140,7 @@ setup_service() {
;;
photos)
create_db_if_not_exists "photos"
push_schema "@photos/backend" "photos"
# Schema managed by mana-sync (backend removed)
;;
finance)
create_db_if_not_exists "finance"