feat(overview): drive the sandbox overview from live ledger data#342
Merged
Conversation
added 5 commits
June 29, 2026 00:44
Add a ledger read endpoint GET /v1/overview returning recent ledger activity and the real 24h hourly transaction count, seed demo transactions through a Liquibase demo changeset, and wire the web overview to live data. Drop the fabricated mock, the version/build/uptime line and the fake service-health chips; offline and empty states show placeholders instead of invented numbers.
…ed-container data
…ared-container suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the fabricated Overview mock with live ledger data.
GET /v1/overview(scopeledger:read) returning recent ledger activity (transactions + accounts, 1:1 row->event, no double counting) and the real 24h hourly transaction count. Thin controller ->OverviewService(@Transactional(readOnly = true)) -> hand-written mapper. Native projections are parameterized; sparkline buckets are UTC-anchored.demo/002-demo-transactions.sqlseeds 10 balanced USD transactions + entries + derived balances via ademo-context Liquibase changeset. Both entry legs land in one changeset so the deferred double-entry trigger passes at commit; timestamps areNOW()-relative so the 24h sparkline populates on a fresh sandbox.useLedgerOverviewfeeds the activity list and the transactions sparkline; user/tenant come from JWT claims (display only). The fabricated version/build/uptime line and fake service-health chips are dropped (a static SPA cannot honestly assert them). Offline and empty states show placeholders, never invented numbers.Verification
OverviewQueryIntegrationTest4/4,OverviewDemoSeedIT1/1tscclean, eslint clean, vitest 63/63Gates
critic GO-WITH-CHANGES (folded in), code-reviewer PASS on all hard rules, security-auditor PASS, evaluator 0.92 (threshold 0.80).
Deferred (LIMIT-20 paths, premature to optimize now): correlated subqueries in
findRecentActivity-> JOIN; account read via projection instead of full entity.