Authored image captions (A)
Authored captions on image widgets: a :caption subkey on :ui naming a sibling field; the lightbox shows that value instead of the filename-path fallback (the MVP caption strip). Full reviewed design preserved in captions-plan.org ("Preserved design" section). Two halves:
- Compiler reference-validation (small):
valid-caption-valuein thevalid-options-valuefamily. Keyword-only; must name a field in the raw author field keys of the enclosing type plist (preadd-default-fields, pre status synthesis — order-independent, rejects:caption :id).report-enames type, field, bad reference. No nil normalization (add-to-plistmasks nil via(or ...)).fe-fieldsalready delivers:uiflat — no backend change for delivery. - Frontend consumer (small):
:widget :image+ same-record scalar sibling (the covers-row shape), list cells and edit forms; silent omission when unavailable. ThreadrecintorenderCellValue/renderReadOnlyField.
Gallery captions (:image-list) are the real blocker and the named consumer (Model Bank :images): aggregate-values collapses each field independently (:list drops nulls, :distinct dedupes), so a caption sibling yields a second collapsed list with no shared row index — post-hoc index pairing pairs unrelated values. Needs backend delivery of row-aligned {name, caption} pairs from join rows before aggregation. Requires a :caption column on the images type as well (a model change).
Tests when implemented: agg-distinct inline-mini-model pattern for negatives (message search, never equal — report-e suffixes a Guru Meditation Number); retention probe via u:tree-get *compiled-model* inside with-model; new fixture models/test/captions-test.lisp; run-caption-tests added to the run-tests alist.
- Slot
- 7177
- Status
- 10 Open
- Tags
- backend, frontend, compiler, blog, mvp
- Contributors
- Donnie