Skip to content

feat(stash): selectable file preview before stashing#16

Merged
danielss-dev merged 1 commit into
mainfrom
developements/stash-preview-select-f55f
Jul 1, 2026
Merged

feat(stash): selectable file preview before stashing#16
danielss-dev merged 1 commit into
mainfrom
developements/stash-preview-select-f55f

Conversation

@danielss-dev

Copy link
Copy Markdown
Owner

Summary

Adds a file checklist to the stash dialog so you can preview and select which changed files to stash before confirming.

  • Stash dialog shows all stashable paths (staged + unstaged) with checkboxes, select-all, and status badges
  • Pre-selection mirrors Local Changes: Pierre multi-select wins, then active row / folder / show-all; otherwise all files start checked
  • Partial stash backend via repo_stash_push_paths (git stash push -- <pathspec…>, with snapshot re-apply when keeping changes)
  • Entry points: Topbar Stash button/menu, ⌘K, sidebar +, and Local Changes context menu ("Stash…")

Test plan

  • cargo test -p strand-core stash_push_paths_partial
  • pnpm exec tsc --noEmit in ui/
  • pnpm run test -- src/lib/stashPreselection.test.ts
  • Open stash dialog with multi-selected files in Local Changes — only those files pre-checked
  • Toggle files off and stash — only selected paths leave the working tree
  • Snapshot mode keeps all selected changes in the working tree after stashing
Open in Web Open in Cursor 

Show a checklist of changed files in the stash dialog so users can include
or exclude paths before confirming. Pre-selection mirrors Local Changes:
Pierre multi-select, then the active row, folder, or show-all selection.

Adds repo_stash_push_paths for partial stashes via git stash push pathspecs,
tracks Pierre multi-selection in the repo store, and routes Topbar stash
actions through the preview dialog.

Co-authored-by: Daniels <danielss-dev@users.noreply.github.com>
@danielss-dev danielss-dev marked this pull request as ready for review July 1, 2026 08:09
@danielss-dev danielss-dev merged commit b39ab40 into main Jul 1, 2026
2 checks passed
@danielss-dev danielss-dev deleted the developements/stash-preview-select-f55f branch July 1, 2026 16:36
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.

2 participants