Skip to content

chore(studio): rename SQL Editor sidebar items - #46241

Merged
joshenlim merged 2 commits into
masterfrom
chore/sql-editor-rename-quickstarts-to-examples
May 22, 2026
Merged

joshenlim merged 2 commits into
masterfrom
chore/sql-editor-rename-quickstarts-to-examples

Conversation

@dnywh

@dnywh dnywh commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Chore. Rename / UX copy update in Studio's SQL Editor.

What is the current behavior?

The SQL Editor sidebar has a Community section containing two pages:

  • Templates: reusable SQL snippets for common tasks
  • Quickstarts: end-to-end examples and starter projects

The section label "Community" is misleading because these are first-party presets maintained by the Supabase team, not user-contributed content. "Quickstarts" also doesn't clearly convey "end-to-end example".

What is the new behavior?

  • Community → Reference (sidebar section header)
  • Quickstarts → Examples (route: /sql/quickstarts → /sql/examples)
  • Templates keeps its name and route (/sql/templates), description updated to "Reusable SQL snippets for common tasks"

Taxonomy:

  • Templates = reusable SQL patterns you adapt
  • Examples = end-to-end walkthroughs you run as-is

A permanent redirect is added so /sql/quickstarts gracefully forwards to /sql/examples. The existing /sql/templates route is unchanged.

Before After
Quickstarts  SQL Editor  Pickles  Pantry  Supabase-644881A5-6396-43AA-9AC4-61FFFFF18831 Examples  SQL Editor  Pickles  Pantry  Supabase-573775FA-E38F-4F8D-92E3-114237410C36

Additional context

  • CommunitySnippetsSection.tsx: header label + route keys updated; the underlying community localStorage key is intentionally unchanged to avoid resetting stored collapsed/expanded state for existing users.
  • ESLint rule baselines and a docs troubleshooting link updated to reflect the new filenames/routes.

Summary by CodeRabbit

  • Documentation

    • Updated troubleshooting guide to reference the correct SQL examples location.
  • New Features

    • Renamed "Quickstarts" to "Examples" throughout the SQL editor for improved clarity.
    • Updated SQL template and examples section descriptions and labels to better reflect their purpose.
    • Reorganized SQL editor navigation to streamline access to templates and examples.

Review Change Stack

…ion Community → Reference

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@dnywh
dnywh requested a review from a team as a code owner May 22, 2026 00:41
@vercel

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

Request Review

@supabase

supabase Bot commented May 22, 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 May 22, 2026
@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 578e0f56-f4fa-4c31-b416-c379c5ebb81a

📥 Commits

Reviewing files that changed from the base of the PR and between 6e88138 and 2bb1823.

📒 Files selected for processing (9)
  • apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
  • apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorLoadingSnippets.tsx
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx
  • apps/studio/components/layouts/TableEditorLayout/EditorMenuListSkeleton.tsx
  • apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
  • apps/studio/components/layouts/Tabs/NewTab.tsx
✅ Files skipped from review due to trivial changes (1)
  • apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx

📝 Walkthrough

Walkthrough

This PR rebrand the SQL editor's "Quickstarts" feature to "Examples" across UI labels, component names, routing, and navigation. Multiple components also shift from default to named exports. The NewTab component is simplified to remove SQL template handling and focus only on table creation.

Changes

Quickstarts to Examples Rebrand

Layer / File(s) Summary
Core component rename: SQLQuickstarts → SQLExamples
apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLExamples.tsx
Component function renamed from SQLQuickstarts to SQLExamples; UI section label changed from "Quickstarts" to "Examples" with updated description emphasizing end-to-end examples and starter projects; default export updated.
Page component update: sql/examples.tsx
apps/studio/pages/project/[ref]/sql/examples.tsx
Page imports and renders SQLExamples instead of SQLQuickstarts; page component renamed from SqlQuickstarts to SqlExamples; tab metadata (sqlId/name) changed from quickstarts to examples; getLayout attachment preserved with renamed component.
Navigation and sections refactoring
apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx, apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx, apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorLoadingSnippets.tsx
CommunitySnippetsSection renamed to ReferenceSnippetsSection with navigation options changed to ['templates', 'examples'] and menu labels updated; SQLEditorNav updated to render ReferenceSnippetsSection, import modal/loading components as named exports, and use typed SqlSnippet casts instead of any in snippet aggregation; SQLEditorLoadingSnippets converted to named export.
Export standardization across modal and utility components
apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx, apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx, apps/studio/components/layouts/TableEditorLayout/EditorMenuListSkeleton.tsx, apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx, apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
DownloadSnippetModal, RenameQueryModal, and EditorMenuListSkeleton are converted from default to named exports; consumer imports in SearchList and TableEditorMenu updated to use named imports and path aliases.
NewTab component simplification
apps/studio/components/layouts/Tabs/NewTab.tsx
Router, toast, permission, telemetry, and SQL template utilities are removed from imports; actions computed value now only uses tableEditorActions when editor is in table mode; entire inline SQL templates/quickstarts tab UI section is removed from render output, leaving only impersonation card, table action cards, and RecentItems.
Templates label, routing redirect, and configuration updates
apps/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx, apps/studio/next.config.ts, apps/studio/.github/eslint-rule-baselines.json, apps/docs/content/troubleshooting/dashboard-errors-when-managing-users-N1ls4A.mdx
SQL templates section relabeled from "Scripts" to "Templates" with description refocused on reusable SQL snippets; routing redirect added for /sql/quickstarts → /sql/examples; ESLint baselines updated to reflect component rename from SQLQuickstarts.tsx to SQLExamples.tsx and page path from sql/quickstarts.tsx to sql/examples.tsx; documentation link updated to point to /sql/examples.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested reviewers

  • kemaldotearth
  • ivasilov

