Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Add mode toggle buttons to switch between branches and diff views#133

Merged
wesbillman merged 1 commit intomainfrom
129-creating-branch-will-fail-silently-if-that-branch
Feb 6, 2026
Merged

Add mode toggle buttons to switch between branches and diff views#133
wesbillman merged 1 commit intomainfrom
129-creating-branch-will-fail-silently-if-that-branch

Conversation

@wesbillman
Copy link
Collaborator

Summary

Adds visible UI buttons to switch between the branches view and diff view, making this feature discoverable without requiring the Konami code easter egg.

Changes

  • Adds a FileDiff icon button in the branches view top bar to switch to diff mode
  • Adds a GitBranch icon button in the diff view tab bar to switch to branches mode
  • Extracts mode toggle logic into a reusable handleToggleMode function shared between the buttons and the existing Konami code

…views

Add a button next to settings/keyboard/theme buttons in both TabBar and
BranchTopBar components to toggle between 'branches' and 'diff' view modes.

- TabBar: GitBranch icon to switch to Branches view
- BranchTopBar: FileDiff icon to switch to Diff view
- Refactored Konami code handler to use shared handleToggleMode function

This provides a discoverable way to switch modes without needing to know
the Konami code easter egg.
@wesbillman
Copy link
Collaborator Author

Screenshot 2026-02-06 at 12 23 36 PM Screenshot 2026-02-06 at 12 23 39 PM

@wesbillman wesbillman merged commit 484b57c into main Feb 6, 2026
1 check passed
@wesbillman wesbillman deleted the 129-creating-branch-will-fail-silently-if-that-branch branch February 6, 2026 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant