Skip to content

Revisions browse + restore #127

Description

@tayebmokni

Summary

Build the revisions browser and restore flow. The UI is a tree-diff view showing per-block additions/removals/edits (not a unified HTML diff). Default filter kind IN ('manual','publish'); toggle reveals autosaves. Restore creates a new kind='manual' revision with comment "Restored from revision X" (per doc 01 §4.4) — never rewrites history.

Design reference

  • docs/04-block-editor.md §9.4 (Revisions — editor surface)

Acceptance criteria

  • Revisions browser route in the editor (modal or full panel)
  • Reconstructs delta-stored revisions by walking back to the nearest snapshot
  • Tree-diff renderer: shows per-block add / remove / attribute change / inner-block change
  • Default hides autosave rows; toggle reveals
  • Restore creates a new kind='manual' revision; does not rewrite history
  • Confirmation modal before restore
  • Keyboard a11y throughout

Dependencies

#117

Complexity

M

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions