Skip to content

[MT-23015] Paginate the sidebar and preserve live consistency#38

Merged
kyrylo-yevdokymov merged 2 commits into
mainfrom
fix/mt-23015-sidebar-pagination
Jul 14, 2026
Merged

[MT-23015] Paginate the sidebar and preserve live consistency#38
kyrylo-yevdokymov merged 2 commits into
mainfrom
fix/mt-23015-sidebar-pagination

Conversation

@kyrylo-yevdokymov

@kyrylo-yevdokymov kyrylo-yevdokymov commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What & why

Fixes MT-23015, a sub-task of MT-22849.

The sidebar previously fetched only the newest 100 messages. This adds offset-based infinite scroll for inbox and search, server-total tracking, overlap deduplication, and stale-request invalidation when live mailbox mutations shift offsets.

Impact

Messages beyond the first page are discoverable, and concurrent create/delete events do not skip, duplicate, or resurrect rows.

Screenshots

Infinite scroll — a "Loading more…" row appears and the next page loads

Before After

"Delete all" reflects the true server total, not just the loaded page

Before After

Verification

  • npm test — 69 tests passed, including 19 Sidebar regressions
  • npm run lint — 0 errors; 4 existing warnings
  • npm run build — passed
  • git diff --check main...fix/mt-23015-sidebar-pagination — passed

Kyrylo Yevdokymov and others added 2 commits July 13, 2026 13:23
The sidebar fetched only the newest 100 messages with no way to reach
the rest. Scrolling near the bottom now pages in the next batch (both
for the inbox and for search results), with a loading row, an
AbortController guard against racing/stale appends, and dedupe by id so
live-prepended messages can't duplicate rows when offsets shift.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kyrylo-yevdokymov, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d0c3e033-126b-4e89-97fa-c488a66c1a07

📥 Commits

Reviewing files that changed from the base of the PR and between 9ce8945 and 0b2934a.

📒 Files selected for processing (3)
  • frontend/src/components/sidebar/MessageList.tsx
  • frontend/src/components/sidebar/Sidebar.test.tsx
  • frontend/src/components/sidebar/Sidebar.tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kyrylo-yevdokymov

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@kyrylo-yevdokymov
kyrylo-yevdokymov marked this pull request as ready for review July 13, 2026 10:43

@roman-adamchik roman-adamchik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kyrylo-yevdokymov
kyrylo-yevdokymov merged commit fb39e2b into main Jul 14, 2026
9 checks passed
@kyrylo-yevdokymov
kyrylo-yevdokymov deleted the fix/mt-23015-sidebar-pagination branch July 14, 2026 15:20
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.

4 participants