Rezzy
TypeScript
Pull Request Opened
PR #70 opened: Add Act Media image uploads (avatar, cover, gallery)
Summary
- Add R2 disk configuration for Cloudflare storage
- Create ActMedia model with migration, factory, and enum
- Add controllers for avatar, cover, and gallery image uploads
- Create frontend components for upload UI on edit page
- Add comprehensive tests for all endpoints
Dependencies
- Requires R2 bucket configuration (env vars:
CLOUDFLARE_R2_*) - Builds on top of #68 (Acts feature)
Routes Added
| Method | URI | Description |
|---|---|---|
| POST | /acts/{act}/avatar | Upload avatar |
| DELETE | /acts/{act}/avatar | Remove avatar |
| POST | /acts/{act}/cover | Upload cover |
| DELETE | /acts/{act}/cover | Remove cover |
| POST | /acts/{act}/media | Add gallery image |
| PATCH | /acts/{act}/media/{media} | Update caption/featured |
| DELETE | /acts/{act}/media/{media} | Remove gallery image |
| POST | /acts/{act}/media/reorder | Reorder gallery |
Test plan
- Run
php artisan test --filter=ActMedia- 30 tests pass - Run
php artisan test --filter=ActAvatar- 7 tests pass - Run
php artisan test --filter=ActCover- 7 tests pass - Frontend builds without errors
- Manual test with R2 configured
Closes #15
Stu Mason + AI [email protected]
+2503
additions
-18
deletions
41
files changed