Repository navigation
feat(web): payment detail trace, money state and a factual overview (3/4) - #11
Merged
Merged
Conversation
Slice 3 of the dashboard revamp (T1, apps/web only; no API or business logic change). - Payment detail: full ID with copy and audit link, five amounts, lifecycle trace with readable audit metadata, "where the money is" (settled and paid out shown as not reported, never inferred), attempts with failure codes, refunds (already returned by the API, previously hidden), journals, and related disputes and reconciliation issues fetched in parallel. - Open workflow states end the trace with an explicit next step; provider outcomes in flight read "outcome unknown ... not a failure". - Malformed or unknown payment IDs render the 404 page instead of an error. - JournalTable is shared by the ledger and the detail page. - Overview: one balance strip per currency (the old strip showed only the first), latest payments, and an attention list counted from real records with links to filtered registers. Removes the hardcoded "Operational" status and the synthetic latest-payment trace. - Fix: screen-reader text inside scrolling tables widened the page on mobile; .table-scroll now contains it. Identifiers in eyebrows keep case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
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 and why
Slice 3: payment detail and a factual overview. The detail page hid refunds the API already returned, showed raw JSON and errored on malformed IDs. The overview showed only the first currency's balance, a hardcoded "Operational" status and a made-up trace. No API, schema or business-logic change.
REQUIRES_AUTHORIZATIONandCAPTURE_PENDINGread "outcome unknown … not a failure".JournalTableis shared by the ledger and the detail page..table-scrollnow contains it. Identifiers in eyebrows keep their case.Screenshots:
.tmp/web-ui-revamp/screens/slice3(local, not attached).Review guide
apps/web/app/payments/[id]/page.tsx: thenextStepwording, and the audit keysamount,gross,feeandnetformatted as minor units.apps/web/app/page.tsx: which states count as needing attention.apps/web/components/journal-table.tsx: BigInt totals, now used by two pages.globals.cssadditions;console.tsx(Chip, per-currencyBalanceStrip).Task size
T1 (
apps/webonly).Checks
pnpm --filter @fintech-lab/web lintpnpm --filter @fintech-lab/web buildpnpm --filter @fintech-lab/web typecheckpnpm --filter @fintech-lab/web testgit diff --checkconfirm:trueintent (relay not running, no provider call) shows "Authorization outcome unknown"pnpm lint/test/build/typecheck(repo-wide) at this headUnverified boundaries
The local data has no refunds, disputes or reconciliation issues, so those tables were only checked empty. Related records are filtered in the browser from the full disputes list and the latest 200 issues.
Review
T1 self-review (
ponytail-review). Findings and disposition:verbatimspan.Docs and temporary files
docs/ui-signature.md: new "Detail and overview" section. Temporary files as listed in #9.🤖 Generated with Claude Code