feat: upload event images from the events admin #17

Merged
iec-admin merged 1 commit from claw/events-image-upload-7c2e into main 2026-09-19 01:12:32 +00:00
Contributor

Closes #16.

  • The event thumbnail in /admin/events is now an uploader. Click it to pick a file, or drop an image onto it. It uses the shared useUpload, UploadOverlay and UploadError, so it compresses images, shows progress and reports errors the same way as the other editors.
  • The "Image path" field is still there for linking an existing image. After an upload it fills in with the new path.
  • The broken-image fallback moved into the uploader, which removed the per-row imageError state.

Verified locally: type-check passes. On /admin/events I uploaded a JPEG through the file input. The path field updated to /api/images/city-skyline.jpg and the preview rendered. The event validation only requires a non-empty string, so the uploaded path saves.

🤖 Generated with Claude Code

Closes #16. - The event thumbnail in `/admin/events` is now an uploader. Click it to pick a file, or drop an image onto it. It uses the shared `useUpload`, `UploadOverlay` and `UploadError`, so it compresses images, shows progress and reports errors the same way as the other editors. - The "Image path" field is still there for linking an existing image. After an upload it fills in with the new path. - The broken-image fallback moved into the uploader, which removed the per-row `imageError` state. **Verified locally:** type-check passes. On `/admin/events` I uploaded a JPEG through the file input. The path field updated to `/api/images/city-skyline.jpg` and the preview rendered. The event validation only requires a non-empty string, so the uploaded path saves. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The event thumbnail is now a click-or-drop uploader built on the shared
useUpload hook, matching the other admin editors. The image path field
stays as a fallback for linking an existing image.

close #16

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
iec-admin deleted branch claw/events-image-upload-7c2e 2026-09-19 01:12:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martin/ballantyne-www!17
No description provided.