Undo/redo module

Offen
#33 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Ruhig
Tech-Stack
typescript

Rechercherichtung

This issue names no files or tests. Start by reading the kernel module API in blocked issue #28 and tracing the write pipeline's undo-snapshot/emit stage. Done means atomic batches, including dependency cascades, undo and redo together; stack state updates reactively; and removing the module lets its code tree-shake from the bundle.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Parent

https://github.com/TanStack/time/issues/25

What to build

Extract undo/redo into a proper module that wraps atomic write batches, not individual field mutations. A single user action (e.g. move event + cascaded dependent shifts) is undone as one step — not as a sequence of individual commits.

Acceptance criteria

  • `UndoRedoModule` plugs into the kernel via the module API (#28), hooking the `undo-snapshot/emit` stage of the write pipeline
  • `undo()` reverses the most recent atomic batch (all events in the batch revert together)
  • `redo()` re-applies a reversed batch
  • `canUndo()` / `canRedo()` reflect the current stack state reactively
  • A dependency cascade (move + N propagated dependents) is treated as one batch — one `undo()` call reverses it entirely
  • Removing the `UndoRedoModule` causes undo/redo code to tree-shake out of the bundle

Blocked by

https://github.com/TanStack/time/issues/28

Vorherrschende Sprache
TypeScript
Sterne
620
Forks
6
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/time

Alle Issues in TanStack/time

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.