Skip to content

feat(web): add account detail screen with current balance - #116

Merged
tiana-code merged 1 commit into
mainfrom
feat/E-08-account-detail
Jun 14, 2026
Merged

feat(web): add account detail screen with current balance#116
tiana-code merged 1 commit into
mainfrom
feat/E-08-account-detail

Conversation

@tiana-code

Copy link
Copy Markdown
Owner

Second Sandbox UI screen on the live backend (Screen 2).

What

  • /accounts/:id route, reached from the Account Browser (id cell is a link)
  • header from GET /v1/accounts/{id}: name, id (mono), type pill, status pill, currency
  • current balance from GET /v1/accounts/{id}/balance: amount, currency, last posted at
  • amount is the lossless decimal string (feat(ledger): serialize api money amounts as decimal strings #114) formatted with pure string grouping - no float math on money
  • states: loading, 404 -> not found, error + retry; the balance card has its own loading/error
  • extracts a shared StateMessage component (deduped from the account browser)

Out of scope (no backing API)

entries table, audit trail, holds/available, 30d delta, time-travel, lifecycle actions, linked entities.

Tests

money.test.ts (grouping, high-scale fraction preserved, trailing zeros, negative, instant formatting) and AccountDetail.test.tsx (header + lossless balance, 404, error+retry, independent balance error, no-postings). 22 web tests pass.

Closes #115

Adds the /accounts/:id route reached from the account browser. Shows the
account header (name, id, type, status, currency) via GET /v1/accounts/{id}
and the current balance via GET /v1/accounts/{id}/balance. The amount is a
decimal string rendered losslessly with pure string grouping, no float math.
States: loading, 404 not found, error with retry, and an independent balance
loading/error. Extracts the shared StateMessage component.

Closes #115
@tiana-code
tiana-code merged commit 562d6ba into main Jun 14, 2026
7 checks passed
@tiana-code
tiana-code deleted the feat/E-08-account-detail branch June 14, 2026 11:22
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.

Sandbox UI: Account Detail + Balance (Screen 2)

1 participant