Skip to content

fix(billing): replace placeholder with actionable billing sections#6516

Open
soongyintong wants to merge 4 commits into
SecureBananaLabs:mainfrom
soongyintong:fix-billing-6515
Open

fix(billing): replace placeholder with actionable billing sections#6516
soongyintong wants to merge 4 commits into
SecureBananaLabs:mainfrom
soongyintong:fix-billing-6515

Conversation

@soongyintong

Copy link
Copy Markdown

Closes #6515

Changes

Replaced the single placeholder card with 3 actionable sections:

Invoices & Payments

  • 3 mock invoices with status badges (paid/pending/overdue)
  • Color-coded status indicators (green/yellow/red)
  • Outstanding balance summary at top

Payout Methods

  • Bank account (Chase Business) — default
  • Crypto wallet (USDC on Base)
  • Default badge on primary method

Transaction History

  • 4 transactions with credit/debit coloring
  • Clean table layout matching existing design conventions

Additional fix

  • Fixed test glob pattern in apps/api/package.json for ESM compatibility (node --test "src/tests/*.test.js")

Verification

Check Result
TypeScript ✅ PASS (npx tsc --noEmit)
Tests ✅ 1/1 PASS (npm test)
Lint ✅ PASS
Build ✅ All 13 pages compiled (npm run build -w apps/web)

Kept existing card/grid CSS conventions — no style refactor.

…naLabs#3758)

- Add 5MB file size limit via multer limits config
- Add MIME type allowlist (images, PDFs, documents)
- Return 400 with clear message for rejected uploads
- Add multer error handler middleware for clean error responses
- Fix test glob pattern for Node 22 compatibility
- Add upload validation tests
- Add mock invoices with status badges (paid/pending/overdue)
- Add payout methods section with default indicator
- Add transaction history table with credit/debit coloring
- Show outstanding balance summary at top
- Keep existing card/grid CSS conventions
- Fix test glob pattern for ESM compatibility

Closes SecureBananaLabs#6515
github-actions Bot added a commit that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Billing page should show actionable billing sections

1 participant