Skip to content

[FE-3423] chore(studio): flag pages/** edits to mirror into TanStack routes - #47650

Merged
alaister merged 2 commits into
masterfrom
chore/fe-3423
Jul 6, 2026
Merged

alaister merged 2 commits into
masterfrom
chore/fe-3423

Conversation

@alaister

@alaister alaister commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Adds a PR-time reminder to mirror any edit to apps/studio/pages/** into the corresponding apps/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:

  • A CodeRabbit path_instructions rule (.coderabbit.yaml) scoped to apps/studio/pages/** that prompts authors to check whether a page change needs mirroring into routes/**. 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, staticData props, withAuth, redirect-path, or new-page changes must be mirrored by hand. Framed as verify-not-block, and explicitly tells authors not to delete the pages/** file.

Changed:

  • apps/studio/TANSTACK_MIGRATION.md — documents the guardrail under the Runtime model section, and adds a cleanup-checklist line to remove it once pages/** is deleted (FE-3106).

This is temporary scaffolding — it comes out with the final pages/** cleanup pass.

To test

  • This needs to land on master first, then open a throwaway PR that touches a file under apps/studio/pages/** and confirm CodeRabbit leaves the reminder comment.
  • path_instructions can be flaky — if CodeRabbit doesn't fire reliably, the fallback is a GitHub Action + sticky PR comment scoped to paths: ['apps/studio/pages/**'].

Summary by CodeRabbit

  • Documentation
    • Added migration guidance for Studio page changes to help keep mirrored route files in sync during the transition.
    • Clarified when edits to pages/** must be mirrored into routes/** (e.g., layout/auth gating, page titles, static data, route paths, or new pages), and that verification isn’t a hard blocker.
    • Added a cleanup reminder to remove the temporary review guidance once coexistence ends.

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.
@alaister
alaister requested a review from a team as a code owner July 6, 2026 14:57
@vercel

vercel Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview, Comment Jul 6, 2026 3:23pm
studio-staging Ready Ready Preview, Comment Jul 6, 2026 3:23pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 6, 2026 3:23pm
design-system Skipped Skipped Jul 6, 2026 3:23pm
docs Skipped Skipped Jul 6, 2026 3:23pm
ui-library Skipped Skipped Jul 6, 2026 3:23pm
zone-www-dot-com Skipped Skipped Jul 6, 2026 3:23pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d515d582-524b-4ac8-b817-58277b69b5ce

📥 Commits

Reviewing files that changed from the base of the PR and between d3df0ae and 29ce21b.

📒 Files selected for processing (1)
  • apps/studio/TANSTACK_MIGRATION.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/studio/TANSTACK_MIGRATION.md

📝 Walkthrough

Walkthrough

This PR adds a CodeRabbit review rule for apps/studio/pages/** to verify mirrored changes in apps/studio/routes/**, and updates the TanStack migration guide with the same guardrail plus a cleanup checklist item.

Changes

Migration Guardrail Documentation

Layer / File(s) Summary
CodeRabbit path_instructions rule and migration doc guardrail
.coderabbit.yaml, apps/studio/TANSTACK_MIGRATION.md
Adds a path_instructions rule for apps/studio/pages/**, documents when changes must be mirrored into apps/studio/routes/**, and adds a checklist item to remove the guardrail after migration.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Related Issues: FE-3423

Suggested labels: documentation, ci-config

Suggested reviewers: N/A

Poem

A rabbit hops through pages new,
Then checks the routes to make them true.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is missing the required template sections and the CONTRIBUTING.md yes/no acknowledgement. Rewrite it to match the template: include the CONTRIBUTING.md acknowledgement, change type, current behavior, new behavior, and additional context under the requested headings.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: adding a reminder to mirror pages/** edits into TanStack routes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/fe-3423

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 623a923 and d3df0ae.

📒 Files selected for processing (2)
  • .coderabbit.yaml
  • apps/studio/TANSTACK_MIGRATION.md

Comment thread .coderabbit.yaml
Comment on lines +51 to +71
- 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

@github-actions

github-actions Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  230 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  236 tests across 26 suites
duration  4 minutes, 16 seconds
commit  29ce21b

Flaky tests

Features › sql-editor.spec.ts › SQL Editor › should check if SQL editor is working as expected

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

- Disambiguate FE-3423 (added the guardrail) vs FE-3106 (removes it)
  in the TanStack migration cleanup checklist, per review feedback
@alaister
alaister enabled auto-merge (squash) July 6, 2026 15:20
@alaister
alaister merged commit 32798c3 into master Jul 6, 2026
33 checks passed
@alaister
alaister deleted the chore/fe-3423 branch July 6, 2026 15:26
@github-actions

github-actions Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1783351712)

Score Average Improvements Regressions
Completeness 95.4% (-3pp) - 3 🔴
Conciseness 45.4% (+6pp) 10 🟢 4 🔴
Docs Faithfulness 66.7% (+1pp) 3 🟢 6 🔴
Goal Completion 79.9% (-1pp) 5 🟢 3 🔴
Knowledge Usage 94.9% (+0pp) 1 🟢 1 🔴
Tool Usage 70.6% (-2pp) - 1 🔴
Correctness 66.7% (-2pp) 3 🟢 4 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 90.5% (+7.000000000000001pp) 3 🟢 1 🔴
URL Validity 100% - -
Time_to_first_token 3.63tok (+0.39tok) 9 🟢 20 🔴
Llm_calls 6.98 (-0.29) 9 🟢 15 🔴
Tool_calls 3.16 (+0.08) 13 🟢 10 🔴
Errors 0 (-0.02) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 25831.14tok (+1907.64tok) 13 🟢 12 🔴
Prompt_cached_tokens 8409.75tok (+888.64tok) 14 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 581.15tok (-30.44tok) 17 🟢 12 🔴
Completion_reasoning_tokens 98.17tok (-1.36tok) 9 🟢 17 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26412.29tok (+1877.21tok) 12 🟢 17 🔴
Estimated_cost 0$ (0$) 18 🟢 7 🔴
Duration 19.54s (+2.78s) 9 🟢 20 🔴
Llm_duration 11.83s (+0.82s) 11 🟢 18 🔴

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.

2 participants