Skip to content

Merge compute and disk into Infrastructure - #48370

Merged
alaister merged 12 commits into
masterfrom
chore/infra-compute-3-cutover
Jul 29, 2026
Merged

alaister merged 12 commits into
masterfrom
chore/infra-compute-3-cutover

Conversation

@SaxonF

@SaxonF SaxonF commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the final step in merging compute and disk with infrastructure to become a single place to manage everything. This moves everything we've done in compute and disk over to infrastructure along with redirects.

  • Makes Infrastructure canonical for the completed compute and disk configuration and usage charts.
  • Moves Service Versions to General Project Settings.
  • Removes the legacy Infrastructure activity implementation and constants.
  • Updates settings navigation, shortcuts, banners, billing links, warning CTAs, usage pages, support suggestions, and other internal entry points.
  • Adds the permanent /settings/compute-and-disk redirect, removes its Next and TanStack routes, regenerates the route tree, and updates the migration checklist.
  • Preserves query parameters and legacy metric anchors, including #cpu.

Stack

  1. Modernize compute and disk configuration #48368
  2. Add compute and disk usage charts #48369
  3. Merge compute and disk into Infrastructure #48370 (this PR)

How to test

  1. Check out chore/infra-compute-3-cutover.
  2. Test the Next implementation with pnpm dev:studio, then stop it and test TanStack with STUDIO_FRAMEWORK=tanstack pnpm dev:studio.
  3. In each implementation, open /project/<ref>/settings/infrastructure. Confirm the page contains the usage charts and the Scaling, Compute, Disk, and Advanced configuration sections.
  4. Open /project/<ref>/settings/general. Confirm Service Versions appears there with its existing name, content, and styling, and no longer appears on Infrastructure.
  5. Open /project/<ref>/settings/compute-and-disk?upgrade=micro#disk. Confirm it permanently redirects to /project/<ref>/settings/infrastructure?upgrade=micro#disk, preserving the query string and hash.
  6. Confirm the settings menu exposes Infrastructure and no longer exposes Compute and Disk. Repeat with platform and self-hosted settings.
  7. Follow representative entry points from billing usage, resource warning CTAs, upgrade banners, shortcuts, and support suggestions. Confirm they land on Infrastructure and preserve any query parameters or metric anchors such as #cpu.
  8. Smoke-test compute and disk updates from Infrastructure, including validation, the sticky review footer, and warning/critical chart states.

Summary by CodeRabbit

  • New Features
    • Consolidated compute and disk management under the Infrastructure project settings page.
    • Added a Service versions section to General project settings.
  • Bug Fixes
    • Updated links and upgrade CTAs across the product to route to the correct Infrastructure or Service versions destinations.
    • Added permanent redirects from legacy Compute and Disk to Infrastructure, preserving query/hash.
    • Improved resource warning upgrade routing for compute scenarios.
  • Tests
    • Expanded automated coverage for Infrastructure, Service versions, redirects, and warning-link routing.
  • Chores
    • Updated ESLint rule baseline configuration for the studio app.

@supabase

supabase Bot commented Jul 27, 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 Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 4c86c301-89a2-49e7-8890-bdabc7e13889

📥 Commits

Reviewing files that changed from the base of the PR and between 2df49eb and 8faa792.

📒 Files selected for processing (1)
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersionsSection.test.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersionsSection.test.tsx

📝 Walkthrough

Walkthrough

The change consolidates compute and disk settings under Infrastructure, adds Service Versions to General settings, updates navigation and redirects, centralizes resource-warning routing, and adds tests for the new settings surfaces and behaviors.

Changes

Settings consolidation

