Skip to content

feat(studio): fonts - #47306

Merged
fsansalvadore merged 11 commits into
masterfrom
feat/studio-font
Jul 1, 2026
Merged

fsansalvadore merged 11 commits into
masterfrom
feat/studio-font

Conversation

@fsansalvadore

@fsansalvadore fsansalvadore commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Update studio fonts:

  • Headings: Manrope
  • Sans-serif: Inter

Slightly reduced font-sizes by 1px (or 2 for bigger font-sizes) and increased base html font-weight to 450 for better rendering and legibility.

Summary by CodeRabbit

  • New Features

    • Updated the studio app’s typography with new font settings for body text, headings, and code.
    • Headings now use a distinct heading font, while general text uses a refreshed sans-serif font.
  • Bug Fixes

    • Improved font loading by switching to locally hosted font files, helping ensure more consistent rendering.
    • Added fallback styling for heading fonts and normalized default text weight across the app.

@fsansalvadore
fsansalvadore requested a review from a team as a code owner June 25, 2026 14:22
@vercel

vercel Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 1, 2026 10:48am
docs Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 10:48am
studio-self-hosted Ready Ready Preview, Comment Jul 1, 2026 10:48am
studio-staging Ready Ready Preview, Comment Jul 1, 2026 10:48am
ui-library Ready Ready Preview, Comment Jul 1, 2026 10:48am
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 1, 2026 10:48am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 1, 2026 10:48am

Request Review

@supabase

supabase Bot commented Jun 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Studio's font stack is migrated from CustomFont/Google fonts to local variable fonts. inter and manrope replace customFont; sourceCodePro switches from Google to local woff2 files. App shell, document, font-face CSS, and global typography tokens are all updated to wire the new fonts.

Changes

Studio font loading and typography

Layer / File(s) Summary
Font module exports
apps/studio/fonts/index.ts
Adds manrope (Google) and inter (local variable font) exports, removes customFont, and replaces the Google sourceCodePro with a local variable font configuration.
Font-face CSS and theme token
apps/studio/styles/fonts.css, packages/config/css/theme.css
Replaces CustomFont face rules with Inter variable font faces, updates --font-custom fallback stack to Inter, and changes --font-sans in theme to self-reference instead of --font-custom.
App shell font wiring
apps/studio/pages/_app.tsx, apps/studio/pages/_document.tsx
_app.tsx injects --font-sans/--font-heading root variables from inter/manrope; _document.tsx applies inter and sourceCodePro CSS variables to <body>.
Global typography tokens
apps/studio/styles/globals.css
Adds @theme inline for --font-heading, introduces --font-weight-normal: 450, applies font-weight: 450 to the document flow, and adds font-heading/font-semibold to h1–h6.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hop hop, the fonts have changed their face,
Inter and Manrope leap into place!
No more CustomFont, no Google call—
Local woff2 files handle it all.
With weight 450 and headings so grand,
The studio glows at the rabbit's command! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing the required template sections and omits current behavior, linked issues, and additional context. Rewrite it with the repo template: CONTRIBUTING confirmation, change type, current behavior, new behavior, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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.
Title check ✅ Passed The title is concise and directly matches the PR’s main Studio font updates.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/studio-font

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.

@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  224 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  230 tests across 25 suites
duration  3 minutes, 11 seconds
commit  03ecbcc

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

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

🧹 Nitpick comments (1)
apps/studio/styles/globals.css (1)

64-64: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the new token in the base rule.

Line 196 hardcodes 450 even though Line 64 introduces --font-weight-normal. Referencing the token here keeps the default weight aligned if this value changes again.

Suggested change
-  font-weight: 450;
+  font-weight: var(--font-weight-normal);

Also applies to: 196-196

