Files
RuneStone/tests/smoke/features
Knotty Wyvern f9bdbe0467 Keep pasted card images in description drafts
A pasted image arrives while it still loads, so the draft save did not
start. A close of the card then cleared the image data from memory. The
draft kept the text and a reference to an image that RuneStone never
saved.

- A second draft file, <card hex>.images.json, keeps the data of the
  images that only the draft uses.
- Only a save of the description or the card writes image files. Save
  and Cancel empty the draft and its image record, so a discarded draft
  leaves no image file.
- A reopened card restores the images of its draft. The draft saves
  after a pasted image finishes loading. A card save also writes a
  cover image that only the draft has.

New tests: the pmDraftImages smoke test and the description-draft unit
tests.

(cherry picked from commit d9653da579bf8cfc0edd2457f72e658c9fe00fd6)
2026-10-31 19:58:04 -07:00
..
2026-10-29 19:41:17 -07:00