Skip to content

Conversation

@wen-templari
Copy link
Member

  • Add image upload UI to repair ticket creation form (TicketForm.tsx)

    • Support multiple image uploads (up to 5 images)
    • 5MB file size limit per image
    • Base64 encoding for storage
    • Image preview with removal option
    • Responsive grid layout for previews
  • Add image upload UI to repair admin submission form (EventAction.tsx)

    • Support for both EventActionCommit and EventActionAlterCommit
    • Same validation and limits as ticket form
    • Integrated into existing form layout
  • UI uses HeroUI components (Button, Card, CardBody)

  • Images stored as base64 strings in form state

  • localStorage persistence for ticket form drafts

  • No API changes made (UI only)

claude and others added 5 commits December 4, 2025 01:51
- Add image upload UI to repair ticket creation form (TicketForm.tsx)
  - Support multiple image uploads (up to 5 images)
  - 5MB file size limit per image
  - Base64 encoding for storage
  - Image preview with removal option
  - Responsive grid layout for previews

- Add image upload UI to repair admin submission form (EventAction.tsx)
  - Support for both EventActionCommit and EventActionAlterCommit
  - Same validation and limits as ticket form
  - Integrated into existing form layout

- UI uses HeroUI components (Button, Card, CardBody)
- Images stored as base64 strings in form state
- localStorage persistence for ticket form drafts
- No API changes made (UI only)
- Replace base64 image encoding with /upload API endpoint
- Update TicketForm to upload images via saturdayClient
- Update EventAction commit forms to upload images via saturdayClient
- Increase file size limit from 5MB to 10MB (per API spec)
- Store image URLs instead of base64 strings
- Update API type definitions for image support
- Pass identityContext to EventActionCommitForm for authentication
- Fix TypeScript type issues with optional images field

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Update image display across repair ticket components to use consistent square (1:1) aspect ratio:
- ImageGallery component: Replace dynamic maxHeight with aspect-square class
- EditRepairModal: Update preview thumbnails to use square aspect ratio
- EventDetail: Remove maxHeight parameter from ImageGallery usage

This ensures a consistent and cleaner visual presentation of repair ticket images throughout the application.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 28, 2025

Deploying home with  Cloudflare Pages  Cloudflare Pages

Latest commit: 992265f
Status: ✅  Deploy successful!
Preview URL: https://5f9c3624.fuji-2ku.pages.dev
Branch Preview URL: https://claude-repair-ticket-image-u.fuji-2ku.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants