Enhance chat message list with infinite scroll and viewport preservation#51
Merged
mjkatgithub merged 2 commits intodevelopfrom Feb 28, 2026
Merged
Enhance chat message list with infinite scroll and viewport preservation#51mjkatgithub merged 2 commits intodevelopfrom
mjkatgithub merged 2 commits intodevelopfrom
Conversation
- Introduce IntersectionObserver to detect scroll events for reaching the top and bottom of the message list. - Add new props for loading states and viewport management, including `loadingNewer`, `centerOnMessageId`, and `preserveViewportOnPrepend`. - Implement logic to emit events when the top or bottom of the message list is reached, allowing for dynamic loading of messages. - Refactor message loading logic to support windowed message display based on read anchors and user interactions. - Update unit tests to cover new scrolling behavior and viewport preservation features.
12 tasks
- Document changes to the chat timeline, including a bounded initial message window to improve loading experience. - Note the transition from button-based pagination to bidirectional infinite scroll for chat history. - Highlight the new initial message viewport behavior, centering around the user's last-read event when applicable.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
loadingNewer,centerOnMessageId, andpreserveViewportOnPrepend.