feat: media upload limits, hero background slides, admin editor rework #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claw/media-admin-rework-a3f1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1.
What's in it
src/lib/media/limits.tscentralises size/type validation and the accept strings; the newMediaUploadercomponent (useUpload,UploadOverlay,UploadError) replaces per-editor upload handling in the Homepage, About, Contact and Products editors./api/admin/uploadruns the same validation server-side as the authoritative pass.HeroBackgroundextracted fromHeroso the hero can cycle multiple slides./api/images/[filename]reworked for sharp-backed transforms and caching.Verification
npm run type-check— cleannpm run build— green, all 39 routes compiledFive throwaway Playwright debug scripts that were sitting untracked at the repo root were moved out rather than committed.
🤖 Generated with Claude Code