The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: fix invoice status label tooltip for invoices in status 'issued'
Thomasdf5017f84dcc
diff --git a/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx b/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsxindex 853d3966ca2..9a4fc6f1367 100644--- a/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx+++ b/apps/studio/components/interfaces/Billing/InvoiceStatusBadge.tsx@@ -5,6 +5,7 @@ import { InvoiceStatus } from './Invoices.types'interface InvoiceStatusBadgeProps {status: InvoiceStatus+ paymentAttempted: boolean}const invoiceStatusMapping: Record<@@ -40,7 +41,7 @@ const invoiceStatusMapping: Record<},}-const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => {+const InvoiceStatusBadge = ({ status, paymentAttempted }: InvoiceStatusBadgeProps) => {const statusMapping = invoiceStatusMapping[status]return (@@ -63,13 +64,22 @@ const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => {'w-[300px] space-y-2 border border-background',].join(' ')}>- {[InvoiceStatus.OPEN, InvoiceStatus.UNCOLLECTIBLE].includes(status) && (- <p className="text-xs text-foreground">- We were not able to collect the money. Make sure you have a valid payment method and- enough funds. Outstanding invoices may cause restrictions. You can manually pay the- using the "Pay Now" button.- </p>- )}+ {[InvoiceStatus.OPEN, InvoiceStatus.ISSUED, InvoiceStatus.UNCOLLECTIBLE].includes(+ status+ ) &&+ (paymentAttempted ? (+ <p className="text-xs text-foreground">+ We were not able to collect the payment. Make sure you have a valid payment method+ and enough funds. Outstanding invoices may cause restrictions. You can manually+ pay the invoice using the "Pay Now" button.+ </p>+ ) : (+ <p className="text-xs text-foreground">+ The invoice will soon be charged for. In case you pay via invoice instead of card,+ please make sure to make the payment in a timely manner. You can also pay the+ invoice using your card now using the "Pay Now" button.+ </p>+ ))}{status === InvoiceStatus.DRAFT && (<p className="text-xs text-foreground">diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsxindex f830d4744bc..3f5e7d0b5d7 100644--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx@@ -106,7 +106,10 @@ const InvoicesSettings = () => {<p>{x.number}</p></Table.td><Table.td>- <InvoiceStatusBadge status={x.status as InvoiceStatus} />+ <InvoiceStatusBadge+ status={x.status as InvoiceStatus}+ paymentAttempted={x.payment_attempted}+ /></Table.td><Table.td className="align-right"><div className="flex items-center justify-end space-x-2">diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 86fbbc7863d..e1b4e0c2b73 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -3618,6 +3618,7 @@ export interface components {status: stringsubscription: string | nullsubtotal: number+ payment_attempted: boolean}JoinResponse: {billing_email: string