Skip to content

feat(ui): make project switching undoable with Ctrl+Z (PUNT-411)#489

Open
jmynes wants to merge 1 commit into
mainfrom
feat/punt-411-undo-project-switch
Open

feat(ui): make project switching undoable with Ctrl+Z (PUNT-411)#489
jmynes wants to merge 1 commit into
mainfrom
feat/punt-411-undo-project-switch

Conversation

@jmynes

@jmynes jmynes commented Mar 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a projectSwitch undo action type to the undo store, tracking the source/target project IDs, names, and paths
  • When clicking a different project in the sidebar, an undo entry is pushed so Ctrl+Z navigates back to the previous project
  • Ctrl+Y / Ctrl+Shift+Z re-applies the project switch (redo)
  • Toast notifications confirm each switch ("Switched back" / "Switched to project")

Test plan

  • Navigate between two projects via the sidebar
  • Press Ctrl+Z — should navigate back to the previous project with a "Switched back" toast
  • Press Ctrl+Y — should navigate forward again with a "Switched to project" toast
  • Verify clicking the same project (already active) does NOT push an undo entry
  • Verify switching projects when no project was previously active does NOT push an undo entry
  • Verify other undo/redo actions (delete, move, etc.) still work correctly

🤖 Generated with Claude Code

Add projectSwitch action type to the undo store so that navigating
between projects via the sidebar can be reversed with Ctrl+Z and
re-applied with Ctrl+Y / Ctrl+Shift+Z. A toast confirms each switch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jmynes jmynes self-assigned this Mar 31, 2026
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