Layer / File(s) Summary
Service Versions section and contract
apps/studio/components/interfaces/Settings/General/ServiceVersions/*, apps/studio/pages/project/[ref]/settings/general.tsx, related upgrade-link components
Adds getServiceVersionsPath, renders and restructures ServiceVersionsSection, updates database-upgrade destinations, and tests rendering states.
Infrastructure page and settings navigation
apps/studio/pages/project/[ref]/settings/infrastructure.tsx, apps/studio/components/layouts/ProjectSettingsLayout/*, apps/studio/redirects.shared.*, apps/studio/state/shortcuts/*, apps/studio/components/interfaces/DiskManagement/*, apps/studio/tests/pages/project/[ref]/settings/infrastructure.test.tsx
Moves disk management into Infrastructure, removes Compute and Disk route/menu/shortcut entries, adds redirects, explicit field IDs, and page interaction tests.
Settings destination updates
apps/studio/components/interfaces/**/*, apps/studio/components/ui/*, apps/studio/pages/project/[ref]/**/*
Updates compute, disk, support, observability, and upgrade links to Infrastructure, Service Versions, or observability destinations.
Resource warning routing
apps/studio/components/ui/ResourceExhaustionWarningBanner/*
Centralizes compute-warning classification and correction URLs, updates banner suppression logic, and adds routing tests.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed, but it does not follow the required template and omits the mandatory section headings. Rewrite it to match the template: CONTRIBUTING acknowledgment, change type, current behavior, new behavior, and additional context.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: merging compute and disk into Infrastructure.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/infra-compute-3-cutover

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.

@vercel

vercel Bot commented Jul 27, 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 29, 2026 11:08am
studio-staging Ready Ready Preview, Comment Jul 29, 2026 11:08am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 29, 2026 11:08am
design-system Skipped Skipped Jul 29, 2026 11:08am
docs Skipped Skipped Jul 29, 2026 11:08am
ui-library Skipped Skipped Jul 29, 2026 11:08am
zone-www-dot-com Skipped Skipped Jul 29, 2026 11:08am

Request Review

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  241 passed
flaky  2 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 27 seconds
commit  8faa792

Flaky tests

Features › database.spec.ts › Database › Schema Visualizer › table actions work as expected
Features › table-editor.spec.ts › table editor › can create and remove foreign key with column selection

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

@SaxonF
SaxonF marked this pull request as ready for review July 28, 2026 03:58
@SaxonF
SaxonF requested a review from a team as a code owner July 28, 2026 03:58
@SaxonF
SaxonF force-pushed the chore/infra-compute-2-charts branch from 19e5ec9 to 31ac41e Compare July 28, 2026 04:22
@SaxonF
SaxonF force-pushed the chore/infra-compute-3-cutover branch from 1a74c10 to 1bada6b Compare July 28, 2026 04:26
SaxonF added a commit that referenced this pull request Jul 29, 2026
## Summary

This is a precursor to unifying "compute and disk" and "infrastructure
pages". First step is just updating the existing compute and disk page
to make use of standard page and form patterns.

- Reorganizes the existing Compute and Disk form into the established
settings layout pattern, with Scaling, Compute, Disk, and Advanced
sections.
- Moves billing deltas to section headers while retaining the sticky
review footer.
- Adds animated notices, validation-error scrolling, and a responsive
compute-size selector (2 columns by default, 3 from 680px, and 4 from
900px).
- Preserves permissions, entitlements, cooldowns, read-only warnings,
replica pricing, GP3 validation, Nano/PITR locks, and the free Micro
upgrade treatment.
- Keeps the redesigned experience on `/settings/compute-and-disk` so it
can be reviewed independently of the route cutover.

## Stack

1. #48368 (this PR)
2. #48369
3. #48370

## How to test

1. Check out `chore/infra-compute-1-config` and start Studio with `pnpm
dev:studio`.
2. Open `/project/<ref>/settings/compute-and-disk`.
3. Confirm the page header and Scaling, Compute, Disk, and Advanced
sections follow the standard settings-page spacing, with the plan notice
directly below the Scaling header.
4. Change the compute size and disk configuration. Confirm billing
deltas appear in the relevant section headers and the sticky review
footer summarizes and applies the pending changes.
5. Enter invalid GP3 IOPS or throughput values and submit. Confirm the
validation message is shown and the first invalid field is scrolled into
view.
6. Exercise representative project states: insufficient permissions,
read-only mode, resize cooldown, Nano with PITR, a project with read
replicas, and a free Micro upgrade. Confirm the existing locks,
warnings, pricing, and upgrade treatment remain intact.
7. Resize the viewport and confirm the compute cards use 2 columns by
default, 3 columns from 680px, and no more than 4 columns from 900px.


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

- **New Features**
- Reworked the Compute and Disk settings UI into clearer sectioned
pages, including smoother navigation to the first validation error.
- Added a transitional in-form NoticeBar for consistent alert rendering.
- Improved billing change badges to reflect accurate before/after
totals.
- **Bug Fixes**
  - Fixed disk IOPS/throughput pricing to include replica-based charges.
- Strengthened disk sizing validation (GP3 limits, legacy/size edge
cases, spend-cap behavior, and provider-specific constraints).
- **Refactor**
  - Updated key form field layouts for improved readability.
- **Tests**
  - Expanded schema validation and pricing/billing badge test coverage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <[email protected]>
alaister added a commit that referenced this pull request Jul 29, 2026
## Summary

This is the second step towards merging compute and disk with
infrastructure. There are some usage charts on the current
infrastructure page that are useful to have in the context of compute
and disk settings. This branch adds two charts which give a general
sense of usage and whether an upgrade needs to happen. Other data points
in infrastructure can be found within observability and organisation
usage.

- Adds rolling seven-day Compute and Disk charts to the existing Compute
and Disk page.
- Shows CPU, memory, optional burstable disk IO, and disk usage split
into database, WAL, and system data.
- Covers loading, error, empty, warning, and critical states, retaining
the 75% warning and 90% critical thresholds.
- Uses a dedicated PageSection and keeps the charts in two columns from
680px.
- Uses the concise primary labels Compute and Disk, removes the database
report link, and removes tooltip icons from secondary metrics.
- Adds transformation, summary, and component tests covering dedicated
IO behavior, legacy anchors, responsive layout, rolling refetch, and
tooltip behavior.

## Stack

1. #48368
2. #48369 (this PR)
3. #48370

## How to test

1. Check out `chore/infra-compute-2-charts` and start Studio with `pnpm
dev:studio`.
2. Open `/project/<ref>/settings/compute-and-disk` on a project with
recent metrics.
3. Confirm the charts are in their own page section with standard
spacing below the page header.
4. Confirm the Compute chart shows CPU and memory, plus disk IO when
applicable, and the Disk chart splits usage into database, WAL, and
system data.
5. Confirm the primary labels are Compute and Disk, secondary metrics do
not show tooltip icons, and there is no Database Observability/report
link.
6. Resize across 680px. The charts should remain in two columns at and
above the breakpoint and stack into two rows below it.
7. Exercise loading, error, empty, warning, and critical responses with
the metrics mocks or response overrides. Confirm warning styling begins
at 75%, critical styling begins at 90%, and an error or empty response
does not break the configuration form.


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

* **New Features**
* Added compute and disk usage charts to the disk management interface,
including metric cards for CPU, memory, disk I/O, database, WAL, and
system.
* Added usage status indicators, peak calculations, tooltips, and a
detailed disk breakdown with placeholders when data is missing.
* Added special handling for dedicated-I/O instances to hide burst-only
disk I/O.
* **Style**
* Simplified the disk space display by removing supplemental explanatory
text.
* **Tests**
* Added comprehensive test coverage for chart rendering,
loading/error/empty states, status/peak calculations, and rolling 7-day
data window behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <[email protected]>
Base automatically changed from chore/infra-compute-2-charts to master July 29, 2026 09:57
alaister added 3 commits July 29, 2026 18:00
- mock ui-patterns/Admonition (shim collapsed on master)
- pass required dehydratedState prop to page component
… test

The AutoScaleFields, IOPSField, and ThroughputField inputs had no
accessible name: FormItemLayout renders its label with
htmlFor={name || id} while FormInputGroupInput keeps the auto-generated
form-item id, so the two never matched. Pass id={field.name} on the
inputs (and the Throughput FormItemLayout) like DiskSizeField already
does.

Also await the Advanced section in the infrastructure page test — it
only renders once the project query resolves (isAws).

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx (1)

184-195: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Stale title: still references "infrastructure activity" after content moved to observability.

The admonition body and link were updated to point to database observability reports (/observability/database), but the title still says "Have you checked your project's infrastructure activity?" — worth aligning the title with the new destination for clarity.

✏️ Suggested title update
-        title="Have you checked your project's infrastructure activity?"
+        title="Have you checked your project's database observability reports?"
🤖 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/components/interfaces/Support/CategoryAndSeverityInfo.tsx` around
lines 184 - 195, Update the Admonition title in the DATABASE_UNRESPONSIVE branch
to reference the project's database observability reports, aligning it with the
existing body text and `/observability/database` link instead of infrastructure
activity.
🧹 Nitpick comments (2)
apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx (1)

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

Rename onDatabaseSettingsAndInReadOnlyMode — it no longer checks a database-settings route.

This variable now guards router.pathname.endsWith('settings/infrastructure'), not a database-settings page. The name is a holdover from before the compute/disk consolidation and is now misleading for future readers/maintainers of this suppression logic.

♻️ Suggested rename
-  const onDatabaseSettingsAndInReadOnlyMode =
+  const onInfrastructurePageWithNoOpCta =
     router.pathname.endsWith('settings/infrastructure') &&
     (activeWarnings.includes('is_readonly_mode_enabled') || (isComputeUpgradeMetric && !isFreePlan))

(update the corresponding usage in the if condition below accordingly)

🤖 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/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx`
around lines 161 - 163, Rename onDatabaseSettingsAndInReadOnlyMode to reflect
that it targets the settings/infrastructure route, and update its corresponding
usage in the following if condition. Preserve the existing route and warning
conditions unchanged.
apps/studio/components/ui/ComputeBadgeWrapper.tsx (1)

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

Extract a shared getInfrastructurePath(projectRef) helper instead of hardcoding /settings/infrastructure in four places. This PR already introduced getServiceVersionsPath to avoid duplicating the Service Versions URL; the same pattern would prevent the four /project/:ref/settings/infrastructure literals from drifting independently if the route ever changes again.

  • apps/studio/components/ui/ComputeBadgeWrapper.tsx#L198-L200: replace the inline template literal with a shared getInfrastructurePath(projectRef) helper call.
  • apps/studio/components/ui/BannerStack/Banners/BannerFreeMicroUpgrade.tsx#L61-L61: use the same helper (passing through the ?upgrade=micro query param) instead of the inline literal.
  • apps/studio/components/ui/UpgradePlanButton.tsx#L70-L76: use the same helper for the computeSize addon branch instead of the inline literal.
  • apps/studio/pages/project/[ref]/observability/database.tsx#L376-L376: use the same helper for the "Increase disk size" link instead of the inline literal.
🤖 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/components/ui/ComputeBadgeWrapper.tsx` around lines 198 - 200,
Extract a shared getInfrastructurePath(projectRef) helper alongside the existing
path helpers and replace the hardcoded infrastructure URLs in
apps/studio/components/ui/ComputeBadgeWrapper.tsx:198-200,
apps/studio/components/ui/BannerStack/Banners/BannerFreeMicroUpgrade.tsx:61,
apps/studio/components/ui/UpgradePlanButton.tsx:70-76, and
apps/studio/pages/project/[ref]/observability/database.tsx:376. Preserve the
existing ?upgrade=micro query parameter when composing the
BannerFreeMicroUpgrade link and use the helper for the computeSize and “Increase
disk size” links.
🤖 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
`@apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersionsSection.tsx`:
- Around line 26-31: Correct the ProjectUpgradeAlert import in
ServiceVersionsSection by matching the two-level relative path used for
UpgradeWarnings, so it resolves from Settings/General/ServiceVersions to
Settings/Infrastructure. Leave the warning imports unchanged.

---

Outside diff comments:
In `@apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx`:
- Around line 184-195: Update the Admonition title in the DATABASE_UNRESPONSIVE
branch to reference the project's database observability reports, aligning it
with the existing body text and `/observability/database` link instead of
infrastructure activity.

---

Nitpick comments:
In `@apps/studio/components/ui/ComputeBadgeWrapper.tsx`:
- Around line 198-200: Extract a shared getInfrastructurePath(projectRef) helper
alongside the existing path helpers and replace the hardcoded infrastructure
URLs in apps/studio/components/ui/ComputeBadgeWrapper.tsx:198-200,
apps/studio/components/ui/BannerStack/Banners/BannerFreeMicroUpgrade.tsx:61,
apps/studio/components/ui/UpgradePlanButton.tsx:70-76, and
apps/studio/pages/project/[ref]/observability/database.tsx:376. Preserve the
existing ?upgrade=micro query parameter when composing the
BannerFreeMicroUpgrade link and use the helper for the computeSize and “Increase
disk size” links.

In
`@apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx`:
- Around line 161-163: Rename onDatabaseSettingsAndInReadOnlyMode to reflect
that it targets the settings/infrastructure route, and update its corresponding
usage in the following if condition. Preserve the existing route and warning
conditions unchanged.
🪄 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 Plus

Run ID: 260f9c28-0e87-4d67-a030-a899058a4f18

📥 Commits

Reviewing files that changed from the base of the PR and between b455d87 and 6ec2a8e.

⛔ Files ignored due to path filters (1)
  • apps/studio/routeTree.gen.ts is excluded by !**/routeTree.gen.ts
