Skip to content

Add editor undo and redo controls - #93

Merged
danielss-dev merged 1 commit into
mainfrom
codex/editor-undo-redo
Aug 6, 2026
Merged

Add editor undo and redo controls#93
danielss-dev merged 1 commit into
mainfrom
codex/editor-undo-redo

Conversation

@danielss-dev

Copy link
Copy Markdown
Owner

What changed

  • Added state-aware Undo and Redo controls to the Work Content toolbar.
  • Bound the controls directly to Pierre's structure-aware editor history, shared with Mod+Z, Mod+Shift+Z, and Ctrl+Y.
  • Reset the exposed history handle when Strand intentionally rebuilds the editor after Discard or a clean external refresh.
  • Added localized labels, Strand-native icons and styling, plus README, roadmap, task, learning, and user-guide updates.

Why

Pierre already provided undo/redo through its editor keymap, but Strand did not expose discoverable pointer controls or their availability state. This adds the visible affordance without maintaining a parallel history stack.

User impact

Users can now undo and redo Work Content edits from the toolbar or keyboard. The buttons disable automatically at history boundaries and preserve Strand's existing session-draft and stale-write behavior.

Validation

  • pnpm --filter ./ui exec tsc --noEmit
  • pnpm --filter ./ui test — 337 tests passed
  • pnpm --filter ./ui build
  • cargo build --no-default-features
  • Live Tauri/WebView2 pass covering typing, toolbar Undo/Redo, Ctrl+Z/Ctrl+Y, disabled states, and final draft cleanup

@danielss-dev
danielss-dev marked this pull request as ready for review August 6, 2026 12:23
@danielss-dev
danielss-dev merged commit aec9557 into main Aug 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant