The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix success message in query block (#33250)
Saxon Fletcher8cc3139b2242
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsxindex 3d247e95fec..dcfaa4cbff0 100644--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx@@ -127,19 +127,29 @@ const Results = ({ rows }: { rows: readonly any[] }) => {return (<>- <DataGrid- columns={columns}- rows={rows}- className="h-full flex-grow border-t-0"- rowClass={() => '[&>.rdg-cell]:items-center'}- onSelectedCellChange={setCellPosition}- />- <CellDetailPanel- column={cellPosition?.column.name ?? ''}- value={cellPosition?.row?.[cellPosition.column.name]}- visible={expandCell}- onClose={() => setExpandCell(false)}- />+ {rows.length === 0 ? (+ <div className="bg-table-header-light [[data-theme*=dark]_&]:bg-table-header-dark">+ <p className="m-0 border-0 px-4 py-3 font-mono text-sm text-foreground-light">+ Success. No rows returned+ </p>+ </div>+ ) : (+ <>+ <DataGrid+ columns={columns}+ rows={rows}+ className="h-full flex-grow border-t-0"+ rowClass={() => '[&>.rdg-cell]:items-center'}+ onSelectedCellChange={setCellPosition}+ />+ <CellDetailPanel+ column={cellPosition?.column.name ?? ''}+ value={cellPosition?.row?.[cellPosition.column.name]}+ visible={expandCell}+ onClose={() => setExpandCell(false)}+ />+ </>+ )}</>)}diff --git a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx b/apps/studio/components/ui/QueryBlock/QueryBlock.tsxindex d949c2f3bc4..8a69fb168a2 100644--- a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx+++ b/apps/studio/components/ui/QueryBlock/QueryBlock.tsx@@ -337,7 +337,9 @@ export const QueryBlock = ({{showSql && (<div- className="shrink-0 w-full max-h-96 overflow-y-auto"+ className={cn('shrink-0 w-full max-h-96 overflow-y-auto', {+ 'border-b': queryResult !== undefined,+ })}style={{ height: !!queryHeight ? `${queryHeight}px` : undefined }}><CodeBlock