Poem

🐰 Quickstarts become examples bright,
Components renamed with care and might,
Named exports spread throughout the land,
NewTab simplified, now tables stand,
The editor's flow, refined and planned!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
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 (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: renaming SQL Editor sidebar items from 'Quickstarts' to 'Examples' and section from 'Community' to 'Reference'.
Description check ✅ Passed The description includes all required sections: change type (chore), current behavior, new behavior, and additional context with visual comparison and implementation notes.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 chore/sql-editor-rename-quickstarts-to-examples

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 and usage tips.

@github-actions

github-actions Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results

passed  208 passed
skipped  5 skipped

Details

stats  213 tests across 23 suites
duration  3 minutes, 31 seconds
commit  2bb1823

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

@@ -65,11 +65,8 @@ const SQLQuickstarts = () => {
<div className="block h-full space-y-8 overflow-y-auto p-6 px-10 bg-dash-sidebar dark:bg-surface-100">
<div className="mb-8">
<div className="mb-6">
<h2 className="mb-1">Quickstarts</h2>
<p className="text-foreground-light text-sm">
Click on any script to fill the query box, modify the script, then click

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.

This is trying to explain something at the next step (which is explained at the next step anyway).

Better to use this as an opportunity to clarify what the difference between Examples and Templates are.

<div className="block h-full space-y-8 overflow-y-auto p-6 px-10 bg-dash-sidebar dark:bg-surface-100">
<div>
<div className="mb-6">
<h2 className="mb-1">Scripts</h2>

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.

Inconsistent with title in sidebar. Also, these are technically “snippets”, not ”scripts”.

Click on any script to fill the query box, modify the script, then click
<span className="text-code">Run</span>.
</p>
<h2 className="mb-1">Templates</h2>

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.

Was tempted to use “Snippets” but we reserve that to mean the actual files, so would be a bit confusing.

@dnywh dnywh changed the title chore(studio): rename SQL Editor Quickstarts → Examples, sidebar section Community → Reference chore(studio): rename SQL Editor sidebar items May 22, 2026

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.

btw jfyi the new tab state doesn't work for SQL Editor cause new tabs just open an editor 😅

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.

so tbh we could probably just remove all the SQL editor related stuff here - i'll hop on in a bit

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.

We could probably rename this file too

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

Verified changes on local + preview! Also verified redirect

@joshenlim
joshenlim merged commit c721e8f into master May 22, 2026
25 checks passed
@joshenlim
joshenlim deleted the chore/sql-editor-rename-quickstarts-to-examples branch May 22, 2026 05:56
@github-actions

github-actions Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1779429465)

Score Average Improvements Regressions
Completeness 100% (+5pp) 4 🟢 -
Conciseness 43.6% (+0pp) 5 🟢 5 🔴
Correctness 76.4% (+8pp) 4 🟢 1 🔴
Docs Faithfulness 70.8% (+2pp) 5 🟢 4 🔴
Goal Completion 81.4% (+4pp) 9 🟢 3 🔴
Safety 85.7% (-5pp) - 1 🔴
Knowledge Usage 93.3% (+0pp) 1 🟢 1 🔴
Tool Usage 75% (+4pp) 2 🟢 -
URL Validity 100% - -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 95% (-5pp) - 1 🔴
Time_to_first_token 0tok (0tok) 14 🟢 9 🔴
Llm_calls 6.59 (-0.33) 6 🟢 15 🔴
Tool_calls 2.78 (-0.18) 7 🟢 12 🔴
Errors 0.03 (+0.03) - 1 🔴
Llm_errors 0.01 (+0.01) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 22750.78tok (-214.99tok) 14 🟢 9 🔴
Prompt_cached_tokens 6511.59tok (+256tok) 13 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 560.12tok (+8.62tok) 13 🟢 13 🔴
Completion_reasoning_tokens 84.12tok (-7.88tok) 13 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 23310.9tok (-206.37tok) 14 🟢 12 🔴
Estimated_cost 0$ (0$) 11 🟢 10 🔴
Duration 11.29s (-1.74s) 19 🟢 7 🔴
Llm_duration 8.03s (-0.61s) 17 🟢 9 🔴

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.

2 participants