📒 Files selected for processing (42)
  • apps/studio/.github/eslint-rule-baselines.json
  • apps/studio/TANSTACK_MIGRATION.md
  • apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
  • apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/AdditionalMonthlySpend.tsx
  • apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
  • apps/studio/components/interfaces/DiskManagement/DiskManagementPanelForm.tsx
  • apps/studio/components/interfaces/Integrations/Queues/UpgradeDatabaseAlert.tsx
  • apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
  • apps/studio/components/interfaces/Linter/Linter.utils.tsx
  • apps/studio/components/interfaces/Organization/Usage/UsageSection/DiskUsage.tsx
  • apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexAdvisorDisabledState.tsx
  • apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersions.utils.test.ts
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersions.utils.ts
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersionsSection.test.tsx
  • apps/studio/components/interfaces/Settings/General/ServiceVersions/ServiceVersionsSection.tsx
  • apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.ts
  • apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx
  • apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
  • apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/BucketCallouts.tsx
  • apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
  • apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketCallouts.tsx
  • apps/studio/components/interfaces/Support/CategoryAndSeverityInfo.tsx
  • apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.selfhosted.test.tsx
  • apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.test.tsx
  • apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
  • apps/studio/components/ui/BannerStack/Banners/BannerFreeMicroUpgrade.tsx
  • apps/studio/components/ui/ComputeBadgeWrapper.tsx
  • apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
  • apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.test.ts
  • apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.utils.ts
  • apps/studio/components/ui/UpgradePlanButton.tsx
  • apps/studio/pages/project/[ref]/database/settings.tsx
  • apps/studio/pages/project/[ref]/observability/database.tsx
  • apps/studio/pages/project/[ref]/settings/compute-and-disk.tsx
  • apps/studio/pages/project/[ref]/settings/general.tsx
  • apps/studio/pages/project/[ref]/settings/infrastructure.tsx
  • apps/studio/redirects.shared.test.ts
  • apps/studio/redirects.shared.ts
  • apps/studio/routes/project/$ref/settings/compute-and-disk.tsx
  • apps/studio/state/shortcuts/registry/project-settings-nav.ts
  • apps/studio/tests/pages/project/[ref]/settings/infrastructure.test.tsx
