Image caption strip in the lightbox (full path)
MVP slice of captions-plan.org (rev 3). Every lightbox now
shows a caption strip under the nav controls; the caption is the
image's full stored path — disambiguating same-named files in
different directories. Frontend-only (web/src/App.tsx); no
model, compiler, or backend change.
- New
caption?: stringslot onImageModal's element type. The strip renders whencurrent.captionis truthy (defensive guard; MVP call sites always supply it): plain--mutedtext, no interactions,stopPropagationon click so it never closes the modal. ThumbnailGrid'smodalImagesmap now emitscaption: p(full path) alongsidefilename: basename(p)— covers list-cell:imageand:image-list, both of which render through it.ImagePreview(edit-form:image) passescaption: path; itsnamederivation switched to the shared helper.- New
basename()helper replaces the three inlinesplit('/').pop()derivations (ThumbnailGrid's map + thumb labels, ImagePreview) — one place states the rule. filenamestays the basename: it feedsdownload={…}and the alt text; a full path in a browser download suggestion is browser-squishy.
Authored :ui (:caption <field>) captions are Post MVP (see
":ui (:caption <field>) authored image captions"); the caption
slot is the hook point that layer will fill.
- Slot
- 25700
- Status
- 60 Done
- Tags
- mvp, frontend, polish
- Contributors
- Donnie