Step images: upload, crop, variants, guarded media route (#11) #25
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/11-step-images"
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 #11.
Up to three 4:3 step images per step (ADR-0006).
StepImage(stepId, position, fileKey, original size, crop rectangle) with migration.UPLOAD_DIR, random UUID keys, original kept, behind a read/write/delete interface that rejects path traversal./media/[imageId]/[file]: checks effective visibility. Published public guides getpublic, immutable; internal and draft guides getprivate; hidden or missing images return 404. The original is served only to editors (private, no-store) for re-cropping.Tests: crop geometry, sharp pipeline (EXIF orientation and stripping), disk storage, access and cache decision, reading-view rendering.
Note: restart the dev server after pulling. The global Prisma client predates
StepImage.🤖 Generated with Claude Code