add inline editor UI for description image uploads v1.56.198 — extractRepoAssetImages scrapes  from description_raw and renders a <figure> thumbnail grid; repoPage context gets can_edit_meta + viewer_is_contributor + description_images_html fields so the editor gate runs server-side (mirrors the apiRepoMeta gate). Template at pages.zig:685 + :750 + :760 (empty details) renders the editor + image toolbar + image cards for both operator and contributor viewers. Extended IIFE at pages.zig:815+ adds the image button file picker, dragenter/dragover/drop on the editable pane, ⌘V paste with image, and a local openLightbox so clicking .repo-desc img or .op-desc-image-card img opens the existing .ia-lightbox overlay. Fix: dblclick now places cursor at end instead of select-all, and the toolbar starts .hidden so non-editor viewers see no chrome.
$ koh steal kepr.uk/kepr@5b912cd26709
·
parent: c0e79c705eee
discussion
log in to leave a comment.