Skip to content

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

Remove unnecessary hasNoData property

Joshen Lim1fa381238940
diff --git a/studio/components/interfaces/Organization/Usage/Activity.tsx b/studio/components/interfaces/Organization/Usage/Activity.tsx
index c859ccfbec4..5099e4c71ff 100644
--- a/studio/components/interfaces/Organization/Usage/Activity.tsx
+++ b/studio/components/interfaces/Organization/Usage/Activity.tsx
@@ -72,43 +72,37 @@ const Activity = ({
})
const chartMeta: {
- [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean; hasNoData: boolean }
+ [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
} = {
[PricingMetric.MONTHLY_ACTIVE_USERS]: {
data: mauData?.data ?? [],
margin: 18,
isLoading: isLoadingMauData,
- hasNoData: mauData?.hasNoData ?? false,
},
[PricingMetric.MONTHLY_ACTIVE_SSO_USERS]: {
data: mauSSOData?.data ?? [],
margin: 20,
isLoading: isLoadingMauSSOData,
- hasNoData: mauSSOData?.hasNoData ?? false,
},
[PricingMetric.STORAGE_IMAGES_TRANSFORMED]: {
data: assetTransformationsData?.data ?? [],
margin: 0,
isLoading: isLoadingAssetTransformationsData,
- hasNoData: assetTransformationsData?.hasNoData ?? false,
},
[PricingMetric.FUNCTION_INVOCATIONS]: {
data: funcInvocationsData?.data ?? [],
margin: 26,
isLoading: isLoadingFuncInvocationsData,
- hasNoData: funcInvocationsData?.hasNoData ?? false,
},
[PricingMetric.REALTIME_MESSAGE_COUNT]: {
data: realtimeMessagesData?.data ?? [],
margin: 38,
isLoading: isLoadingRealtimeMessagesData,
- hasNoData: realtimeMessagesData?.hasNoData ?? false,
},
[PricingMetric.REALTIME_PEAK_CONNECTIONS]: {
data: realtimeConnectionsData?.data ?? [],
margin: 0,
isLoading: isLoadingRealtimeConnectionsData,
- hasNoData: realtimeConnectionsData?.hasNoData ?? false,
},
}
diff --git a/studio/components/interfaces/Organization/Usage/Bandwidth.tsx b/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
index e2670e95a68..221f8d42a20 100644
--- a/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
+++ b/studio/components/interfaces/Organization/Usage/Bandwidth.tsx
@@ -28,13 +28,12 @@ const Bandwidth = ({
})
const chartMeta: {
- [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean; hasNoData: boolean }
+ [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
} = {
[PricingMetric.EGRESS]: {
data: egressData?.data ?? [],
margin: 16,
isLoading: isLoadingDbEgressData,
- hasNoData: egressData?.hasNoData ?? false,
},
}
diff --git a/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx b/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
index 728a8c34079..c25b61b7c0b 100644
--- a/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
+++ b/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx
@@ -43,25 +43,22 @@ const SizeAndCounts = ({
})
const chartMeta: {
- [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean; hasNoData: boolean }
+ [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
} = {
[PricingMetric.DATABASE_SIZE]: {
isLoading: isLoadingDbSizeData,
margin: 14,
data: dbSizeData?.data ?? [],
- hasNoData: dbSizeData?.hasNoData ?? false,
},
[PricingMetric.STORAGE_SIZE]: {
isLoading: isLoadingStorageSizeData,
margin: 14,
data: storageSizeData?.data ?? [],
- hasNoData: storageSizeData?.hasNoData ?? false,
},
[PricingMetric.FUNCTION_COUNT]: {
isLoading: isLoadingFunctionCountData,
margin: 0,
data: functionCountData?.data ?? [],
- hasNoData: functionCountData?.hasNoData ?? false,
},
}
diff --git a/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
index 6542fd17292..f6bb64ce8b4 100644
--- a/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
+++ b/studio/components/interfaces/Organization/Usage/UsageSection/UsageSection.tsx
@@ -7,7 +7,7 @@ import { CategoryMetaKey, USAGE_CATEGORIES } from '../Usage.constants'
import AttributeUsage from './AttributeUsage'
export interface ChartMeta {
- [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean; hasNoData: boolean }
+ [key: string]: { data: DataPoint[]; margin: number; isLoading: boolean }
}
export interface UsageSectionProps {