feat: implement upgrade to premium flow

This commit adds the ability for tenants to upgrade their package directly from the mobile billing page. It includes:
- New API function createTenantPaddleCheckout in api.ts
- Upgrade handler and UI in BillingPage.tsx
- Updated navigation in EventAnalyticsPage.tsx to link to the packages section of the billing page
This commit is contained in:
Codex Agent
2026-01-06 16:35:10 +01:00
parent ee3e9737c4
commit c4fa0fc06e
3 changed files with 60 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ export default function MobileEventAnalyticsPage() {
</YStack>
<CTAButton
label={t('analytics.upgradeAction', 'Upgrade to Premium')}
onPress={() => navigate(adminPath('/mobile/billing'))}
onPress={() => navigate(adminPath('/mobile/billing#packages'))}
/>
</MobileCard>
</MobileShell>