-
-
Notifications
You must be signed in to change notification settings - Fork 4
Increase click area for file tree nodes #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the file tree UI in the sidebar to improve usability and maintainability. The main changes include increasing the clickable area for file tree nodes and replacing specific color classes with semantic ones.
Key changes:
- Refactored the
FileTreeNodeDatatype to a discriminated union for better type safety - Restructured the tree node rendering to make the entire node clickable (not just the inner content)
- Replaced hardcoded color classes (
text-primary,text-gray-600) with semantic tokens (text-em-med)
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| web/src/routes/Sidebar.svelte | Refactored file tree rendering with new click handling, unified tree node wrapper, and updated color classes to use semantic tokens |
| web/src/routes/FileHeader.svelte | Updated tree node selector to work with discriminated union type |
| web/src/routes/DiffSearch.svelte | Minor positioning adjustment for search icon |
| web/src/lib/util.ts | Refactored FileTreeNodeData to discriminated union and removed unused type exports |
| web/src/lib/diff-viewer.svelte.ts | Updated renamed file icon color class to semantic token |
| web/src/lib/components/tree/index.svelte.ts | Added depth tracking to tree nodes for dynamic indentation |
| web/src/lib/components/diff/concise-diff-view.svelte.ts | Updated imports to use types directly from their source library |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Also reduce the blue-500 spam