Skip to content

Enhance chat message list with infinite scroll and viewport preservation#51

Merged
mjkatgithub merged 2 commits intodevelopfrom
feature/timeline-window-budget
Feb 28, 2026
Merged

Enhance chat message list with infinite scroll and viewport preservation#51
mjkatgithub merged 2 commits intodevelopfrom
feature/timeline-window-budget

Conversation

@mjkatgithub
Copy link
Owner

  • 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.

- 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.
@mjkatgithub mjkatgithub linked an issue Feb 28, 2026 that may be closed by this pull request
12 tasks
@mjkatgithub mjkatgithub self-assigned this Feb 28, 2026
- 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.
@mjkatgithub mjkatgithub merged commit c05da5a into develop Feb 28, 2026
5 checks passed
@mjkatgithub mjkatgithub deleted the feature/timeline-window-budget branch February 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Limit initial timeline load window

1 participant