Skip to content

Commit 7068603

Browse files
AchoArnoldCopilot
andcommitted
feat(web): port billing page with personalized billing cycles from main
- Add formatBillingPeriodDateOrdinal filter for ordinal date display - Update BillingUsage type to match API (start_timestamp/end_timestamp) - Add subscription_renews_at/subscription_ends_at to User type - Rewrite billing page with full feature set: - Current plan management (update, cancel, upgrade) - Personalized billing period overview with start/end dates - Usage history table with start/end date columns - Subscription payments table with invoice generation - Multiple upgrade plan options for free users Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d1eea79 commit 7068603

5 files changed

Lines changed: 628 additions & 128 deletions

File tree

web/app/composables/useFilters.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
formatMoney,
66
formatDecimal,
77
formatBillingPeriod,
8+
formatBillingPeriodDateOrdinal,
89
humanizeTime,
910
} from "../utils/filters";
1011
import { capitalize } from "../utils/capitalize";
@@ -17,6 +18,7 @@ export function useFilters() {
1718
formatMoney,
1819
formatDecimal,
1920
formatBillingPeriod,
21+
formatBillingPeriodDateOrdinal,
2022
humanizeTime,
2123
capitalize,
2224
};

0 commit comments

Comments
 (0)