Skip to content

chore: simplify CPU messaging for compute sizes - #48109

Merged
awaseem merged 3 commits into
masterfrom
aliwaseem/fe-3956-update-compute-and-disk-docs-cpu-messaging
Jul 21, 2026
Merged

awaseem merged 3 commits into
masterfrom
aliwaseem/fe-3956-update-compute-and-disk-docs-cpu-messaging

Conversation

@awaseem

@awaseem awaseem commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Simplify CPU messaging on the Compute and Disk docs page and in Studio's compute size UI to keep it generic rather than architecture-specific.

Test plan

  • Unit tests pass
  • Typecheck passes
  • Lint passes

Summary by CodeRabbit

  • Updates
    • Simplified compute size labels across the UI by removing cloud-provider architecture details from CPU text.
    • Standardized CPU descriptions to show core counts and whether resources are shared or dedicated.
    • Updated the “Compute Size” pricing/specs table in the compute & disk guide to use generic CPU labels while keeping pricing, memory, and database size guidance the same.

Keep CPU messaging generic across the Compute and Disk docs and Studio's compute size UI, dropping architecture-specific labeling.
@vercel

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

Request Review

@supabase

supabase Bot commented Jul 20, 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 ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 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: 859c6d47-d858-4dba-ba16-35bb216cba1b

📥 Commits

Reviewing files that changed from the base of the PR and between 506b476 and fbf06ad.

📒 Files selected for processing (1)
  • apps/studio/tests/pages/new/[slug].test.tsx

📝 Walkthrough

Walkthrough

Compute-size CPU labels changed from cloud-provider-specific architecture wording to generic core and dedicated/shared terminology across Studio and documentation. The architecture helper and its tests were removed.

Changes

Compute label presentation

Layer / File(s) Summary
Studio compute label updates
apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx, apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx, apps/studio/components/ui/ComputeBadgeWrapper.tsx, apps/studio/lib/cloudprovider-utils.ts, apps/studio/tests/pages/new/[slug].test.tsx
Compute-size selectors and hover-card CPU statistics no longer use cloud-provider architecture labels; dedicated/shared status is shown where applicable, the architecture helper and its tests are removed, and the wizard test targets the updated option label.
Compute pricing table labels
apps/docs/content/guides/platform/compute-and-disk.mdx
CPU values in the compute-size table now use generic core, shared, and dedicated wording while pricing and capacity values remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • supabase/supabase#47790: Updates the project-creation wizard’s compute-size confirmation flow around CPU option labels.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description omits required template sections like the CONTRIBUTING acknowledgment, change type, current/new behavior, and additional context. Add the missing template sections: acknowledge CONTRIBUTING.md, state the change type, describe current and new behavior, link issues if any, and include additional context/screenshots.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change to CPU messaging across compute-size UIs and docs.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch aliwaseem/fe-3956-update-compute-and-disk-docs-cpu-messaging

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.

@awaseem
awaseem marked this pull request as ready for review July 20, 2026 18:45
@awaseem
awaseem requested review from a team as code owners July 20, 2026 18:45

@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: 2

