managarten/apps/planta/apps/backend
Till JS e64c298cec refactor(auth,planta): optimize storage usage
mana-core-auth:
- Replace manual key generation (Date.now) with generateUserFileKey()
- Replace manual validateFileSize with maxSizeBytes in upload()
- Remove OnModuleInit — init storage directly in constructor
- Add upload hooks for structured logging
- Remove redundant getPublicUrl() fallback chain (presigned URL for 1 year)
- Add deleteAllUserAvatars() for account deletion
- Simplify getAvatarUploadUrl() using storage.getPublicUrl()

planta:
- Replace createStorageClient() with manual config by createPlantaStorage()
- Replace manual uuid + path construction with generateUserFileKey()
- Remove uuid dependency for key generation
- Add maxSizeBytes validation (20MB)
- Add cacheControl header (immutable, 1 year)
- Add upload hooks for structured logging
- Add error handling in deletePhoto()
- Add deleteAllUserPhotos() for account deletion
- Make getPhotoUrl() synchronous (was async unnecessarily)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 20:59:14 +01:00
..
src refactor(auth,planta): optimize storage usage 2026-03-20 20:59:14 +01:00
docker-entrypoint.sh feat(planta): add Docker deployment for planta-backend and matrix-planta-bot 2026-02-17 10:45:35 +01:00
Dockerfile feat(games): add whopixels hosting at whopxl.mana.how 2026-03-20 19:57:50 +01:00
drizzle.config.ts 🔧 chore: create @manacore/shared-drizzle-config and migrate 16 configs 2026-01-29 16:54:44 +01:00
nest-cli.json feat(planta): add plant care tracking application 2026-01-18 14:57:16 +01:00
package.json feat(versioning): add semantic versioning and changesets to all apps 2026-03-19 16:20:18 +01:00
tsconfig.json 🐛 fix: resolve tsconfig and dependency errors 2026-02-01 03:32:46 +01:00