💤 Files with no reviewable changes (9)
  • apps/studio/routes/project/$ref/settings/compute-and-disk.tsx
  • apps/studio/.github/eslint-rule-baselines.json
  • apps/studio/TANSTACK_MIGRATION.md
  • apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
  • apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.selfhosted.test.tsx
  • apps/studio/pages/project/[ref]/settings/compute-and-disk.tsx
  • apps/studio/components/interfaces/Settings/Infrastructure/Infrastructure.constants.ts
  • apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx
  • apps/studio/state/shortcuts/registry/project-settings-nav.ts

alaister added 3 commits July 29, 2026 18:42
- align support admonition title with its observability link
- rename onDatabaseSettingsAndInReadOnlyMode to
  shouldSuppressOnInfrastructurePage to match the route it now guards
- extract getInfrastructurePath helper for the four hardcoded
  /settings/infrastructure links
Sweep the rest of the concrete /settings/infrastructure link literals
onto the shared helper. Route-pattern matchers, redirect config, and
test expectations keep their literals intentionally. Also drops the
[ref]-templating in getResourceWarningCorrectionUrl in favor of
building concrete paths directly.

@alaister alaister left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Preview + local test — ✅ all pass

Tested this on both runtimes – the "How to test" list on the studio-staging preview (Next, with the /dashboard prefix), and the same checklist locally on TanStack after merging in latest master. Everything checks out on both:

