Include navigation events in undo/redo

Created on 11 September 2025, 27 days ago

Overview

Include navigation changes in the undo history, so users can undo/redo their actions by switching to the route where those actions occurred. This will enable us to expand the undo history to the code editor, and to present a unified undo history.

Proposed resolution

Currently undo/redo covers two RTK slices: layoutModel and pageData. They are both wrapped with the undoable() reducer enhancer by redux-undo, which means they both track their own history. To present a single, linear timeline to the user, uiSlice maintains an undoStack to track which which slice's state needs to be changed.

Introduce a new navigationSlice to track the current route, and enhance it with redux-undo to build a history. Synchronize route changes between the store and the actual routing. Cover navigationSlice in the uiSlice's undoStack.

User interface changes

The undo/redo buttons and keyboard shortcuts can trigger navigation.

Feature request
Status

Active

Version

1.0

Component

Page builder

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024