From 8db7368ccfc220da975be81456c05d70707a7ba3 Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Tue, 1 Sep 2026 09:13:33 -0400 Subject: [PATCH] feat(studio): clarify quick query as temporary space (#49695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Feature ## What is the current behavior? Standalone queries in the Explorer "Quick Query" surface have editable titles (defaulting to "Untitled query") without clear indication that they are temporary and not saved, similar to the old SQL Editor snippet model. ## What is the new behavior? The Quick Query tab now clearly indicates that standalone queries are temporary. The title is no longer editable and displays "Temporary space for one-off queries" as static muted italic text. The default query name has been changed from "Untitled query" to "Quick query" for clarity. ## Additional context Resolves FE-4297. Notebook cells (variant === 'embedded') remain unchanged with editable titles. ## Summary by CodeRabbit * **UI Improvements** * Renamed new one-off queries from **“Quick query”** to **“Run SQL”** when no title is provided. * Updated viewport query editor toolbars to display the fixed **“Run SQL”** label. * Preserved editable titles for embedded query editors. --- .../components/interfaces/Explorer/ExplorerQueryTab.tsx | 2 +- .../components/interfaces/Explorer/QueryEditor/index.tsx | 8 +++++++- apps/studio/state/explorer-query.ts | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx index ca6e043997e..b33cf18958f 100644 --- a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx +++ b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx @@ -189,7 +189,7 @@ export const ExplorerQueryTab = () => { roleImpersonationState={roleImpersonationState} onTitleChange={(value) => { persistTab() - const name = value.trim() || 'Untitled query' + const name = value.trim() || 'Run SQL' explorerQueryState.updateDraft({ id, name }) tabs.updateTab(createTabId('query', { id }), { label: name }) }} diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx index 7c729cee4e3..761182822e7 100644 --- a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx +++ b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx @@ -395,7 +395,13 @@ export const QueryEditor = forwardRef(funct - {title} + {variant === 'viewport' ? ( + + Run SQL + + ) : ( + {title} + )} {onSourceChange && (