The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Format numbers in statistics charts #21742 (#21750)
Michael Owenb7ea0994e451
diff --git a/apps/studio/components/interfaces/Home/ProjectUsage.tsx b/apps/studio/components/interfaces/Home/ProjectUsage.tsxindex cdd7def1fe3..bbf1f9870c7 100644--- a/apps/studio/components/interfaces/Home/ProjectUsage.tsx+++ b/apps/studio/components/interfaces/Home/ProjectUsage.tsx@@ -71,6 +71,7 @@ const ProjectUsage = () => {endDateLocal.toISOString())const datetimeFormat = selectedInterval.format || 'MMM D, ha'+ const numberFormat = new Intl.NumberFormat()const handleBarClick = (value: UsageApiCounts,@@ -129,7 +130,7 @@ const ProjectUsage = () => {yAxisKey="total_rest_requests"onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'rest')}customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts, 'total_rest_requests')}+ highlightedValue={numberFormat.format(sumBy(charts, 'total_rest_requests'))}/></Loading></Panel.Content>@@ -154,7 +155,7 @@ const ProjectUsage = () => {yAxisKey="total_auth_requests"onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'auth')}customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts || [], 'total_auth_requests')}+ highlightedValue={numberFormat.format(sumBy(charts || [], 'total_auth_requests'))}/></Loading></Panel.Content>@@ -181,7 +182,7 @@ const ProjectUsage = () => {yAxisKey="total_storage_requests"onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'storage')}customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts, 'total_storage_requests')}+ highlightedValue={numberFormat.format(sumBy(charts, 'total_storage_requests'))}/></Loading></Panel.Content>@@ -206,7 +207,7 @@ const ProjectUsage = () => {yAxisKey="total_realtime_requests"onBarClick={(v: unknown) => handleBarClick(v as UsageApiCounts, 'realtime')}customDateFormat={datetimeFormat}- highlightedValue={sumBy(charts, 'total_realtime_requests')}+ highlightedValue={numberFormat.format(sumBy(charts, 'total_realtime_requests'))}/></Loading></Panel.Content>