Media upload limits, hero background slides, and admin editor rework #1

Closed
opened 2026-09-11 22:20:31 +00:00 by iec-admin · 0 comments
Contributor

Ships the current batch of site work:

  • Shared media upload pipeline — new src/lib/media/limits.ts (size/type validation, IMAGE_ACCEPT / IMAGE_OR_VIDEO_ACCEPT) plus a reusable MediaUploader component (useUpload, UploadOverlay, UploadError) wired into the Homepage, About, Contact, and Products editors. The upload route now runs the same validation server-side as the authoritative pass.
  • Hero background — extracted HeroBackground component supporting multiple slides.
  • Image serving — /api/images/[filename] reworked (sharp-backed transform/caching).
  • Admin editors — Homepage, About, Contact, Products editors reworked to mirror the frontend layout and data shape.
  • Content/validation — homepage content model, defaults, and Zod schema updated for the new fields.

Typecheck and production build are green.

Ships the current batch of site work: - **Shared media upload pipeline** — new `src/lib/media/limits.ts` (size/type validation, `IMAGE_ACCEPT` / `IMAGE_OR_VIDEO_ACCEPT`) plus a reusable `MediaUploader` component (`useUpload`, `UploadOverlay`, `UploadError`) wired into the Homepage, About, Contact, and Products editors. The upload route now runs the same validation server-side as the authoritative pass. - **Hero background** — extracted `HeroBackground` component supporting multiple slides. - **Image serving** — `/api/images/[filename]` reworked (sharp-backed transform/caching). - **Admin editors** — Homepage, About, Contact, Products editors reworked to mirror the frontend layout and data shape. - **Content/validation** — homepage content model, defaults, and Zod schema updated for the new fields. Typecheck and production build are green.
Sign in to join this conversation.
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#1
No description provided.