Summary
Chronological list of financial transactions with credit/debit color coding, date formatting, and subscription line items. Handles empty state, mixed transaction types (credits, debits, subscriptions), and compact row layout. The standard transaction history view for any billing page.
Proposed API
<TransactionList
transactions={[
{ id: "1", type: "credit", description: "Credit reload", amountCents: 2000, createdAt: 1710547200000 },
{ id: "2", type: "debit", description: "API usage", amountCents: 150, createdAt: 1710460800000 },
]}
emptyMessage="No transactions yet"
>
{/* Optional pinned item (e.g., active subscription) */}
<TransactionList.Pinned>
<TransactionList.SubscriptionRow
plan="AI OS Pro"
status="active"
amountCents={1200}
renewsAt={1713139200000}
interval="month"
/>
</TransactionList.Pinned>
</TransactionList>
Requirements
Layout
┌──────────────────────────────────────────────────┐
│ ┌── green border ────────────────────────────┐ │
│ │ AI OS Pro Subscription [Active] €12/mo │ │
│ │ Renews Apr 15, 2025 · VAT incl. │ │
│ └────────────────────────────────────────────┘ │
│ │
│ ┌────────────────────────────────────────────┐ │
│ │ Credit reload +€20.00 (green) │ │
│ │ Mar 10, 2025 │ │
│ └────────────────────────────────────────────┘ │
│ │
│ ┌────────────────────────────────────────────┐ │
│ │ API usage - March -€1.50 (red) │ │
│ │ Mar 8, 2025 │ │
│ └────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────┘
Use Cases
- SaaS billing page transaction history
- API platform credit usage log
- Wallet/payment history in fintech apps
- Admin panel user transaction audit
Composes
Origin
Extracted from TransactionHistory and SubscriptionTransactionRow in apps/web-ai-os/app/account/billing/billing-client.tsx in vllnt/vllnt monorepo.
Summary
Chronological list of financial transactions with credit/debit color coding, date formatting, and subscription line items. Handles empty state, mixed transaction types (credits, debits, subscriptions), and compact row layout. The standard transaction history view for any billing page.
Proposed API
Requirements
credit(green +),debit(red -),initial(green +),refund(blue +)aria-labelwith full contextLayout
Use Cases
Composes
Badge,CardOrigin
Extracted from
TransactionHistoryandSubscriptionTransactionRowinapps/web-ai-os/app/account/billing/billing-client.tsxin vllnt/vllnt monorepo.