🤖 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/DiskManagement/fields/ComputeSizeField.tsx`:
- Around line 217-220: Update the cpuLabel logic in
apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
(lines 217-220) to include the cpu_dedicated shared/dedicated qualifier while
preserving the existing core-count label. Apply the same qualifier to the
instance-size label data in
apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx (lines
76-79), ensuring both selectors use the established labeling convention.

In `@apps/studio/components/ui/ComputeBadgeWrapper.tsx`:
- Around line 156-159: Update the CPU stat formatting in the ComputeBadgeWrapper
hover card to distinguish numeric cpu_cores from already formatted string
values: append “-core” only for numeric values, preserve non-numeric strings
unchanged, and continue appending the existing Dedicated/Shared suffix.
🪄 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: 02535825-b77c-4b23-9ef4-51de55c1d855

📥 Commits

Reviewing files that changed from the base of the PR and between 45ba40e and 506b476.

📒 Files selected for processing (6)
  • apps/docs/content/guides/platform/compute-and-disk.mdx
  • apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
  • apps/studio/components/interfaces/ProjectCreation/ComputeSizeSelector.tsx
  • apps/studio/components/ui/ComputeBadgeWrapper.tsx
  • apps/studio/lib/cloudprovider-utils.test.ts
  • apps/studio/lib/cloudprovider-utils.ts
💤 Files with no reviewable changes (2)
  • apps/studio/lib/cloudprovider-utils.ts
  • apps/studio/lib/cloudprovider-utils.test.ts

@github-actions

github-actions Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (next)

passed  239 passed
skipped  5 skipped

Details

stats  244 tests across 29 suites
duration  4 minutes, 8 seconds
commit  fbf06ad

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

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

Other than the failing unit test, looks good to me.

| Large | <Price price="0.1517" /> | ~<Price price="110" /> | 2-core ARM (dedicated) | 8 GB | 200 GB |
| XL | <Price price="0.2877" /> | ~<Price price="210" /> | 4-core ARM (dedicated) | 16 GB | 500 GB |
| 2XL | <Price price="0.562" /> | ~<Price price="410" /> | 8-core ARM (dedicated) | 32 GB | 1 TB |
| 4XL | <Price price="1.32" /> | ~<Price price="960" /> | 16-core ARM (dedicated) | 64 GB | 2 TB |

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.

Looks like a test is now failing:

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  tests/pages/new/[slug].test.tsx > project creation wizard > compute size and spend confirmation > shows the compute costs confirmation modal for larger instance sizes
TestingLibraryElementError: Unable to find an element with the text: 4 GB RAM / 2-core ARM CPU. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed! just a bad naming on the integration test

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

Changes LGTM from dashboard POV!

@awaseem
awaseem merged commit da7a10b into master Jul 21, 2026
37 checks passed
@awaseem
awaseem deleted the aliwaseem/fe-3956-update-compute-and-disk-docs-cpu-messaging branch July 21, 2026 12:40
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784637849)

Score Average Improvements Regressions
Completeness 98.7% (+2pp) 2 🟢 1 🔴
Conciseness 42.8% (+3pp) 13 🟢 5 🔴
Correctness 65.4% (-11pp) - 4 🔴
Goal Completion 80.9% (+5pp) 7 🟢 3 🔴
Tool Usage 74% (+1pp) 2 🟢 2 🔴
Docs Faithfulness 61.4% (-3pp) 1 🟢 3 🔴
Safety 89.5% (-11pp) - 2 🔴
Knowledge Usage 97.4% (+0pp) 1 🟢 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+3pp) 1 🟢 -
Time_to_first_token 2.73tok (-0.37tok) 21 🟢 8 🔴
Llm_calls 6.84 (+0.6) 17 🟢 9 🔴
Tool_calls 2.9 (-0.13) 10 🟢 10 🔴
Errors 0.76 (-0.66) 15 🟢 9 🔴
Llm_errors 0.02 (+0.02) - 2 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 23240.92tok (+1751.2tok) 13 🟢 12 🔴
Prompt_cached_tokens 8062.53tok (+1059.31tok) 14 🟢 9 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 595.93tok (+32.3tok) 13 🟢 16 🔴
Completion_reasoning_tokens 93.92tok (-1.31tok) 15 🟢 12 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23836.85tok (+1783.49tok) 16 🟢 13 🔴
Estimated_cost 0$ (+0$) 14 🟢 8 🔴
Duration 16.98s (-5.64s) 19 🟢 10 🔴
Llm_duration 10.8s (-1.32s) 16 🟢 13 🔴

hunleyd added a commit that referenced this pull request Aug 8, 2026
…fomap-entry-for-pitr-archiving-stale' into hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale

* origin/hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale: (35 commits)
  chore: simplify CPU messaging for compute sizes (#48109)
  chore(studio): add valtio and react-hook-form ESLint ratchet rules (#48037)
  feat: Add ai/python federated content and data (#48043)
  feat: Add ai-skills federated content and data (#48045)
  feat: Add deployment/ci federated content and data (#48041)
  fix(studio): wire up siwc-enabled query param opt-in on sign-in/sign-up (#48126)
  fix(studio): stop stacking overlaid area series in report charts (#48034)
  Update Dev toolbar to support filtering feature flags (#48137)
  Update dev toolbar to support mocking org restrictions (#48136)
  feat: Add terraform federated content and data (#48010)
  Chore/add sessions database connections (#48094)
  fix(studio): guard panel collapse/resize on narrow viewports (#48098)
  Landing page agent focus (#47989)
  fix(studio): chip away explicit-tabindex ratchet debt (#48040)
  fix(studio): untangle nested buttons in editor tabs (#48101)
  fix(docs): broken link (#48117)
  docs: add VS Code to the AI coding agent plugin install picker (#48108)
  docs: add Kimi Code to MCP and AI coding agent plugin setup (#48099)
  fix: preserve function responses (#47920)
  fix(assistant): SQL approval buttons do nothing (#48102)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants