diff --git a/src/platform/src/modules/api-client/ApiClientPage.tsx b/src/platform/src/modules/api-client/ApiClientPage.tsx index cf9233f9ce..934bde92de 100644 --- a/src/platform/src/modules/api-client/ApiClientPage.tsx +++ b/src/platform/src/modules/api-client/ApiClientPage.tsx @@ -15,7 +15,6 @@ import CreateClientDialog from './components/CreateClientDialog'; import EditClientDialog from './components/EditClientDialog'; import TokenDisplay from './components/TokenDisplay'; import type { Client } from '@/shared/types/api'; -import UsageStats from '../billing/components/UsageStats'; import { trackApiClientAction } from '@/shared/utils/enhancedAnalytics'; type TableClient = Client & { id: string }; @@ -324,8 +323,6 @@ const ApiClientPage: React.FC = () => { return (
- Review your current plan, renewal settings, and billing activity. + Review your current plan, switch tiers, and monitor API usage from one + place.
- Checkout opens in our secure billing window. Payment details are - handled by our billing provider and are never stored in this - application. -
-- Current Plan -
-- {currentTier} +
+ {summaryMessage}
- Plan To Activate -
-- {plan?.name || '--'} -
+ )} + ++ From +
++ {currentTier} +
++ {currentPlan + ? `${currentPlan.currency} ${currentPlan.price} / ${billingCycleLabel}` + : '--'} +
++ {isDowngrade + ? 'Scheduled Tier' + : isCheckout + ? 'Plan To Start' + : 'Tier To Activate'} +
++ {plan?.name || '--'} +
++ {plan + ? `${plan.currency} ${plan.price} / ${billingCycleLabel}` + : '--'} +
++ {nextPeriodMessage} +
+- Plan highlights +
+ Included with {plan.name}
Active Access Tier
-- {currentPlan - ? `${currentPlan.currency} ${currentPlan.price}/month` - : 'Subscription status from your account profile'} -
++ {currentPlan + ? `${currentPlan.currency} ${currentPlan.price} / month` + : currentTier === 'Free' + ? 'USD 0 / month' + : 'Subscription status from your account profile'} +
+- {statusNotice.eyebrow} -
-+
{statusNotice.title}
-{statusNotice.message}
++ {statusNotice.message} +
{summaryDateLabel}
-+
{summaryDateValue}
Last Renewal
-+
{subscription?.lastRenewalDate ? formatDate(subscription.lastRenewalDate, { year: 'numeric', - month: 'short', + month: 'long', day: 'numeric', }) : 'No renewals yet'} @@ -634,13 +977,14 @@ const SubscriptionSection: React.FC = () => {
- Included request limits are listed in the plan cards below for quick - comparison. -
++ Request limits are listed in the plan cards below. +
+- Choose the API access tier that matches your usage and traffic - profile. -
++ Switch tiers here when you already have paid access, or start a + new checkout session when you are moving from Free or recovering a + paused plan. +
+