Skip to content

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

chore(usage): add Realtime docs, improve timeframes, upsell

Kevin Grünebergb69d18a2ccfa
diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
index e84529e4ef2..4d1098a3f21 100644
--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx
@@ -324,8 +324,8 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
chartDescription: 'The data refreshes every 24 hours.',
links: [
{
- name: 'Realtime Quotas',
- url: 'https://supabase.com/docs/guides/realtime/quotas',
+ name: 'Realtime Rate Limits',
+ url: 'https://supabase.com/docs/guides/realtime/rate-limits',
},
],
},
@@ -339,12 +339,6 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [
description:
'Total number of successful connections. Connections attempts are not counted towards usage.\nBilling is based on the maximum amount of concurrent peak connections throughout your billing period.',
chartDescription: 'The data refreshes every 24 hours.',
- links: [
- {
- name: 'Realtime Quotas',
- url: 'https://supabase.com/docs/guides/realtime/quotas',
- },
- ],
},
],
},
diff --git a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx
index 52a9a798e08..7ccc83cf579 100644
--- a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx
+++ b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx
@@ -148,7 +148,7 @@ const UsageSection = ({
barClass={clsx(
usageRatio >= 1
? usageBasedBilling
- ? 'bg-scale-1100'
+ ? 'bg-amber-900'
: 'bg-red-900'
: usageBasedBilling === false &&
usageRatio >= USAGE_APPROACHING_THRESHOLD
@@ -204,7 +204,7 @@ const UsageSection = ({
</div>
</div>
- {attribute.additionalInfo?.(projectRef, subscription, usage)}
+ {attribute.additionalInfo?.(subscription, usage)}
<div className="space-y-1">
<p>