# Test Next (preview) TanStack (local)
1 Infrastructure page: charts + Scaling/Compute size/Disk/Advanced sections in order ✅ ✅
2 Service versions moved to General, gone from Infrastructure ✅ ✅
3 /settings/compute-and-disk?upgrade=micro#disk redirect preserves query + hash ✅ (server 308) ✅
4 Bare /settings/compute-and-disk redirect ✅ ✅
5 Legacy #cpu / #ram / #disk_io anchors scroll correctly ✅ ✅
6 Settings menu shows Infrastructure, no Compute and Disk entry ✅ ✅
7 Charts render (real data on preview; error/empty/warning/critical states exercised locally via mocked responses – 75%/90% thresholds correct, error state doesn't break the form) ✅ ✅
8 Form smoke: tier prices, disk size validation, sticky footer, review dialog open/cancel, clean reset ✅ ✅
9 No new console errors ✅ ✅

Also fixed on the branch while testing:

  • The two failing unit tests in infrastructure.test.tsx – one was a timing bug in the test (Advanced section renders after the project query resolves), but the other caught a real a11y bug: the autoscale/IOPS/throughput inputs had no accessible name (label htmlFor never matched the input id). Fixed by passing id={field.name} on the inputs, same as DiskSizeField already does.
  • CodeRabbit feedback: stale support admonition title, renamed the banner suppression variable, and extracted a getInfrastructurePath helper (then swept all remaining literal links onto it).

Notes:

  • The vitest suites from the test plan were run locally (infrastructure page, DiskManagement, redirects, ServiceVersions, banner utils – all green); CI on the latest push is still running as I write this.
  • No side effects on staging – reused an existing project, nothing submitted or created.

The lowercase admonition shim was removed on master; this was the last
test still mocking the old path.
@alaister
alaister merged commit ad203ae into master Jul 29, 2026
38 checks passed
@alaister
alaister deleted the chore/infra-compute-3-cutover branch July 29, 2026 11:26
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785324609)

