Repository navigation
[FE-3423] chore(studio): flag pages/** edits to mirror into TanStack routes - #47650
Conversation
Add a CodeRabbit path_instructions rule scoped to apps/studio/pages/** that reminds authors to mirror the change into the corresponding apps/studio/routes/** file while the Next.js and TanStack Start builds coexist. Document the guardrail in TANSTACK_MIGRATION.md and track its removal in the cleanup checklist.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR adds a CodeRabbit review rule for ChangesMigration Guardrail Documentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Related Issues: FE-3423 Suggested labels: documentation, ci-config Suggested reviewers: N/A PoemA rabbit hops through pages new, 🚥 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.
Actionable comments posted: 1
🤖 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.
Inline comments:
In @.coderabbit.yaml:
- Around line 51-71: The tracking ticket reference is inconsistent across the
Studio migration guardrail docs, so align the removal ticket everywhere. Verify
whether FE-3106 or FE-3423 is the correct cleanup issue, then update the
`.coderabbit.yaml` reminder text and the matching entries in
`apps/studio/TANSTACK_MIGRATION.md` so they all point to the same ticket; use
the migration guardrail sections that mention the pages-to-routes mirroring rule
to locate the affected text.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8dffd18e-1464-451e-a912-56a158b738c6
📒 Files selected for processing (2)
.coderabbit.yamlapps/studio/TANSTACK_MIGRATION.md
| - path: 'apps/studio/pages/**' | ||
| instructions: | | ||
| Studio is mid-migration from the Next.js pages router (apps/studio/pages/**) | ||
| to TanStack Start (apps/studio/routes/**). Both runtimes ship side-by-side, so | ||
| every URL served from pages/** has a mirror in routes/**. See | ||
| apps/studio/TANSTACK_MIGRATION.md for the full route map and strategy. | ||
| Leave a comment reminding the author to check whether this change needs to be | ||
| mirrored into the corresponding apps/studio/routes/** file so the two builds | ||
| don't silently drift: | ||
| - Most route files re-export the page's default export (Path A), so pure | ||
| page-body edits propagate automatically — no mirror needed. | ||
| - A mirror IS needed when the change touches something the route file | ||
| duplicates rather than imports: getLayout / layout wrapping, page title or | ||
| other props the route encodes as staticData, withAuth / auth gating, or the | ||
| route/redirect path itself. | ||
| - A brand-new page under pages/** needs a matching new route under routes/** | ||
| (and a checklist entry in apps/studio/TANSTACK_MIGRATION.md). | ||
| - Do NOT suggest deleting the pages/** file — the Next file stays load-bearing | ||
| for both runtimes until the final cleanup pass (tracked in FE-3106). | ||
| Keep this a reminder to verify, not a hard blocker: if no mirror is required, | ||
| say so briefly rather than forcing a change. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Ticket reference mismatch across files.
This entry and apps/studio/TANSTACK_MIGRATION.md (line 37) both cite FE-3106 as the tracking ticket for this guardrail's removal, but the cleanup checklist bullet added in the same PR (TANSTACK_MIGRATION.md line 527) cites FE-3423 for the identical guardrail. Confirm which ticket is correct and align all three references.
🤖 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 @.coderabbit.yaml around lines 51 - 71, The tracking ticket reference is
inconsistent across the Studio migration guardrail docs, so align the removal
ticket everywhere. Verify whether FE-3106 or FE-3423 is the correct cleanup
issue, then update the `.coderabbit.yaml` reminder text and the matching entries
in `apps/studio/TANSTACK_MIGRATION.md` so they all point to the same ticket; use
the migration guardrail sections that mention the pages-to-routes mirroring rule
to locate the affected text.
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › sql-editor.spec.ts › SQL Editor › should check if SQL editor is working as expected Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
- Disambiguate FE-3423 (added the guardrail) vs FE-3106 (removes it) in the TanStack migration cleanup checklist, per review feedback
Braintrust eval report
|
Adds a PR-time reminder to mirror any edit to
apps/studio/pages/**into the correspondingapps/studio/routes/**file, since the Next.js pages router and the TanStack Start route tree ship side-by-side during the migration and can silently drift.Added:
path_instructionsrule (.coderabbit.yaml) scoped toapps/studio/pages/**that prompts authors to check whether a page change needs mirroring intoroutes/**. It encodes the migration's nuance so it isn't noise — pure body edits on re-export (Path A) pages propagate automatically, but layout/getLayout,staticDataprops,withAuth, redirect-path, or new-page changes must be mirrored by hand. Framed as verify-not-block, and explicitly tells authors not to delete thepages/**file.Changed:
apps/studio/TANSTACK_MIGRATION.md— documents the guardrail under the Runtime model section, and adds a cleanup-checklist line to remove it oncepages/**is deleted (FE-3106).This is temporary scaffolding — it comes out with the final
pages/**cleanup pass.To test
masterfirst, then open a throwaway PR that touches a file underapps/studio/pages/**and confirm CodeRabbit leaves the reminder comment.path_instructionscan be flaky — if CodeRabbit doesn't fire reliably, the fallback is a GitHub Action + sticky PR comment scoped topaths: ['apps/studio/pages/**'].Summary by CodeRabbit
pages/**must be mirrored intoroutes/**(e.g., layout/auth gating, page titles, static data, route paths, or new pages), and that verification isn’t a hard blocker.