Versions: open an old version and restore it #137

Open
opened 2026-10-14 05:37:56 +00:00 by kayg · 0 comments
Owner

Found in the #107 sweep (flow "history/restore").

Today: Info → Versions lists who changed a note and when ("22 edits · kayg (this device) · just now", "Read in from its file · Imported"), but nothing in the list can be opened, and there is no way to get an old version back. The rows look tappable and aren't. There is also no server action for it: notes.history returns entries only (no text), and nothing restores one.

What's needed

  • Server: an action that returns one version's text (notes.version {id, version}), and a restore that is a normal whole-note change with a base (ADR 0020), recorded as one change by the person who restored it, so Undo and every other device see it live (ADR 0012).
  • UI: tap a version → a read-only look at that version (ideally with what changed), and Restore this version with one Undo toast. Mockup first (ADR 0004).
  • Agents/CLI get the same actions (ADR 0011); the contract test (contracts/actions.json, #107) covers them automatically.

Severity: dead end (the flow promises history and stops at a list).

Found in the #107 sweep (flow "history/restore"). **Today:** Info → Versions lists who changed a note and when ("22 edits · kayg (this device) · just now", "Read in from its file · Imported"), but nothing in the list can be opened, and there is no way to get an old version back. The rows look tappable and aren't. There is also no server action for it: `notes.history` returns entries only (no text), and nothing restores one. **What's needed** - Server: an action that returns one version's text (`notes.version {id, version}`), and a restore that is a normal whole-note change with a `base` (ADR 0020), recorded as one change by the person who restored it, so Undo and every other device see it live (ADR 0012). - UI: tap a version → a read-only look at that version (ideally with what changed), and **Restore this version** with one Undo toast. Mockup first (ADR 0004). - Agents/CLI get the same actions (ADR 0011); the contract test (`contracts/actions.json`, #107) covers them automatically. Severity: dead end (the flow promises history and stops at a list).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#137
No description provided.