[MT-23015] Paginate the sidebar and preserve live consistency#38
Conversation
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>
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
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
"Delete all" reflects the true server total, not just the loaded page
Verification
npm test— 69 tests passed, including 19 Sidebar regressionsnpm run lint— 0 errors; 4 existing warningsnpm run build— passedgit diff --check main...fix/mt-23015-sidebar-pagination— passed