feat: update subscription display and organization settings UI to include plan usage details and loading states

This commit is contained in:
Usman Baig
2026-02-05 11:29:38 +01:00
parent ffe6f464e6
commit 7929e15b65
4 changed files with 74 additions and 11 deletions

View File

@@ -7,6 +7,10 @@ export interface SubscriptionDetails {
billing_interval: string
pageview_limit: number
has_payment_method: boolean
/** Number of sites for the org (billing usage). Present when backend supports usage API. */
sites_count?: number
/** Pageviews in current billing period (when pageview_limit > 0). Present when backend supports usage API. */
pageview_usage?: number
}
async function billingFetch<T>(endpoint: string, options: RequestInit = {}): Promise<T> {