Repository navigation
feat(explorer): polish collapse/expand controls - #442
Conversation
|
Done — replaced the plain The buttons now match VS Code’s behavior:
Screenshot of the result: |
Replaced raw text characters with official VS Code codicon chevron SVGs. Kept original Tree and DirectoryNode logic intact.
|
Apologies for the confusion — I made changes on a local branch but didn't push them to this PR branch, so you were looking at the original file. I also mistakenly ran a diff check on the wrong branch. I have now applied the fix directly to Changes:
Screenshot of the new collapsed and expanded states attached. Thank you for catching this! |
|
@ateto3 ,could you please share a screenshot of your changes? I checked out your PR branch and ran the project locally, but I still couldn't see any noticeable differences. Thanks! |
|
Now It's all good with the SVG you wanted, I have confused and think you want a SVG of "<" and ">" but now I have understand and all is like you want tell me if it's not |
|
This is the svg that I found at the original VScode repositories: https://github.com/microsoft/vscode/blob/main/extensions/theme-modern-icons/fileicons/images/file.svg |
|
This is definitely a significant improvement. However, if you have the time and energy, I would encourage you to continue refining the design further. |
|
Okay I will work tomorrow on having the lines more near to each other and more thin to be seemed more to vscode svg and see the solution of the dark and light mode |
|
Approved. The Explorer toggle is now polished and accessible. It uses a compact, project-specific SVG icon with clear light and dark theme states, smooth hover feedback, keyboard-visible focus rings, descriptive tooltips, and accurate aria-expanded values. The collapsed state remains easy to discover and restore, while the existing state handling is preserved. The branch has been updated with the latest main changes, unrelated lockfile noise and backup artifacts were removed, and the final diff is scoped to the Explorer component. Linting and all 157 tests pass. The local production-build check was blocked only by a stale Next build lock; CI should run the final production build. |







Summary
Improves the project tree sidebar collapse/expand interaction to feel more polished and professional, taking inspiration from VS Code’s sidebar UX while preserving the project’s existing visual identity. Closes #440.
Changes
‹and›text buttons with inline SVG chevron icons (no new dependencies).aria-expanded,aria-label, andfocus-visiblerings for keyboard accessibility.The internal
collapsedstate and all existing handlers (setCollapsed) remain unchanged, so this is a purely presentational upgrade with zero behavioural regressions.How to test
Checklist
focus-visible,aria-expanded)Closes #440