Skip to content

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

Closed
kyrylo-yevdokymov wants to merge 2 commits into
mainfrom
codex/mt-23015-sidebar-pagination
Closed

[MT-23015] Paginate the sidebar and preserve live consistency#32
kyrylo-yevdokymov wants to merge 2 commits into
mainfrom
codex/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.

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...codex/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

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aa3d56bb-4067-4756-8c24-215227b5d571

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Replaced by #38 using the repository-standard fix/mt-23015-sidebar-pagination branch.

@kyrylo-yevdokymov
kyrylo-yevdokymov deleted the codex/mt-23015-sidebar-pagination branch July 13, 2026 10:35
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.

1 participant