Fix GUI cross-project navigation - #267
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 47 minutes and 43 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate 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 see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughRefactors ChangesPlatform-aware navigation refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/app/(main)/global-notifications.tsx (1)
132-139: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCentralize the agent-detail path shape.
The web branch now hard-codes
/project/agent/${...}/chat, while the native branch gets that route fromdetailHrefForPath(...). Consider moving the string-form detail path intoview-location.tstoo, so both branches stay in sync if the detail route changes again.🤖 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 `@app/app/`(main)/global-notifications.tsx around lines 132 - 139, The agent-detail route shape is duplicated between the web branch and the native branch, which can drift if the route changes. Move the string-based `/project/agent/.../chat` path construction into view-location utilities alongside detailHrefForPath, then update global-notifications to use that shared helper for both window.location.assign and router.navigate so the route stays centralized.
🤖 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.
Nitpick comments:
In `@app/app/`(main)/global-notifications.tsx:
- Around line 132-139: The agent-detail route shape is duplicated between the
web branch and the native branch, which can drift if the route changes. Move the
string-based `/project/agent/.../chat` path construction into view-location
utilities alongside detailHrefForPath, then update global-notifications to use
that shared helper for both window.location.assign and router.navigate so the
route stays centralized.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 76a4c8ed-7412-4880-bcbe-574f473382e4
📒 Files selected for processing (5)
app/app/(main)/global-notifications.tsxapp/app/(main)/global-threads.tsxapp/components/NativeNotificationRouter.tsxapp/lib/view-location.test.tsapp/lib/view-location.ts
|
@coderabbitai review |
✅ Action performedReview finished.
|
Smoke-test fix for cross-project GUI navigation.\n\nVerification:\n- Chrome MCP: selected premys, clicked an aimux global inbox row, landed on /project/agent/... with project=/Users/sam/cs/aimux and no console errors.\n- app typecheck\n- app lint (existing warnings only)\n- app vitest\n- build:ui:local\n- push hook: yarn typecheck && yarn lint && yarn test
Summary by CodeRabbit