Skip to content

Add/stashed file preview#24

Merged
ozgen merged 3 commits intomainfrom
add/stashed-file-preview
Feb 27, 2026
Merged

Add/stashed file preview#24
ozgen merged 3 commits intomainfrom
add/stashed-file-preview

Conversation

@ozgen
Copy link
Owner

@ozgen ozgen commented Feb 27, 2026

Added

  • Accordion-style Stashes view
    • Stashes are now expandable nodes instead of a flat list.
    • Expanding a stash reveals the files contained within it.
  • Per-file diff preview in Stashes view
    • Clicking a stashed file opens a diff against the stash base commit.
    • Newly added files in a stash open as single-file preview.
  • Status-aware stash file nodes (A/M/D/R/C).

Changed

  • Stash nodes are now collapsible instead of non-expandable items.
  • Refactored Stashes tree provider to support hierarchical rendering.
  • Extended Git adapter with git diff --name-status integration for stash file enumeration.

Improved

  • Safer handling of very large stashed files to prevent preview crashes.
  • Increased unit test coverage for stash tree rendering and Git stash parsing logic.

mehmetozgen added 3 commits February 28, 2026 00:47
- Stashes view now supports expanding a stash to list affected files
- Per-file action opens a diff preview for stashed changes
- Avoid previewing extremely large stashed files
- Added git adapter support for listing stash files
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 87.17949% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.15%. Comparing base (75e452b) to head (0449937).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/adapters/git/gitCliClient.ts 80.00% 0 Missing and 4 partials ⚠️
src/views/stash/stashesTreeProvider.ts 66.66% 0 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
- Coverage   91.47%   91.15%   -0.32%     
==========================================
  Files          37       37              
  Lines         997     1029      +32     
  Branches      231      243      +12     
==========================================
+ Hits          912      938      +26     
- Misses         17       18       +1     
- Partials       68       73       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ozgen ozgen merged commit 9b9a163 into main Feb 27, 2026
2 checks passed
@ozgen ozgen deleted the add/stashed-file-preview branch February 27, 2026 23:55
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