Skip to content

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

Update missing descriptions

Joshen Limcd897631d17c
diff --git a/studio/components/interfaces/BillingV2/Usage/Activity.tsx b/studio/components/interfaces/BillingV2/Usage/Activity.tsx
index 77422776165..e334b561cae 100644
--- a/studio/components/interfaces/BillingV2/Usage/Activity.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Activity.tsx
@@ -124,7 +124,7 @@ const Activity = ({ projectRef }: ActivityProps) => {
return (
<>
- <SectionHeader title="Activity" description="Some description here" />
+ <SectionHeader title={categoryMeta.name} description={categoryMeta.description} />
{categoryMeta.attributes.map((attribute) => {
const usageMeta = usage?.[attribute.key as keyof ProjectUsageResponse] as UsageMetric
diff --git a/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx b/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx
index 3d7cf122458..185a6a25f83 100644
--- a/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx
@@ -62,7 +62,7 @@ const Bandwidth = ({ projectRef }: BandwidthProps) => {
return (
<>
- <SectionHeader title="Bandwidth" description="Some description here" />
+ <SectionHeader title={categoryMeta.name} description={categoryMeta.description} />
{categoryMeta.attributes.map((attribute) => {
const usageMeta = usage?.[attribute.key as keyof ProjectUsageResponse] as UsageMetric
diff --git a/studio/components/interfaces/BillingV2/Usage/BarChart.tsx b/studio/components/interfaces/BillingV2/Usage/BarChart.tsx
index e4c03395438..d3d86c2b816 100644
--- a/studio/components/interfaces/BillingV2/Usage/BarChart.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/BarChart.tsx
@@ -77,7 +77,9 @@ const BarChart = ({
<p className="text-xs text-scale-1000">
{attribute === 'disk_io_budget' ? `Remaining IO budget:` : `${name}:`}
</p>
- {dataPeriod.isAfter(dayjs()) ? (
+ {dayjs(dataPeriod.format('DD MMM YYYY')).isAfter(
+ dayjs(dayjs().format('DD MMM YYYY'))
+ ) ? (
<p className="text-scale-1000 text-lg">No data yet</p>
) : (
<p className="text-xl">
diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
index a51e5953a93..fbd2b232409 100644
--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx
@@ -63,7 +63,7 @@ const Infrastructure = ({ projectRef }: InfrastructureProps) => {
return (
<>
- <SectionHeader title="Infrastructure" description="Some description here" />
+ <SectionHeader title={categoryMeta.name} description={categoryMeta.description} />
{categoryMeta.attributes.map((attribute) => {
const chartData = chartMeta[attribute.key]?.data ?? []
diff --git a/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx b/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx
index f87a06a8edf..ad93eedb81d 100644
--- a/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx
@@ -77,7 +77,7 @@ const SizeAndCounts = ({ projectRef }: SizeAndCountsProps) => {
return (
<>
- <SectionHeader title="Size & Counts" description="Some description here" />
+ <SectionHeader title={categoryMeta.name} description={categoryMeta.description} />
{categoryMeta.attributes.map((attribute) => {
const usageMeta = usage?.[attribute.key as keyof ProjectUsageResponse] as UsageMetric
diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts b/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
index 91d8c40ec69..c86567bdf92 100644
--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts
@@ -15,21 +15,24 @@ export interface CategoryAttribute {
description: string
chartDescription: string
}
+
export const USAGE_CATEGORIES: {
key: 'infra' | 'bandwidth' | 'sizeCount' | 'activity'
name: string
+ description: string
attributes: CategoryAttribute[]
}[] = [
{
key: 'infra',
name: 'Infrastructure',
+ description: 'Usage statistics related to your Postgres server',
attributes: [
{
key: 'cpu_usage',
attribute: 'cpu_usage',
name: 'CPU',
unit: 'percentage',
- description: 'Some description here',
+ description: 'CPU usage of your server',
chartDescription: 'The data shown here is refreshed over a period of 24 hours.',
},
{
@@ -37,7 +40,7 @@ export const USAGE_CATEGORIES: {
attribute: 'ram_usage',
name: 'Memory',
unit: 'percentage',
- description: 'Some description here',
+ description: 'Memory usage of your server',
chartDescription: 'The data shown here is refreshed over a period of 24 hours.',
},
{
@@ -56,6 +59,7 @@ export const USAGE_CATEGORIES: {
{
key: 'bandwidth',
name: 'Bandwidth',
+ description: 'Amount of data transmitted over network connections',
attributes: [
{
key: 'db_egress',
@@ -81,6 +85,7 @@ export const USAGE_CATEGORIES: {
{
key: 'sizeCount',
name: 'Size & Counts',
+ description: 'Amount of resources your project is consuming',
attributes: [
{
key: 'db_size',
@@ -115,6 +120,7 @@ export const USAGE_CATEGORIES: {
{
key: 'activity',
name: 'Activity',
+ description: 'Usage statistics that reflect the activity of your project',
attributes: [
{
key: 'monthly_active_users',