Skip to content

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

Add option to show 7 days worth of report metrics

Long Hoang727aec3c47e2
diff --git a/studio/lib/constants/metrics.tsx b/studio/lib/constants/metrics.tsx
index 9b814068879..00db1602328 100644
--- a/studio/lib/constants/metrics.tsx
+++ b/studio/lib/constants/metrics.tsx
@@ -416,16 +416,17 @@ export const TIME_PERIODS_INFRA = [
{
key: '1h',
label: 'Last hour',
- interval: '1m',
},
{
key: '3h',
label: 'Last 3 hours',
- interval: '5m',
},
{
key: '1d',
label: 'Last 24 hours',
- interval: '30m',
+ },
+ {
+ key: '7d',
+ label: 'Last 7 days',
},
]
diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsx
index 97ffe3d018b..bf9ffa27430 100644
--- a/studio/pages/project/[ref]/reports/database.tsx
+++ b/studio/pages/project/[ref]/reports/database.tsx
@@ -151,7 +151,7 @@ const DatabaseUsage: FC<any> = () => {
<div className="mb-4 flex items-center space-x-3">
<DateRangePicker
loading={false}
- value={'3h'}
+ value={'7d'}
options={TIME_PERIODS_INFRA}
currentBillingPeriodStart={undefined}
onChange={setDateRange}