Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

hide db selector in reports pages that dont need it (#36953)

Jordi Enricdf80b55b3a4f
diff --git a/apps/studio/pages/project/[ref]/reports/api-overview.tsx b/apps/studio/pages/project/[ref]/reports/api-overview.tsx
index b00c783ad67..3061f85beb3 100644
--- a/apps/studio/pages/project/[ref]/reports/api-overview.tsx
+++ b/apps/studio/pages/project/[ref]/reports/api-overview.tsx
@@ -45,7 +45,7 @@ export const ApiReport: NextPageWithLayout = () => {
return (
<ReportPadding>
- <ReportHeader title="API Gateway" />
+ <ReportHeader title="API Gateway" showDatabaseSelector={false} />
<div className="w-full flex flex-col gap-1">
<ReportFilterBar
onRemoveFilters={removeFilters}
@@ -57,6 +57,7 @@ export const ApiReport: NextPageWithLayout = () => {
isLoading={isLoading}
filters={filters}
datepickerHelpers={createFilteredDatePickerHelpers(plan?.id || 'free')}
+ showDatabaseSelector={false}
/>
<div className="h-2 w-full">
<ShimmerLine active={isLoading} />
diff --git a/apps/studio/pages/project/[ref]/reports/auth.tsx b/apps/studio/pages/project/[ref]/reports/auth.tsx
index 74a0fea6a27..f3175791982 100644
--- a/apps/studio/pages/project/[ref]/reports/auth.tsx
+++ b/apps/studio/pages/project/[ref]/reports/auth.tsx
@@ -104,7 +104,7 @@ const AuthUsage = () => {
return (
<>
- <ReportHeader title="Auth" />
+ <ReportHeader title="Auth" showDatabaseSelector={false} />
<section className="relative pt-16 -mt-2">
<div className="absolute inset-0 z-40 pointer-events-none flex flex-col gap-4">
<div className="sticky top-0 py-4 mb-4 flex items-center space-x-3 pointer-events-auto dark:bg-background-200 bg-background">
diff --git a/apps/studio/pages/project/[ref]/reports/edge-functions.tsx b/apps/studio/pages/project/[ref]/reports/edge-functions.tsx
index d0060d55816..163c98c1179 100644
--- a/apps/studio/pages/project/[ref]/reports/edge-functions.tsx
+++ b/apps/studio/pages/project/[ref]/reports/edge-functions.tsx
@@ -114,7 +114,7 @@ const EdgeFunctionsUsage = () => {
return (
<>
- <ReportHeader title="Edge Functions" />
+ <ReportHeader title="Edge Functions" showDatabaseSelector={false} />
<div className="w-full flex flex-col gap-1">
<div className="h-2 w-full">
<ShimmerLine active={isRefreshing || isLoadingFunctions} />
diff --git a/apps/studio/pages/project/[ref]/reports/realtime.tsx b/apps/studio/pages/project/[ref]/reports/realtime.tsx
index 56f9b3aef0f..00ea93b4ded 100644
--- a/apps/studio/pages/project/[ref]/reports/realtime.tsx
+++ b/apps/studio/pages/project/[ref]/reports/realtime.tsx
@@ -170,7 +170,7 @@ const RealtimeUsage = () => {
return (
<>
- <ReportHeader showDatabaseSelector title="Realtime" />
+ <ReportHeader showDatabaseSelector={false} title="Realtime" />
<section className="relative pt-16 -mt-2">
<div className="absolute inset-0 z-40 pointer-events-none flex flex-col gap-4">
<div className="sticky top-0 bg-200 py-4 mb-4 flex items-center space-x-3 pointer-events-auto">
diff --git a/apps/studio/pages/project/[ref]/reports/storage.tsx b/apps/studio/pages/project/[ref]/reports/storage.tsx
index 57d0036ad9a..79610a1c570 100644
--- a/apps/studio/pages/project/[ref]/reports/storage.tsx
+++ b/apps/studio/pages/project/[ref]/reports/storage.tsx
@@ -51,7 +51,7 @@ export const StorageReport: NextPageWithLayout = () => {
return (
<ReportPadding>
- <ReportHeader title="Storage" />
+ <ReportHeader title="Storage" showDatabaseSelector={false} />
<section className="relative pt-20 -mt-2 flex flex-col gap-3">
<div className="absolute inset-0 z-40 pointer-events-none flex flex-col gap-4">
<div className="sticky top-0 bg dark:bg-200 pt-4 mb-4 flex flex-col items-center pointer-events-auto gap-4">
@@ -67,6 +67,7 @@ export const StorageReport: NextPageWithLayout = () => {
selectedProduct="storage"
datepickerHelpers={createFilteredDatePickerHelpers(plan?.id || 'free')}
className="w-full"
+ showDatabaseSelector={false}
/>
<div className="h-px w-full">
<ShimmerLine active={report.isLoading} />