PAR-287
0
Add /firm baltop — leaderboard of firms by collective account balance
Pending ReleaseUnassignedBusiness
Add a /firm baltop [page] command that ranks active firms by the collective balance of every treasury account the firm owns, mirroring Treasury's /baltop. Output like 1. Acme $1,234.00.
Design
- Aggregate in
FirmTransactionServiceviaTreasuryApi.getBalancesByIds(...)— business must not read treasury tables directly. - New
FirmAccountsMapper.listActiveAccountLinks()returning every(firm_id, account_id)withremoved_at IS NULL(one query, no N+1). - New
FirmBalanceEntrymodel (firmId, displayName, balance), returned asPage<FirmBalanceEntry>. FirmCommandsroutesbaltop/baltop <page>, permbusiness.baltop(default true), paginated 10/page.- Messages: header/entry/footer/empty. Permission node in plugin.yml.
- Unit tests for the new service method (95% coverage gate).
Resources
- PR#2 Last major release ParadauxIO/hibernia-economy
- commit9521a09 Add /firm baltop leaderboard of firms by collective account balance (PAR-287)ParadauxIO/hibernia-economy
Comments
No comments yet.
Activity
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- tesks changed status to Status → Pending Release
- ParadauxIO linked a commit — Commit 9521a09 — Add /firm baltop leaderboard of firms by collective account balance (PAR-287)
- tesks created the issue