Harden and review the main codebase#32
Conversation
|
Important Review skippedToo many files! This PR contains 395 files, which is 295 over the limit of 100. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (529)
You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b8066e8e7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| nextCursor: | ||
| rows.length === limit && lastRow !== undefined | ||
| ? { createdAt: new Date(lastRow.createdAt), id: lastRow.id } |
There was a problem hiding this comment.
Emit a next cursor only after confirming another page exists
When a moments query has exactly limit remaining rows (for example, exactly 30 rows at the default page size), listPageForBrowse returns limit rows and this condition still emits a cursor. The Moments UI then renders a Next link whose request is necessarily empty because the cursor excludes the final row. Fetch limit + 1 rows (or otherwise return a hasMore signal) before generating the cursor; the same exact-limit issue is also present in the analogous flashback paging logic.
Useful? React with 👍 / 👎.
Summary
Verification
All commits were pushed without rewriting history. The latest commit is GPG signed.