Repository navigation
chore(studio): rename SQL Editor sidebar items - #46241
Conversation
…ion Community → Reference Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThis 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 ChangesQuickstarts to Examples Rebrand
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
🎭 Playwright Test ResultsDetails
Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
| @@ -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 | |||
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
Was tempted to use “Snippets” but we reserve that to mean the actual files, so would be a bit confusing.
There was a problem hiding this comment.
btw jfyi the new tab state doesn't work for SQL Editor cause new tabs just open an editor 😅
There was a problem hiding this comment.
so tbh we could probably just remove all the SQL editor related stuff here - i'll hop on in a bit
There was a problem hiding this comment.
We could probably rename this file too
joshenlim
left a comment
There was a problem hiding this comment.
Verified changes on local + preview! Also verified redirect
Braintrust eval report
|
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:
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?
/sql/quickstarts→/sql/examples)/sql/templates), description updated to "Reusable SQL snippets for common tasks"Taxonomy:
A permanent redirect is added so
/sql/quickstartsgracefully forwards to/sql/examples. The existing/sql/templatesroute is unchanged.Additional context
CommunitySnippetsSection.tsx: header label + route keys updated; the underlyingcommunitylocalStorage key is intentionally unchanged to avoid resetting stored collapsed/expanded state for existing users.Summary by CodeRabbit
Documentation
New Features