Commit Graph
2 Commits
Author SHA1 Message Date
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
Knotty Wyvern e66f089176 Make Project Management a native feature
- Move the storage and model of the plugin into src/lib/features/pm/ as pure TypeScript, so the skill can still bundle them.
- Move the DOM interface onto the host menus, the shared tooltip, and the host icons.
- A ribbon button opens Project Management. Board tabs keep the owner runestone.pm and the board-<hex> view IDs through view patterns.
- Read only .runestone/pm/. Offer the plugin migration, with backups, for legacy notes.
- A save, move, or delete reads only that card again. Watcher paths reach the feature.
- Add Settings → Project Management and the projectManagement section. View states move to localStorage.
- Background reads the boards from workspace.json. Remove api.backgrounds and the boards service.
- Add yaml 2.9.1. Use the host markdown-it.
- Move 18 plugin test files to tests/unit/features/pm/ and add native tests.
2026-10-29 20:54:29 -07:00