The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: styling/copy improvements for usage page
Kevin Grünebergd41fb1d4beda
diff --git a/studio/components/interfaces/Billing/Billing.constants.tsx b/studio/components/interfaces/Billing/Billing.constants.tsxindex 6d22f8dc1a7..7661fa41f61 100644--- a/studio/components/interfaces/Billing/Billing.constants.tsx+++ b/studio/components/interfaces/Billing/Billing.constants.tsx@@ -164,7 +164,7 @@ export const USAGE_BASED_PRODUCTS = [costPerUnit: 0.000002,tooltip: (<span>- Every single serverless function invocation independent of response status is counted.+ Every serverless function invocation independent of response status is counted.Billing is based on the sum of all invocations throughout your billing period.</span>),diff --git a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsxindex 5d5f97b9457..1ae114d3079 100644--- a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx@@ -198,6 +198,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {? 'bg-amber-900': 'bg-scale-1100'}+ bgClass="bg-gray-300 dark:bg-gray-600"labelBottom={usageLabel}labelBottomClass="!text-scale-1000"labelTop={hasLimit ? percentageLabel : undefined}diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsxindex e61b6193a97..6955be892c6 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx@@ -102,6 +102,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {labelBottom={`Current billing cycle (${billingCycleStart.format('MMM DD')} - ${billingCycleEnd.format('MMM DD')})`}+ bgClass="bg-gray-300 dark:bg-gray-600"labelBottomClass="!text-scale-1000 pb-1"labelTop={`${daysToCycleEnd} Days left`}/>diff --git a/studio/components/interfaces/BillingV2/Usage/Activity.tsx b/studio/components/interfaces/BillingV2/Usage/Activity.tsxindex 987f30d3fff..5437bdfec3e 100644--- a/studio/components/interfaces/BillingV2/Usage/Activity.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Activity.tsx@@ -219,6 +219,7 @@ const Activity = ({ projectRef }: ActivityProps) => {? 'bg-amber-900': 'bg-scale-1100')}+ bgClass="bg-gray-300 dark:bg-gray-600"value={usageMeta?.usage ?? 0}max={usageMeta?.limit || 1}/>@@ -244,7 +245,7 @@ const Activity = ({ projectRef }: ActivityProps) => {</div>{usageMeta.limit > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-scale-1000">Overage this month</p>+ <p className="text-xs text-scale-1000">Overage in period</p><p className="text-xs">{((usageMeta?.limit ?? 0) === -1 || usageExcess < 0? 0diff --git a/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx b/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsxindex 4e1c17070e7..7470c72697e 100644--- a/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Bandwidth.tsx@@ -140,6 +140,7 @@ const Bandwidth = ({ projectRef }: BandwidthProps) => {? 'bg-amber-900': 'bg-scale-1100')}+ bgClass="bg-gray-300 dark:bg-gray-600"value={usageMeta?.usage ?? 0}max={usageMeta?.limit || 1}/>@@ -161,7 +162,7 @@ const Bandwidth = ({ projectRef }: BandwidthProps) => {</div>{usageMeta?.limit > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-scale-1000">Overage this month</p>+ <p className="text-xs text-scale-1000">Overage in period</p><p className="text-xs">{usageExcess < 0 ? formatBytes(0) : formatBytes(usageExcess)}</p>diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsxindex 70477e64f4b..058775e7e3e 100644--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx@@ -150,12 +150,26 @@ const Infrastructure = ({ projectRef }: InfrastructureProps) => {</Alert>) : null}<div className="space-y-1">- <p>What is Disk IO Bandwidth?</p>+ <p>Disk IO Bandwidth</p>+<p className="text-sm text-scale-1000">- Smaller compute instances can burst up to the maximum disk IO bandwidth for 30- minutes in a day. Beyond that, the performance reverts to the baseline disk IO- bandwidth.+ The disk performance of your workload is determined by the Disk IO bandwidth.</p>++ {currentComputeInstanceSpecs.maxBandwidth ===+ currentComputeInstanceSpecs.baseBandwidth ? (+ <p className="text-sm text-scale-1000">+ Your current compute can has a baseline and maximum disk throughput of+ {currentComputeInstanceSpecs.maxBandwidth.toLocaleString()} Mbps.+ </p>+ ) : (+ <p className="text-sm text-scale-1000">+ Your current compute can burst up to{' '}+ {currentComputeInstanceSpecs.maxBandwidth.toLocaleString()} Mbps for 30+ minutes a day and reverts to the baseline performance of{' '}+ {currentComputeInstanceSpecs.baseBandwidth.toLocaleString()} Mbps.+ </p>+ )}</div><div><p className="text-sm mb-2">Overview</p>@@ -185,7 +199,7 @@ const Infrastructure = ({ projectRef }: InfrastructureProps) => {<div className="space-y-1"><div className="flex flex-row justify-between">{attribute.key === 'disk_io_consumption' ? (- <p>IO consumed per day</p>+ <p>IO consumed per {interval === '1d' ? 'day' : 'hour'}</p>) : (<p>Max{' '}diff --git a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsxindex 752aae4e2dc..92a1cd43d0e 100644--- a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx@@ -37,7 +37,7 @@ const SectionContent = ({</div>{links && links.length && (<div className="space-y-2">- <p className="text-sm text-scale-1100 mb-2">More information</p>+ <p className="text-sm text-scale-1200 dark:text-scale-1100 mb-2">More information</p>{links.map((link) => (<div key={link.url}><Link href={link.url}>diff --git a/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx b/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsxindex d2a0abda6c9..54b14e1bd94 100644--- a/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SizeAndCounts.tsx@@ -156,6 +156,7 @@ const SizeAndCounts = ({ projectRef }: SizeAndCountsProps) => {? 'bg-amber-900': 'bg-scale-1100')}+ bgClass="bg-gray-300 dark:bg-gray-600"value={usageMeta?.usage ?? 0}max={usageMeta?.limit || 1}/>@@ -183,7 +184,7 @@ const SizeAndCounts = ({ projectRef }: SizeAndCountsProps) => {</div>{usageMeta?.limit > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-scale-1000">Overage this month</p>+ <p className="text-xs text-scale-1000">Overage in period</p><p className="text-xs">{usageExcess < 0? attribute.unit === 'bytes'diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsindex c8b99e2b1d4..05751140509 100644--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.ts@@ -76,7 +76,7 @@ export const USAGE_CATEGORIES: {},],description:- 'SSD Disks are attached to your servers. The disk performance of your workload is determined by the Disk IO bandwidth of this connection.',+ 'Smaller compute instances (below 4XL) can burst up to their largest throughput and IOPS for 30 minutes in a day. Beyond that, the performance reverts to the baseline. Your disk budget gets replenished throughout the day.',chartDescription: '',},],@@ -84,7 +84,7 @@ export const USAGE_CATEGORIES: {{key: 'bandwidth',name: 'Bandwidth',- description: 'Amount of data transmitted over network connections',+ description: 'Amount of data transmitted over all network connections',attributes: [{anchor: 'dbEgress',@@ -94,7 +94,7 @@ export const USAGE_CATEGORIES: {unit: 'bytes',description:'Contains any outgoing traffic (egress) from your database.\nBilling is based on the total sum of egress in GB throughout your billing period.',- chartDescription: 'The data shown here refreshes every 24 hours.',+ chartDescription: 'The data refreshes every 24 hours.',},{anchor: 'storageEgress',@@ -103,8 +103,8 @@ export const USAGE_CATEGORIES: {name: 'Storage egress',unit: 'bytes',description:- 'All requests to download/view your storage items go through our CDN. We sum up all outgoing traffic (egress) for storage related requests through our CDN. We do not differentiate between cache and no cache hits.\nBilling is based on the total amount of egress in GB throughout your billing period.',- chartDescription: 'The data shown here refreshes every 24 hours.',+ 'All requests to view and download your storage items go through our CDN. We sum up all outgoing traffic (egress) for storage related requests through our CDN. We do not differentiate between cache and no cache hits.\nBilling is based on the total amount of egress in GB throughout your billing period.',+ chartDescription: 'The data refreshes every 24 hours.',},],},@@ -128,7 +128,7 @@ export const USAGE_CATEGORIES: {url: 'https://supabase.com/docs/guides/platform/database-size',},],- chartDescription: 'The data shown here refreshes every 24 hours.',+ chartDescription: 'The data refreshes every 24 hours.',},{anchor: 'storageSize',@@ -138,8 +138,8 @@ export const USAGE_CATEGORIES: {chartPrefix: 'Max ',unit: 'bytes',description:- 'Sum of all objects in your storage buckets.\nBilling is based on the average size in GB throughout your billing period',- chartDescription: 'The data shown here refreshes every 24 hours.',+ 'Sum of all objects in your storage buckets.\nBilling is based on the average size in GB throughout your billing period.',+ chartDescription: 'The data refreshes every 24 hours.',},{anchor: 'funcCount',@@ -149,8 +149,8 @@ export const USAGE_CATEGORIES: {chartPrefix: 'Max ',unit: 'absolute',description:- 'Number of serverless functions in your project.\nBilling is based on the maximum amount of functions at any point in time throughout your billing period',- chartDescription: 'The data shown here refreshes every 24 hours.',+ 'Number of serverless functions in your project.\nBilling is based on the maximum amount of functions at any point in time throughout your billing period.',+ chartDescription: 'The data refreshes every 24 hours.',},],},@@ -168,7 +168,7 @@ export const USAGE_CATEGORIES: {description:'Users who log in or refresh their token count towards MAU.\nBilling is based on the sum of distinct users requesting your API throughout the billing period. Resets every billing cycle.',chartDescription:- 'The data shown here is refreshed over a period of 24 hours and resets at the beginning of every billing period.\nThe data points are relative to the beginning of your billing period.',+ 'The data is refreshed over a period of 24 hours and resets at the beginning of every billing period.\nThe data points are relative to the beginning of your billing period.',},{anchor: 'mauSso',@@ -179,7 +179,7 @@ export const USAGE_CATEGORIES: {description:'SSO users who log in or refresh their token count towards SSO MAU.\nBilling is based on the sum of distinct Single Sign-On users requesting your API throughout the billing period. Resets every billing cycle.',chartDescription:- 'The data shown here is refreshed over a period of 24 hours and resets at the beginning of every billing period.\nThe data points are relative to the beginning of your billing period.',+ 'The data refreshes over a period of 24 hours and resets at the beginning of every billing period.\nThe data points are relative to the beginning of your billing period.',},{anchor: 'storageImageTransformations',@@ -188,9 +188,9 @@ export const USAGE_CATEGORIES: {name: 'Storage image transformations',unit: 'absolute',description:- 'We distinctly count all images that were transformed in the billing period, ignoring any transformations. If you transform one image with different transformations, it only counts as one.\nBilling is based on the unique count of (origin) images that used transformations throughout the billing period. Resets every billing cycle.',+ 'We count all images that were transformed in the billing period, ignoring any transformations.\nUsage example: You transform one image with four different size transformations and another image with just a single transformations. It counts as two, as only two images were transformed.\nBilling is based on the count of (origin) images that used transformations throughout the billing period. Resets every billing cycle.',chartDescription:- 'The data shown here refreshes every 24 hours.\nThe data points are relative to the beginning of your billing period.',+ 'The data refreshes every 24 hours.\nThe data points are relative to the beginning of your billing period.',},{anchor: 'functionInvocations',@@ -199,8 +199,8 @@ export const USAGE_CATEGORIES: {name: 'Edge function invocations',unit: 'absolute',description:- 'Every single serverless function invocation independent of response status is counted.\nBilling is based on the sum of all invocations throughout your billing period.',- chartDescription: 'The data shown here refreshes every 24 hours.',+ 'Every serverless function invocation independent of response status is counted.\nBilling is based on the sum of all invocations throughout your billing period.',+ chartDescription: 'The data refreshes every 24 hours.',},{anchor: 'realtimeMessageCount',@@ -209,8 +209,8 @@ export const USAGE_CATEGORIES: {name: 'Realtime message count',unit: 'absolute',description:- "Count of messages going through Realtime. If you do a database change and 5 clients listen to that change via Realtime, that's 5 messages. If you broadcast a message and 4 clients listen to that, that's 5 messages (1 message sent, 4 received).\nBilling is based on the total amount of messages throughout your billing period.",- chartDescription: 'The data shown here refreshes every 24 hours.',+ "Count of messages going through Realtime.\nUsage example: If you do a database change and 5 clients listen to that change via Realtime, that's 5 messages. If you broadcast a message and 4 clients listen to that, that's 5 messages (1 message sent, 4 received).\nBilling is based on the total amount of messages throughout your billing period.",+ chartDescription: 'The data refreshes every 24 hours.',},{anchor: 'realtimePeakConnection',@@ -221,7 +221,7 @@ export const USAGE_CATEGORIES: {unit: 'absolute',description:'Total number of successful connections (not connection attempts).\nBilling is based on the maximum amount of concurrent peak connections throughout your billing period.',- chartDescription: 'The data shown here refreshes every 24 hours.',+ chartDescription: 'The data refreshes every 24 hours.',},],},