WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@jpenilla
Copy link
Member

@jpenilla jpenilla commented Dec 6, 2025

Also reduce the blue-500 spam

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
diffs ✅ Ready (View Log) Visit Preview d5a220a

Copy link

Copilot AI left a 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 FileTreeNodeData type 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.

Copy link

Copilot AI left a 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.

@jpenilla jpenilla merged commit f74f904 into master Dec 6, 2025
3 checks passed
@jpenilla jpenilla deleted the file-tree-enhancements branch December 6, 2025 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants