feat(workspace): dedicated StashesPanel with Apply/Pop/Drop actions#12
Draft
noahbclarkson wants to merge 4 commits intomainfrom
Draft
feat(workspace): dedicated StashesPanel with Apply/Pop/Drop actions#12noahbclarkson wants to merge 4 commits intomainfrom
noahbclarkson wants to merge 4 commits intomainfrom
Conversation
Owner
Author
|
Details panel shows "Stash" with nothing else when clicking on a stash which could be confusing for users. Also suffers from Issue: #13 |
added 3 commits
April 13, 2026 09:29
- Create StashesPanel (Alt+8) showing all stash entries with message + OID - Add toolbar with stash count badge and refresh button - Inline Apply (keep stash) / Pop (remove) / Drop action buttons per entry - Add Stashes to RightPanelMode enum; wire into workspace layout - Add ToggleStashes command + Alt+8 keyboard shortcut - Register ToggleStashes in command palette with Alt+8 hint - Add StashesPanel to ProjectTab; spawn in open_repo tab creation - Wire Refresh handler to call panel.refresh() on toolbar refresh - Add StashesPanelEvent enum for future event-driven coordination - Add stash context menu state + dismiss logic to sidebar (pre-existing) - Add stashes_panel unit tests for StashEntry
Fixes button overflow on the right side of the dialog on Windows (issue #13). The button container div was missing .pr(px(4.)) padding, causing buttons to touch or extend past the right edge of the dialog. Added the padding to match the pattern already used in confirm_dialog.rs.
9e8b416 to
6dd05f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a first-class Stashes Panel accessible via Alt+8, giving stashes the same UI treatment as branches and PRs.
What changed
New
StashesPanel(crates/rgitui_workspace/src/stashes_panel.rs):Wiring:
Stashesadded toRightPanelModeenum.when(right_panel_mode == Stashes)Alt+8keyboard shortcut viaToggleStashescommandstashes_paneladded toProjectTab; spawned inopen_repoToolbarEvent::RefreshSidebar stash context menu (pre-existing working directory changes):
Why
Stash operations were buried in sidebar context menus with no dedicated panel. This makes stash management a first-class workflow, matching the UX of
BranchHealthPanelandPrsPanel.CI
All tests pass, clippy clean, fmt clean.