feat(admin): per-user finance panel — balances, benefits, risk, ledger #230
Reference in New Issue
Block a user
Delete Branch "feature/e7-financial-panel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First slice of the admin / reports / catalog work.
Per-user finance panel
The
/_gmuser card gains a Finance panel showing an account's full payments picture:Backed by a new
payments.AccountStatement(accountID)read — straight from the materializedbalances/benefits +
account_risk+ the ledger, uncached (an admin, rare view). Read-only;no writes, no wire/edge changes (server-rendered console templates only).
Plan
Folds the agreed decisions into
PLAN.md(E7 rewritten: archived = the existingproduct.active;grant raw + by-product refusing chips/tournament; delete-if-clean else archive; full-order refund;
the PR stack) and moves the tournament-entry storage design to the tournament stage.
Tests
TestAccountStatement(payments): a funded pack → chip segment + fund row; an admin grant →benefit + admin_grant row; ledger newest-first; clean account = no risk.
TestConsoleFinancePanel(console render): the card shows the balances, benefits and ledger.