Stu Mason
Stu Mason

Activity

StuMason/api.rezzy.one
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

MethodURIDescription
POST/acts/{act}/avatarUpload avatar
DELETE/acts/{act}/avatarRemove avatar
POST/acts/{act}/coverUpload cover
DELETE/acts/{act}/coverRemove cover
POST/acts/{act}/mediaAdd gallery image
PATCH/acts/{act}/media/{media}Update caption/featured
DELETE/acts/{act}/media/{media}Remove gallery image
POST/acts/{act}/media/reorderReorder 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