Repository navigation
Rework chat scrolling and automatic history loading #323
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
142bb12
Add stable message keys and dedupe messages
raucao a1e260e
Fetch older archive messages on demand
raucao af129c3
Rework chat scrolling and automatic history loading
raucao d3ba5a3
Release the scroll maintenance lock on user intent for instant scrolls
raucao 9781091
Prevent rendering if channel is destroyed or changed
raucao 6b00e5e
Enhance scroll button for better accessibility
raucao 4d8e527
Update message count increment condition
raucao b904f9f
Modify count increment condition in chat scroller
raucao 2ff98c7
Handle failures when loading older messages
raucao 264db07
Address review feedback on history loading and scrolling
raucao f311a66
Address the latest review: message scope, windowing, async safety
raucao 5f1a530
Animate scroll-to-bottom in JS instead of native smooth scroll
raucao 184519a
Fix scroll-to-bottom button reliability, jump, and ease-out
raucao 04ccba2
Fix message keys so scroll anchors can be restored
raucao fb08ed8
Reset chat scrolling when the channel object changes
raucao 24611d6
Keep focus in the message list when the jump button hides
raucao b28123e
Add tests for older-message pagination
raucao e258409
Remove unnecessary focus outline suppression
raucao cd40113
Fetch older history for channels shorter than the render window
raucao 9df5739
Base the fill guard on archive cursor progress, not just height
raucao 919963f
Load older history when the list only slightly overflows
raucao 925ca7a
Do not settle at the bottom when a programmatic scroll fell short
raucao de18c9f
Improve contrast of the history status messages
raucao b5099f0
Do not start a second scroll-to-bottom animation
raucao 8e029dd
Keep the bottom when older messages prepend while sticking
raucao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <div | ||
| ...attributes | ||
| {{chat-scroll | ||
| onReady=this.handleReady | ||
| onScroll=this.handleScroll | ||
| onScrollEnd=this.handleScrollEnd | ||
| onContentResize=this.handleContentResize}} | ||
| {{on-change @items this.handleItemsChanged}} | ||
| {{on-change @resetKey this.handleReset}} | ||
| {{on-change @isLoadingOlder this.handleLoadingOlderChanged}} | ||
| > | ||
| <div class="channel-scroll-content"> | ||
| {{yield this.scrollApi}} | ||
| </div> | ||
| </div> |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.