Skip to content

fix(windows): expand compact folder chains in one click - #156

Merged
1lck merged 3 commits into
1lck:preview/0.3.0from
puppyben1:preview/0.3.0
Aug 18, 2026
Merged

fix(windows): expand compact folder chains in one click#156
1lck merged 3 commits into
1lck:preview/0.3.0from
puppyben1:preview/0.3.0

Conversation

@puppyben1

Copy link
Copy Markdown
Contributor

Summary

  • expand compact single-child folder chains with one action
  • keep mouse and keyboard focus on the final visible directory
  • preserve one-level expansion when Compact Folders is disabled
  • add focused regression coverage for chains and branch stopping

Root cause

The Windows/Tauri file tree renderer could compact a folder chain only when every directory in that chain was already present in expandedPaths. The folder action loaded and expanded only one directory per click, while background preloading did not update expansion state, so each click advanced the compact path by only one segment.

Impact

With Compact Folders enabled, a single click now loads and expands through consecutive single-child directories until it reaches files, an empty directory, or a branch. Local, WSL, and SSH workspaces share the same provider path.

Validation

  • focused regression tests: 2 passed
  • TypeScript typecheck passed
  • lint passed for changed files
  • production frontend build passed
  • Windows release executable built successfully
  • manually verified on Windows: compact folder expansion behaves as expected

The full existing frontend suite reports unrelated failures in icon inventory and Git API mock/export tests; the new directory-tree tests pass.

Closes #151

@puppyben1
puppyben1 marked this pull request as ready for review August 18, 2026 05:37
@puppyben1
puppyben1 requested a review from 1lck as a code owner August 18, 2026 05:37
@1lck
1lck merged commit e30d208 into 1lck:preview/0.3.0 Aug 18, 2026
6 checks passed
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