The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): query performance tabular nums (#38819)
kemal.earthd70600c0294a
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsxindex 001b8cbba4e..0fbbd5b0e0f 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx@@ -145,7 +145,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceconst fillWidth = Math.min(percentage, 100)return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums"><divclassName={`absolute inset-0 bg-foreground transition-all duration-200 z-0`}style={{@@ -174,7 +174,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceif (col.id === 'total_time') {return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">{isTime && typeof value === 'number' && !isNaN(value) && isFinite(value) ? (<pclassName={cn((value / 1000).toFixed(2) === '0.00' && 'text-foreground-lighter')}@@ -194,7 +194,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceif (col.id === 'calls') {return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (<p className={cn(value === 0 && 'text-foreground-lighter')}>{value.toLocaleString()}@@ -208,7 +208,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceif (col.id === 'max_time' || col.id === 'mean_time' || col.id === 'min_time') {return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (<p className={cn(value.toFixed(0) === '0' && 'text-foreground-lighter')}>{Math.round(value).toLocaleString()}ms@@ -222,7 +222,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceif (col.id === 'rows_read') {return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (<p className={cn(value === 0 && 'text-foreground-lighter')}>{value.toLocaleString()}@@ -241,7 +241,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformanceif (col.id === 'cache_hit_rate') {return (- <div className="w-full flex flex-col justify-center text-xs">+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">{typeof value === 'string' ? (<pclassName={cn(