Add an image block to the page editor (#67) #72
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!72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/67-image-block"
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 #67
Summary
Admins insert images with an optional caption into a page's content. Each one is a Page Image: uncropped, in its own format, uploaded as soon as it is inserted.
Docs: the glossary entry Page Image, ADR 0005, 0006 and 0013 updated, and the CHANGELOG.
Evidence
parseRichTextdroppedimageblocks.After:
{type: "image", data: {imageId, caption}}stays as it is in pages; outside pages, or with invalid ids, the block is dropped.pageImageAccesscovers public, internal, draft and the original.an admin adds an image with a caption to a page…: it inserts a 900×300 image and checks that the variant stays 900×300 WebP. Draft: viewer gets 404, admin gets 200. Internal: guest gets 404, viewer gets 200 private. Public: guest gets 200 immutable. After the block is removed and the page saved: 404, and the variant files are gone.Merge Danger
Door: one-way (small)
The migration adds the
PageImagetable. Once page images have been saved, rolling back drops them, and the image blocks would simply no longer render.Blast Radius: Pages
The page editor and page rendering, plus a new branch in
/media. Guide, step and category editors are unchanged, and the parser drops image blocks there. Known limits:🤖 Generated with Claude Code