Replace feed infinite scroll with a Show more button - #61
Conversation
Swap the IntersectionObserver-driven auto-loading on the interactive feed for an explicit "Load more" button that calls loadMore on click. Removes the observer effect and its supporting refs, and keeps a visually-hidden polite status region for screen readers while a page loads. The button is disabled during loading and reuses the existing feed.loadMore / feed.loading strings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpkuigW6T4N1exXip6bRp
|
Warning Review limit reached
Next review available in: 57 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: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe main feed route adds search focus and recent-query state, and replaces IntersectionObserver-driven infinite scrolling with an explicit, loading-aware “Show more” button. ChangesFeed interactions
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/web/src/routes/index.tsx (1)
357-361: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUpdate the stale infinite-scroll documentation.
Line 360 says the root feed uses infinite scroll, but it now uses an explicit load-more button. This comment will otherwise mislead future maintenance.
Proposed fix
- * scroll on / stays the interactive experience layered on top. + * feed at / uses an explicit load-more control layered on top.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/web/src/routes/index.tsx` around lines 357 - 361, Update the feed documentation comment near the static crawlable slice to describe the root feed’s explicit load-more button instead of infinite scroll, while preserving the existing server-rendered pagination and recent-order details.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@apps/web/src/routes/index.tsx`:
- Around line 357-361: Update the feed documentation comment near the static
crawlable slice to describe the root feed’s explicit load-more button instead of
infinite scroll, while preserving the existing server-rendered pagination and
recent-order details.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 5f7589b4-2121-47fd-881b-b745bb8e3852
📒 Files selected for processing (1)
apps/web/src/routes/index.tsx
The JSDoc on FeedArchive still described the root feed as infinite scroll; it now uses an explicit load-more button. Update the comment to match so it doesn't mislead future maintenance. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpkuigW6T4N1exXip6bRp
Swap the IntersectionObserver-driven auto-loading on the interactive
feed for an explicit "Load more" button that calls loadMore on click.
Removes the observer effect and its supporting refs, and keeps a
visually-hidden polite status region for screen readers while a page
loads. The button is disabled during loading and reuses the existing
feed.loadMore / feed.loading strings.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012MpkuigW6T4N1exXip6bRp
Summary by CodeRabbit
New Features
Bug Fixes