Skip to content

feat(web): wire account browser screen to live accounts api - #112

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

feat(web): wire account browser screen to live accounts api#112
tiana-code merged 1 commit into
mainfrom
feat/E-08-account-browser

Conversation

@tiana-code

Copy link
Copy Markdown
Owner

First Sandbox UI screen wired to the live ledger backend.

What

  • /accounts route rendering inside the existing Shell, sidebar Accounts active + navigable
  • Typed useAccounts(page, size) TanStack Query hook over GET /v1/accounts, replacing the mock-direct-read pattern
  • API client (apiFetch) with VITE_API_BASE_URL base + optional dev bearer token; Vite dev proxy /v1 -> localhost:8080
  • Accounts table rendering only the five real AccountResponse fields: id (mono), name, type pill, currency, status pill
  • Server-authoritative pagination (page/size/totalPages/totalElements), Prev/Next with bounds
  • loading / error+retry / empty states
  • Vitest + RTL: 6 tests covering all states, pagination, and nav active

Out of scope (no backing API)

Balance column, owner/avatar, created column, KPI strip, search, filters, page-size selector, real Keycloak login.

Contract fidelity

Fields verified against AccountResponse/PageResponse DTOs and AccountController. No invented fields (no balance/owner/created; prototype's SETTLEMENT type is not real and was dropped).

Closes #111

Adds the /accounts route backed by a typed useAccounts TanStack Query
hook over GET /v1/accounts, replacing the mock-direct-read pattern. The
table renders only the five real AccountResponse fields (id, name, type,
currency, status) with server-authoritative pagination and loading,
error and empty states. Sidebar nav items become router links.

Closes #111
@tiana-code
tiana-code merged commit 18dd359 into main Jun 14, 2026
7 checks passed
@tiana-code
tiana-code deleted the feat/E-08-account-browser branch June 14, 2026 10:42
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 Browser (Screen 1) on real GET /v1/accounts

1 participant