Drop an image onto the prose editor — illustration ingest #141

Closed
opened 2026-11-01 19:37:47 +01:00 by AlexKucera · 0 comments
Owner

What to build

The writer drags an image file from Finder onto the open prose editor of a saved post: Museion copies it into the piece's assets/ folder (copy, never move) and inserts ![alt](assets/<name>.<ext>) at the exact drop point, with alt selected so one keystroke replaces it with the real description. The front door for the illustration publish rail (#34): drop → type alt → publish, and the photo ships with its alt text.

Decisions settled with the maintainer — do not re-litigate:

  • Alt: inserted as a selected placeholder for immediate type-over — no ask-sheet per drop.
  • Filename: slugged (whitespace→hyphens, collision -2) — the publish parser never matches space-bearing destinations, so the ref and the file must agree at ingest.
  • Type gate: exactly the publish-able set (PNG/JPEG/GIF/WebP/SVG). Anything else refuses honestly — nothing enters assets/ that can't ship. No HEIC conversion in v1.
  • Scope: prose editor of saved posts only. Drafts (no folder until first save), outline surfaces, and the external guest don't accept image drops.

Acceptance criteria

  • Dropping a publish-able image onto a saved post's prose editor copies it into that piece's assets/ and inserts ![alt](assets/<slug>.<ext>) at the drop point, alt selected for type-over
  • The original file is untouched (copy, never move); the ref's destination always matches the landed filename (slug + collision suffix)
  • A non-publishable type (e.g. HEIC, PDF) refuses: no copy, no insert, visible feedback — not a silent no-op
  • Drafts, outlines, and the guest editor don't accept image drops (markdown drops keep today's behavior everywhere)
  • A dropped-and-alted illustration rides #34's rail end to end: Send as Draft attaches it as a photo with its alt
  • The naming/insert logic leaves one runnable check behind (repo bar)

Sequenced after #34 (native blocking edge) — the ingest UX lands on top of the publish rail.

[Generated by AI]

## What to build The writer drags an image file from Finder onto the open prose editor of a saved post: Museion copies it into the piece's `assets/` folder (copy, never move) and inserts `![alt](assets/<name>.<ext>)` at the exact drop point, with `alt` selected so one keystroke replaces it with the real description. The front door for the illustration publish rail (#34): drop → type alt → publish, and the photo ships with its alt text. Decisions settled with the maintainer — do not re-litigate: - **Alt**: inserted as a selected placeholder for immediate type-over — no ask-sheet per drop. - **Filename**: slugged (whitespace→hyphens, collision `-2`) — the publish parser never matches space-bearing destinations, so the ref and the file must agree at ingest. - **Type gate**: exactly the publish-able set (PNG/JPEG/GIF/WebP/SVG). Anything else refuses honestly — nothing enters `assets/` that can't ship. No HEIC conversion in v1. - **Scope**: prose editor of saved posts only. Drafts (no folder until first save), outline surfaces, and the external guest don't accept image drops. ## Acceptance criteria - [ ] Dropping a publish-able image onto a saved post's prose editor copies it into that piece's `assets/` and inserts `![alt](assets/<slug>.<ext>)` at the drop point, `alt` selected for type-over - [ ] The original file is untouched (copy, never move); the ref's destination always matches the landed filename (slug + collision suffix) - [ ] A non-publishable type (e.g. HEIC, PDF) refuses: no copy, no insert, visible feedback — not a silent no-op - [ ] Drafts, outlines, and the guest editor don't accept image drops (markdown drops keep today's behavior everywhere) - [ ] A dropped-and-alted illustration rides #34's rail end to end: Send as Draft attaches it as a photo with its alt - [ ] The naming/insert logic leaves one runnable check behind (repo bar) Sequenced after #34 (native blocking edge) — the ingest UX lands on top of the publish rail. [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-01 19:37:55 +01:00
AlexKucera added a new dependency 2026-11-01 19:37:55 +01:00
Sign in to join this conversation.