feat: add sticky user message navigation #10693
Draft
+118
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #10690
Roo Code Task Context (Optional)
N/A
Description
This PR attempts to address Issue #10690 by implementing a sticky navigation banner that helps users navigate long conversations more easily.
Key Implementation Details:
StickyUserMessageNavcomponent that displays a compact banner at the top of the chat when the user scrolls up past their messagesscrollToIndexAPIrangeChangedcallback from Virtuoso to track the first visible item indexFiles Changed:
webview-ui/src/components/chat/StickyUserMessageNav.tsx- New componentwebview-ui/src/components/chat/ChatView.tsx- Integration with scroll trackingwebview-ui/src/i18n/locales/en/chat.json- Translation stringsTest Procedure
Automated Tests: All existing ChatView tests pass (23/23).
Pre-Submission Checklist
Screenshots / Videos
N/A (Draft PR - screenshots can be added after visual testing)
Documentation Updates
Additional Notes
This is a draft PR. Feedback and guidance are welcome!
Get in Touch
roomote
Important
Introduces a sticky navigation banner in chat to navigate to the last out-of-view user message, enhancing user experience.
StickyUserMessageNavcomponent to display a banner when scrolling up past user messages inChatView.tsx.scrollToIndex.rangeChangedfrom Virtuoso to track visible items.StickyUserMessageNav.tsx: New component for sticky navigation.ChatView.tsx: Integrates sticky navigation and manages scroll tracking.chat.json: Adds translation strings for sticky navigation.This description was created by
for 98ad090. You can customize this summary. It will automatically update as commits are pushed.