-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(explorer): highlight nav links and smooth scroll #103432
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #103432 +/- ##
===========================================
- Coverage 80.78% 80.67% -0.11%
===========================================
Files 9248 9243 -5
Lines 397172 394834 -2338
Branches 25158 25153 -5
===========================================
- Hits 320841 318524 -2317
+ Misses 75884 75863 -21
Partials 447 447 |
| onDeleteFromIndex?: (index: number) => void; | ||
| onKeyPress?: (blockIndex: number, key: 'Enter' | 'ArrowUp' | 'ArrowDown') => boolean; | ||
| onNavigate?: () => void; | ||
| scrollContainerRef?: React.RefObject<HTMLDivElement | null>; |
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.
Bug: Unused Parameter: Interface Disconnect
The scrollContainerRef parameter is added to the interface but never destructured from props or used in the function body. This means the parameter passed from explorerPanel.tsx is silently ignored, which may have been intended for some scroll-related functionality.
aliu39
left a comment
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.

Highlights the corresponding tool call when the nav button is selected so it's more clear which button belongs to what. Also adds a link icon so you can see that nav is available even before hovering/focusing the block.
Also makes scrolling with arrow keys less jittery with proper smooth scroll
Also restyle to use more core components
(sorry for tacking on)