Version History with slider and restore (#107) #113

Merged
miko merged 1 commit from feature/107-version-history into development 2026-11-05 13:58:18 +01:00
Owner

Closes #107

  • New Version History at /guides/<id>/edit/history, linked from the editor once a guide has a version. It has a native range slider with a mark per version; the working copy is a distinct last mark when it has unpublished changes. The latest version is selected by default, and the selection is kept in the URL (?version=N or working-copy).
  • The selected version renders read-only through GuideArticle (embedded: h2 title, no breadcrumb or controls), with its time, publisher and note above.
  • Restore this version replaces the working copy and publishes nothing, so the history stays linear. It is disabled for the working copy and for a version the working copy already equals, and asks for confirmation when unpublished changes would be lost. Discard and restore share one locked reset helper.
  • Guests get a 404 from the proxy (hiddenFromGuest).
  • GLOSSARY: Version History; CHANGELOG; German translations.

Tests: unit tests for historyTimeline/restorable and for hiddenFromGuest; e2e versionHistory.spec.ts. The full suite is green (440 unit, 57 e2e).

🤖 Generated with Claude Code

Closes #107 - New **Version History** at `/guides/<id>/edit/history`, linked from the editor once a guide has a version. It has a native range slider with a mark per version; the working copy is a distinct last mark when it has unpublished changes. The latest version is selected by default, and the selection is kept in the URL (`?version=N` or `working-copy`). - The selected version renders read-only through `GuideArticle` (embedded: h2 title, no breadcrumb or controls), with its time, publisher and note above. - **Restore this version** replaces the working copy and publishes nothing, so the history stays linear. It is disabled for the working copy and for a version the working copy already equals, and asks for confirmation when unpublished changes would be lost. Discard and restore share one locked reset helper. - Guests get a 404 from the proxy (`hiddenFromGuest`). - GLOSSARY: Version History; CHANGELOG; German translations. Tests: unit tests for `historyTimeline`/`restorable` and for `hiddenFromGuest`; e2e `versionHistory.spec.ts`. The full suite is green (440 unit, 57 e2e). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The editor gains a Version History at /guides/<id>/edit/history: a native
range slider with a mark per version, and a distinct last mark for the
working copy when it has unpublished changes, selects one version at a
time (latest by default, ?version=N or working-copy). The selected version
renders read-only through the reading view's GuideArticle (embedded: h2
title, no breadcrumb or controls), with its time, publisher and note
above. "Restore this version" replaces the working copy with it and
publishes nothing, so the history stays linear; it is disabled for the
working copy and for a version the working copy equals, and asks first
when unpublished changes would be lost. Discard and restore share one
locked reset helper. Guests get a 404 from the proxy. GLOSSARY gains
Version History.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miko merged commit d29a4fa379 into development 2026-11-05 13:58:18 +01:00
Sign in to join this conversation.
No reviewers
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
MassiveDynamic/kataba!113
No description provided.