🤖 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/studio/styles/globals.css` at line 64, The base font rule is still
hardcoding the normal weight instead of using the new CSS token. Update the base
rule in globals.css to reference --font-weight-normal where the 450 value is
applied, so the default weight stays aligned with the token introduced near the
top of the stylesheet.
🤖 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 `@apps/studio/styles/globals.css`:
- Line 64: The base font rule is still hardcoding the normal weight instead of
using the new CSS token. Update the base rule in globals.css to reference
--font-weight-normal where the 450 value is applied, so the default weight stays
aligned with the token introduced near the top of the stylesheet.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7b95aeb1-85fb-46cf-a4b6-8f0be1cfb17f

📥 Commits

Reviewing files that changed from the base of the PR and between 8e68159 and c9742c9.

📒 Files selected for processing (2)
  • apps/studio/styles/fonts.css
  • apps/studio/styles/globals.css

@fsansalvadore fsansalvadore changed the title feat(studio): font feat(studio): fonts Jun 30, 2026
@fsansalvadore
fsansalvadore merged commit 33dc3c1 into master Jul 1, 2026
32 checks passed
@fsansalvadore
fsansalvadore deleted the feat/studio-font branch July 1, 2026 11:11
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782904420)

Score Average Improvements Regressions
Completeness 96.6% (+0pp) 2 🟢 3 🔴
Conciseness 42% (-2pp) 5 🟢 8 🔴
Correctness 65.6% (-4pp) 3 🟢 4 🔴
Docs Faithfulness 65.1% (+1pp) 5 🟢 3 🔴
Goal Completion 80.5% (+0pp) 4 🟢 5 🔴
Knowledge Usage 92.3% (+0pp) - -
Tool Usage 66.7% (-4pp) - 2 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+5pp) 1 🟢 -
URL Validity 100% (+0pp) - -
Safety 81% (+2pp) 2 🟢 3 🔴
Time_to_first_token 3.2tok (-0.23tok) 17 🟢 12 🔴
Llm_calls 7.2 (+0.2) 13 🟢 7 🔴
Tool_calls 3.33 (+0.32) 13 🟢 6 🔴
Errors 0.07 (+0.02) - 1 🔴
Llm_errors 0.03 (+0.02) - 2 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 27049.31tok (+4035.67tok) 12 🟢 14 🔴
Prompt_cached_tokens 8186.11tok (+1536tok) 18 🟢 8 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 639.53tok (+39.71tok) 12 🟢 17 🔴
Completion_reasoning_tokens 106.61tok (+13.22tok) 12 🟢 15 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 27688.84tok (+4075.38tok) 13 🟢 16 🔴
Estimated_cost 0$ (+0$) 14 🟢 14 🔴
Duration 17.33s (-0.51s) 16 🟢 13 🔴
Llm_duration 11.73s (+0.16s) 17 🟢 12 🔴

alaister added a commit that referenced this pull request Jul 6, 2026
#47306 renamed Tailwind's sans var from --font-custom to --font-sans and added
--font-heading (Manrope), setting both via next/font on the Next build. The
TanStack fonts.css was never updated — it still only set the now-ignored
--font-custom, so --font-sans was unset and resolved to theme.css's fallback
chain (Circular, custom-font, Helvetica Neue, ...) i.e. system fonts, and
--font-heading/Manrope was missing entirely. Body text rendered as Helvetica at
weight 450, which is why the Inter weights looked wrong.

- fonts.css: set --font-sans (vendored Inter) and --font-heading (Manrope) to
  match what next/font provides on Next; drop the dead --font-custom.
- __root.tsx: load Manrope over the same Google Fonts <link> already used for
  Source Code Pro (Inter stays vendored via @font-face).

Verified against the built CSS bundle in a browser: computed body font-family is
now Inter (was the Circular/system fallback) and headings resolve to Manrope.
The unlayered :root wins over theme.css's @layer theme self-referential
--font-sans, same as the Next inline-style approach.
alaister added a commit that referenced this pull request Jul 7, 2026
#47306 renamed Tailwind's sans var from --font-custom to --font-sans and added
--font-heading (Manrope), setting both via next/font on the Next build. The
TanStack fonts.css was never updated — it still only set the now-ignored
--font-custom, so --font-sans was unset and resolved to theme.css's fallback
chain (Circular, custom-font, Helvetica Neue, ...) i.e. system fonts, and
--font-heading/Manrope was missing entirely. Body text rendered as Helvetica at
weight 450, which is why the Inter weights looked wrong.

- fonts.css: set --font-sans (vendored Inter) and --font-heading (Manrope) to
  match what next/font provides on Next; drop the dead --font-custom.
- __root.tsx: load Manrope over the same Google Fonts <link> already used for
  Source Code Pro (Inter stays vendored via @font-face).

Verified against the built CSS bundle in a browser: computed body font-family is
now Inter (was the Circular/system fallback) and headings resolve to Manrope.
The unlayered :root wins over theme.css's @layer theme self-referential
--font-sans, same as the Next inline-style approach.
alaister added a commit that referenced this pull request Jul 7, 2026
#47306 renamed Tailwind's sans var from --font-custom to --font-sans and added
--font-heading (Manrope), setting both via next/font on the Next build. The
TanStack fonts.css was never updated — it still only set the now-ignored
--font-custom, so --font-sans was unset and resolved to theme.css's fallback
chain (Circular, custom-font, Helvetica Neue, ...) i.e. system fonts, and
--font-heading/Manrope was missing entirely. Body text rendered as Helvetica at
weight 450, which is why the Inter weights looked wrong.

- fonts.css: set --font-sans (vendored Inter) and --font-heading (Manrope) to
  match what next/font provides on Next; drop the dead --font-custom.
- __root.tsx: load Manrope over the same Google Fonts <link> already used for
  Source Code Pro (Inter stays vendored via @font-face).

Verified against the built CSS bundle in a browser: computed body font-family is
now Inter (was the Circular/system fallback) and headings resolve to Manrope.
The unlayered :root wins over theme.css's @layer theme self-referential
--font-sans, same as the Next inline-style approach.
alaister added a commit that referenced this pull request Jul 8, 2026
…rom #46424) (#47657)

Post-merge fixes for the TanStack Start migration (#46424) — things that
broke on the TanStack build as master evolved under the migration
branches. Kept on their own branch off master rather than piling onto
the E2E-matrix PR (#47119); all land on master and cascade up to S6 +
the big PR.

Common theme: a master PR changed something the Next pipeline handles
via `next/font` / `pages/_app.tsx` / `next.config.ts`, but the
hand-rolled TanStack equivalent (`routes/__root.tsx`,
`styles/fonts.css`, `vercel.ts`) wasn't updated to match — invisible on
the Next deploy, broken only on TanStack.

---

## 1. Monaco loader path (#47182)

#47182 re-nested the served Monaco assets from a flat
`public/monaco-editor/` layout into `public/monaco-editor/vs/` and
updated `pages/_app.tsx`, but `routes/__root.tsx` still pointed
`loader.config` at the old path, so `loader.js` 404'd and **no Monaco
editor mounted anywhere in the TanStack build**. Now mirrors the Next
config (`${origin}${BASE_PATH}/monaco-editor/vs`, window-guarded for
SSR). Was failing the whole `tanstack` E2E shard on #47119.

## 2. Inter + Manrope fonts (#47306)

#47306 renamed Tailwind's sans var `--font-custom` → `--font-sans` and
added `--font-heading` (Manrope), set via `next/font` on Next.
`fonts.css` still only set the now-ignored `--font-custom`, so the body
fell back to the theme's system chain (`Circular, custom-font,
Helvetica…`) at weight 450 — that's the "Inter weights look wrong".
Manrope was missing entirely.

- Wire `--font-sans` (Inter) + `--font-heading` (Manrope) to match
`next/font`.
- **Vendor all three families** (Inter, Manrope, Source Code Pro) via
`@font-face` so nothing depends on the Google Fonts CDN — matches
`next/font` self-hosting, and (see below) `font-src` doesn't allow
`fonts.gstatic.com` anyway.

Verified in-browser: computed `body` → `Inter`, headings → `Manrope`,
all loading from local `/assets/*.woff2`.

## 3. Security headers / CSP (next.config.ts `headers()`)

The Next build sets X-Frame-Options / X-Content-Type-Options / HSTS /
**Content-Security-Policy** / Referrer-Policy via `next.config.ts`. The
TanStack build never carried these over — `vercel.ts` only set
cache-control, so **the deployed TanStack dashboard shipped with no CSP
at all**.

The TanStack deploy serves a static shell (no server to attach headers),
so they go in the Vercel config:
- `security-headers.ts` — shared source of truth, reuses `getCSP()`,
env-gated exactly like next.config.
- `vercel.ts` — apply to every response (all base-path prefixes): full
`getCSP()` + HSTS on platform.
- `scripts/serve.js` — the non-platform set (`frame-ancestors 'none'`)
for the self-hosted server.

**Tested the policy in a real browser** (temporarily enforced it on the
TanStack build via /test-supabase-local): everything passed except one
real gap — `font-src` was missing `data:`, so GraphiQL's bundled Monaco
codicon font and Stripe's payment-element fonts (both data: URIs) were
blocked (37 violations on a cold load). Added `data:` to `font-src` in
`csp.ts` → violations drop to zero, SQL editor Monaco renders clean.
That gap affects the Next build too.

---

## 4. `node:path` import crashing `/project/[ref]/merge`

Found by a full-site click-through of the TanStack build (all product
areas, ongoing — see below). `useEdgeFunctionsDiff.ts` +
`EdgeFunctionsDiffPanel.tsx` did `import { basename } from 'path'` in
client code. Webpack (Next) polyfills `path` in the browser; Vite
externalizes it, so the whole `/merge` route crashed with "Module
\"path\" has been externalized for browser compatibility". Replaced the
two `basename` call sites with a string helper. Verified in-browser:
`/merge` renders.

## 5. URL shape — Next-style search-param semantics + shim fixes

The dashboard produced malformed URLs vs the Next build (strange query
params, trailing slashes, `##` hashes). Root cause + audit verified
empirically against `@tanstack/[email protected]`; all fixed with
unit tests and browser-verified:

- **`createRouter` used TanStack's default JSON search codec** —
`?flag=true` became `?flag=%22true%22` via links, repeated
`?filter=…&filter=…` collapsed into a JSON array (breaking
multi-filter/sort table-editor URLs and the account-page round-trip,
which double-encoded), and search values arrived as numbers/booleans
where the app expects strings. New `lib/router-search-params.ts`
(Next-style: strings in, strings out, repeated keys → string[]) wired
into the router.
- **Link shim** (`compat/next/link.tsx`): `URL.hash` includes the
leading `#` while TanStack's `hash` prop adds its own → every
`href="…#section"` navigated to `##section` (hash-scroll broke);
`Object.fromEntries(searchParams)` dropped repeated query params. Both
fixed.
- **Trailing slash injected before the query** on every `?`-only
relative navigation (`/auth/providers/?provider=…`): fixed in the compat
router (prefix current pathname) and via a custom nuqs adapter
(`lib/nuqs-tanstack-adapter.tsx`) replacing the stock tanstack-router
adapter, whose `navigate({ to: '?…' })` writes hit the same TanStack
behavior (123 files use nuqs).
- **Pathname-less `router.push({ query })` leaked path params** — Next
re-consumes `ref`/`id` from `query` into the path pattern; the shim
didn't, yielding
`/editor/17597?schema=public&ref=<ref>&id=17597&filter=…` from
table-editor filter/sort, linter panels, and advisor shortcuts. The shim
now defaults the pathname to the current route pattern and backfills
omitted params.
- **Redirects dropped query + hash** (Next's `redirects()` preserves
them): `__root.tsx` `matchRedirect` and `routes/index.tsx` now carry
incoming params/hash through (consumed rule params excluded,
destination's own params win). `/?next=new-project&projectName=zzz` →
`/new/new-project?projectName=zzz`; `/sql/quickstarts?template=x#frag` →
`/sql/examples?template=x#frag`.

Browser-verified post-fix: advisors `?preset=WARN`, providers
`?provider=Google`, `?schema=auth` — all clean (no `/?`, no leaks);
repeated `filter` params survive hydration; `=true` unquoted; single
`#`.

## 6. TanStack `navigate` corrupting query values (Logs Explorer SQL
newline loss)

TanStack router-core treats a query string embedded in `navigate({ to
})` as part of the *path*: `decodePath` percent-decodes it and
`sanitizePathSegment` strips control characters, silently deleting every
`%0A`. Logs Explorer's SQL (`s` param) lost its newlines on Run/reload —
`order by timestamp desc` / `limit 5` glued into `desclimit 5`, which
then failed the LIMIT lint. Pre-existing on the TanStack build (the
stock nuqs adapter had the same shape); Next unaffected.

Fixed by never embedding query strings in `to`: the nuqs adapter and the
compat `router.push`/`replace`/`prefetch` (plus the `next/navigation`
shim) now pass search as an object through the app codec
(`splitInternalUrl` hoisted to `lib/internal-url.ts`). Guard test drives
a real `createRouter` with multi-line SQL through both producers.
Browser-verified: newlines survive the full Run → reload → re-Run cycle.

## 7. Integration overview markdown never loaded (all integrations)

`MarkdownContent` used a template-literal dynamic import
(``import(`@/static-data/integrations/${id}/overview.md`)``) — webpack
builds a context module for that, Vite can't analyze it, so every
integration detail page threw `Failed to resolve module specifier` and
rendered no overview text. Fixed with an explicit lazy registry of
literal imports (`static-data/integrations/overviews.ts`, drift-guarded
by a test) plus an `mdRawLoader()` Vite plugin mirroring next.config's
turbopack raw-loader rule. Both runtimes keep working; md stays out of
the main bundle.

## 8. GraphiQL editor never mounted (`exports is not defined`)

Our `umdAmdShortCircuit()` Vite plugin (which disarms Monaco's global
AMD loader for deps like papaparse) rewrote `typeof define ===
'function' && define.amd` to `false` inside `monaco-editor`'s bundled
copy of marked — whose UMD relies on its own *local* `define` shim — so
the whole optimized monaco chunk failed to evaluate and GraphiQL's
editor pane stayed blank. The check now only short-circuits when
`define` is the global AMD loader. Browser-verified: all four GraphiQL
Monaco panes mount, queries execute. (Known follow-up: GraphiQL's Monaco
workers fall back to the main thread under Vite — functional, worker
wiring is Next-specific `setup-workers/webpack`.)

## 9. `@sentry/nextjs` bundling Next internals — built TanStack bundle
crashed (caught by E2E)

The E2E suite against the **built** TanStack bundle (not the dev server)
found lazy chunks like `table-editor-*.js` dead on arrival:
`@sentry/nextjs` (imported by ~25 client files) drags in
`next/dist/shared/lib/constants`, whose module scope evaluates
`process?.features?.typescript` — optional chaining doesn't guard an
undeclared `process` in the browser, so the whole chunk failed at load
with `ReferenceError: process is not defined`. Dev shims `process`,
which is why weeks of dev-server testing never saw it.

Fixed by aliasing `@sentry/nextjs` → `compat/sentry-nextjs.ts`
(re-exports `@sentry/react`, same deduped 10.59.0, plus explicit
stand-ins for the three Next-only APIs) in the Vite build only.
Verified: fresh build has zero Next-internals markers in any chunk;
table editor loads clean; full E2E suite run against the built bundle.

Note for the stack: `alaister/tanstack-start` / the E2E-matrix branch
already carried a different fix for the same crash (a `next/constants`
shim) that never made it to master — the cherry-pick onto those branches
keeps **both** (the shim covers any other transitive importer; the alias
keeps Next internals out of the client bundle entirely).

**Follow-up found while fixing:** Sentry is never *initialized* in the
TanStack runtime — `instrumentation-client.ts` /
`sentry.server.config.ts` are Next-convention files nothing imports
under TanStack, so `captureException` calls are silent no-ops. Needs an
`@sentry/react` init (+ `tanstackRouterBrowserTracingIntegration`) wired
into the TanStack client entry as its own PR.

## 10. GraphiQL Monaco workers + edge-function Deno typings (Vite-only
gaps)

- **GraphiQL's Monaco workers ran on the main thread** under Vite
("Could not create web worker(s)…" — `setup-workers/webpack`'s `new
URL(...)` form isn't rewritten by Vite). A `graphiqlViteWorkers()`
plugin resolves the import to graphiql's own `setup-workers/vite`
variant for client builds (SSR untouched, Next untouched); the
setup-workers chain is `optimizeDeps.exclude`d because the Rolldown
optimizer can't load `?worker` ids.
- **Edge-function editors silently lost their Deno typings** —
`AIEditor` loaded `public/deno/*.d.ts` via `/* @vite-ignore */` imports
that always failed at runtime under Vite. The `.md` raw loader is
generalized into `rawTextLoader` (exact-path allowlist for the two
typings files, served as virtual string modules so the dep scanner never
parses `.d.ts` syntax), and the imports are now static-analyzable
literals that both bundlers handle (turbopack's raw-loader rules match
them on the Next side).

## Split out for reviewability

App-level fixes that reproduce on the Next build too (DOM-nesting
hydration errors, the ghost deleted-snippet nav, the recurring pg-meta
`migrations` 400) moved to their own PR: #47667. Sentry initialization
for the TanStack runtime (captures were silent no-ops) is #47666,
stacked on this PR.

## Full-site test campaign

Drove every dashboard product area on the local TanStack build
(Playwright, human-style) hunting migration regressions:
redirects/404/catch-alls, org, account, project home/branches/merge,
table editor CRUD, SQL editor (Monaco/run/save/templates/AI), all
database pages, all auth pages, storage CRUD, edge functions + realtime,
logs/observability, advisors, settings, integrations hub incl. nested
routes, global UI (palette/connect/switchers/theme/fonts), and a
cross-cutting sweep (document titles, back/forward chain, hard-refresh
hydration on deep URLs, trailing-slash active state). Every failure
found is fixed above and re-verified in-browser; remaining console
quirks were cross-checked against the deployed Next build and are
pre-existing (tracked separately).

## To test

Most fixes are already browser-verified + covered by unit tests and the
self-hosted E2E suite; the last two landed after the final browser pass
and still need an in-browser check:

1. **GraphiQL Monaco workers** — restart the dev server (clear
`apps/studio/node_modules/.vite` once first — the optimizer cache may
hold a stale prebundle of the worker chain). Open
`/project/<ref>/integrations/graphiql/graphiql` with the console open:
the `Could not create web worker(s). Falling back to loading web worker
code in main thread` warning must be gone, and DevTools → Sources →
Threads shows the three workers (json, editor, graphql). Autocomplete in
the query editor stays responsive.
2. **Edge-function Deno typings** — `/project/<ref>/functions/new`: no
"Failed to load … typings" console error, and typing `Deno.` in the
editor offers typed completions (e.g. `Deno.env`).

Spot-checks for the rest (all previously verified):
- `/project/<ref>/merge` renders (no "Module path" crash).
- Multi-line SQL in Logs Explorer survives Run → reload (no `desclimit`
gluing, no LIMIT-lint false failure); `s` param keeps `%0A`.
- `/auth/providers` → open a provider → `?provider=…` with no trailing
slash before `?`; table-editor filter/sort URLs carry no leaked
`ref`/`id` params; `/?next=new-project&projectName=x` lands on
`/new/new-project?projectName=x`.
- Integration detail pages (cron/queues/vault/data_api) show their
overview prose; GraphiQL query editor mounts.
- Built bundle (`MODE=test vite build` + `start:tanstack`): table editor
loads with no `process is not defined`.
- `curl -sI` any page on a platform deploy: `X-Content-Type-Options:
nosniff` (was the invalid `no-sniff`).


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Centralized integration overview markdown loading with registry-based
lookup.
* Improved Monaco loading/asset path handling for smoother editor
startup.
* **Bug Fixes**
* Next-style navigation/search handling now preserves pathname, hash,
repeated query keys, and special characters (including newlines).
* Redirects now reliably carry over query and hash with correct
precedence.
* **Security/Configuration**
* Updated CSP font sourcing and unified security headers delivery across
environments; conditional HSTS behavior.
* Refreshed font CSS variables and font-face definitions to match the
theme.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


---

### Review feedback: non-prod favicon (Joshen)

The TanStack `__root.tsx` hardcoded the prod favicon; local + hosted
staging now use the white staging favicon (`/favicon/staging`), matching
what `pages/_app.tsx` passes to `MetaFaviconsPagesRouter` for non-prod.
Rather than pull the pages-router component into the TanStack head, it
reuses the same synchronous `NEXT_PUBLIC_ENVIRONMENT` signal the file
already uses for `IS_DEV_TOOLBAR_ENABLED` (the `head()` route option
isn't a React component, so it can't run `_app`'s async CLI check — but
the env signal covers the reported local/staging case).

---------

Co-authored-by: Alaister Young <[email protected]>
Co-authored-by: Joshen Lim <[email protected]>
dnywh added a commit that referenced this pull request Jul 30, 2026
## What kind of change does this PR introduce?

Chore

## What is the current behavior?

Design system still uses the old CustomFont family, so documented
components no longer match Studio, www, and docs after the Inter /
Manrope rollout.

## What is the new behavior?

Design system uses the same font stack as the other apps:

- Inter for body (`--font-sans`)
- Manrope for headings (`--font-heading`)
- Source Code Pro for mono

Also adopts the Inter-optimised type scale and base weight (`450`) used
in Studio.

## Additional context

Based on Francesco's unshipped `chore/update-fonts` draft (design-system
slice only). Related shipped work: #47306, #47227.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Updated the design system with refreshed typography using Inter and
Manrope, with Source Code Pro for code.
* Refined theme typography and spacing tokens, including a more complete
text scale, updated font weights, and container sizing.
* Improved heading styling and ensured `code`/`pre`/`kbd`/`samp` use
consistent monospace treatment.
* Adjusted default border styling and improved font loading/fallback
behavior for more consistent rendering.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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