Build the Finance Operations UI

A React and TypeScript interface built around the finance workflow: five screens, feature-based components, typed API contracts, one status vocabulary, honest states and accessibility.

  • Advanced
  • About 22 minutes
  • Includes an exercise and a knowledge check

The concept Build the screen around the work

The backend may be perfect, and finance still needs to work through cases. The UI must answer: what was received, what is reconciled, what is awaiting settlement, what needs investigation, who owns each exception, what was done, and what evidence supports the result. It reflects the business workflow, not the database tables.

On the left, a photo of a finance analyst at a desktop computer; the Apex Exception Workbench was drawn onto the monitor. On the right, the same screen enlarged, with fictional data: 41 awaiting settlement, 3 open exceptions, 1 pending approval; EXC-10021 for PAY-77860, amount differs, user-102, under investigation; EXC-10022 for PAY-77840, ambiguous match, user-207, pending approval; EXC-10023 for PAY-77870, missing settlement, unassigned, open; and a button to open EXC-10023.
The workbench, drawn onto a real finance desk. The photo is real; the screen was drawn for this lesson.

Five screens The main screens

ScreenShowsLets authorized users
Operations dashboardPayments received and reconciled, awaiting settlement, open exceptions, pending approvals, processing delay, recent failuresDrill into any number
Transaction searchIdentity, amount and currency, provider status, processing and reconciliation status, related settlementSearch by provider transaction ID, loan account, date range, status and provider
Transaction detailNormalized data, settlement, matching result and evidence, processing timeline, related exceptionsRequest the protected source payload, if permitted
Exception workbenchCase ID, category, severity, age, owner, statusAssign, start, add notes, submit, approve or reject
Audit historyActor, action, outcome, time, entity, state change, correlation IDFilter and export, if permitted

textComponents live with their feature

src/features/
├── dashboard/        OperationsDashboard.tsx  MetricCard.tsx
├── payments/         PaymentSearch.tsx  PaymentTable.tsx  PaymentDetail.tsx
├── reconciliation/   ReconciliationStatusBadge.tsx  MatchingEvidence.tsx
├── exceptions/       ExceptionWorkbench.tsx  ExceptionDetail.tsx  InvestigationTimeline.tsx
└── audit/            AuditHistory.tsx

Typed contracts TypeScript types that match the API

typescriptsrc/types/api.ts

export type ProcessingStatus = 'RECEIVED' | 'NORMALIZED' | 'REJECTED';
export type ReconciliationStatus = 'AWAITING_SETTLEMENT' | 'MATCHED' | 'UNMATCHED' | 'AMBIGUOUS';
export type ExceptionStatus =
  | 'OPEN'
  | 'ASSIGNED'
  | 'UNDER_INVESTIGATION'
  | 'PENDING_APPROVAL'
  | 'RESOLVED'
  | 'CANCELLED';

export interface PaymentTransaction {
  id: string;
  provider: 'PROVIDER_A' | 'PROVIDER_B';
  providerTransactionId: string;
  loanAccountId: string;
  amountMinorUnits: number; // integer cents; safe up to Number.MAX_SAFE_INTEGER
  currency: string;
  processingStatus: ProcessingStatus;
  reconciliationStatus: ReconciliationStatus;
  receivedAt: string; // ISO 8601 instant in UTC
}

export function formatMoney(minor: number, currency: string, fractionDigits: number): string {
  return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(minor / 10 ** fractionDigits);
}

Three status vocabularies, kept apart. The original plan mixed UNDER_INVESTIGATION into the reconciliation status, but investigation is the exception case’s state. Keeping processing, reconciliation and case status separate, with the same words in Java enums, API JSON and these types, lets a user tell waiting from failed and matched from resolved. Generate the types from the OpenAPI contract where you can, so they cannot drift.

Where do the domain words from Module 03 fit? Captured, settled, posted and reconciled describe what happens to the money, and each is recorded by the system that owns it. Only some of them become a status on the platform:

Word you will hearWhat it isWhere it is recordedStatus on the platform
CapturedThe provider took the moneyThe provider's notificationPayment processing: RECEIVED, then NORMALIZED (or REJECTED)
SettledFunds reached Apex's bankA settlement record from the bank file, with its own batch and lineNot a payment status. Matching the settlement record moves reconciliation to MATCHED
PostedThe loan balance was updatedLoan servicing, which owns itNot a platform status: read from servicing when needed
ReconciledAll records agreeThe reconciliation resultReconciliation: MATCHED
Under investigationSomeone is working on a mismatchThe exception caseException case: UNDER_INVESTIGATION, never a reconciliation status

Be honest One vocabulary, four honest states

Status chips, each with a word and a color. Payment processing: RECEIVED, NORMALIZED, REJECTED. Reconciliation: AWAITING_SETTLEMENT, MATCHED, UNMATCHED, AMBIGUOUS. Exception case: OPEN, ASSIGNED, UNDER_INVESTIGATION, PENDING_APPROVAL, RESOLVED, CANCELLED. Four screen states: loading with a spinner; empty, no payments match these filters, clear filters; error, payments could not be loaded, retry; no permission, you do not have access to approve resolutions. A failed request must never show as an empty table.
An empty search is not a failure, and a failure must never look like an empty search.

Also plan for invalid filters, expired sessions, long-running processing and stale data (show when the data was last refreshed).

For everyone Accessibility

  • Keyboard navigation through tables, filters and actions, with clear focus states.
  • Accessible labels on every control, and real table headings.
  • Readable contrast, and status shown with a word as well as a color.
  • Screen-reader-friendly statuses, for example Payment PAY-77840, ambiguous match, pending approval.
  • Confirmation for sensitive actions such as approve and reject.

Practice Build the finance UI

Practical exercise

Exercise 09: a functional finance operations UI

Connect the screens to the backend APIs.

  1. The operations dashboard, transaction search and transaction detail.
  2. The exception workbench, investigation timeline and audit history.
  3. Loading, empty, error and permission states.
  4. Role-aware action visibility, remembering that the backend still enforces every rule.
Show sample UI tests
  • shows "No payments match" for an empty result, not an error.
  • shows the retry banner when the API returns 500, not an empty table.
  • hides Approve for customer support, and an API test proves the backend refuses it anyway.
  • announces status changes to screen readers after an action.

2 questions

Check your understanding

1. The payments API fails. What should the table show?
2. Where does UNDER_INVESTIGATION belong?
Answer every question to submit.

What you can do now

  • Design finance screens around the workflow.
  • Organize React components by feature.
  • Share typed contracts and one status vocabulary with the API.
  • Handle every screen state honestly and accessibly.