Score Average Improvements Regressions
Completeness 97.7% (-2pp) - 2 🔴
Conciseness 42% (-2pp) 6 🟢 10 🔴
Docs Faithfulness 66.3% (+1pp) 5 🟢 3 🔴
Goal Completion 80.5% (-3pp) 3 🟢 6 🔴
Knowledge Usage 97.4% (-3pp) - 1 🔴
Correctness 67.8% (-6pp) 1 🟢 4 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 76.5% (+0pp) 1 🟢 1 🔴
Safety 85.7% (-12pp) 1 🟢 3 🔴
Time_to_first_token 3.24tok (-0.15tok) 16 🟢 13 🔴
Llm_calls 6.91 (-0.38) 7 🟢 18 🔴
Tool_calls 2.93 (-0.11) 9 🟢 12 🔴
Errors 0.05 (+0.05) - 2 🔴
Llm_errors 0.02 (+0.02) - 2 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 25378.45tok (+1693.64tok) 12 🟢 13 🔴
Prompt_cached_tokens 7373.98tok (-88.28tok) 12 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 594.21tok (+2.69tok) 16 🟢 13 🔴
Completion_reasoning_tokens 90.41tok (-5.39tok) 13 🟢 14 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 25972.66tok (+1696.33tok) 15 🟢 14 🔴
Estimated_cost 0$ (+0$) 14 🟢 14 🔴
Duration 15.14s (-2.52s) 24 🟢 5 🔴
Llm_duration 11.63s (-0.98s) 19 🟢 10 🔴

alaister added a commit that referenced this pull request Jul 29, 2026
Follow-up to #48370, which merged the Compute and Disk settings page
into Infrastructure and made `/settings/compute-and-disk` a permanent
redirect.

**Changed:**

- Retargeted all 17 dashboard links from
`/dashboard/project/_/settings/compute-and-disk` to
`/dashboard/project/_/settings/infrastructure` (15 files across guides,
troubleshooting entries, and the `migration_warnings` partial)
- Updated link text that named the old page ("Compute and Disk settings"
→ "Infrastructure settings", plus one stale "Database Settings" label in
the compute-and-disk guide)

Links to the `/docs/guides/platform/compute-and-disk` docs guide are
untouched — that page still exists; only dashboard deep links changed.

> [!NOTE]
> Best merged after #48370 — until then the Infrastructure page doesn't
host the compute and disk config (the old URL keeps working either way
via the redirect).

## To test

- Spot-check a few changed pages on the preview (e.g.
`/guides/platform/database-size`,
`/guides/troubleshooting/high-cpu-usage`) and confirm the dashboard
links land on the Infrastructure settings page
- Confirm the compute-and-disk guide page itself still renders and its
docs-internal links are unchanged

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

- **Documentation**
- Updated migration and troubleshooting guidance to direct users to the
**Infrastructure** settings page, replacing outdated **Compute and
Disk** links.
- Refreshed platform/database/performance links for resizing, disk
throughput/IOPS, upgrade steps, and related troubleshooting to use the
updated **Infrastructure** routes and anchors.
- Adjusted “Using the CLI” to point to the current local development
getting-started page, and refined wording in the “Hit rate” section.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <[email protected]>
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