Design a Financial Records Dashboard and History Table
Design the frontend for an internal app where employees check their own financial records: an at-a-glance dashboard and a long, searchable history table that stays fast, honest about partial failures, and fully accessible.
Problem statement
Design the frontend of an internal web app where employees view their own financial records: a summary dashboard plus a long, searchable history table. The summary view (the dashboard) shows what matters at a glance.
The history view lists every record and lets the employee search, filter, sort, and open one record to see its details. For this exercise, assume each record (for example a paycheck, an expense reimbursement, or a deduction) has a date, a type, a description, and an amount, and comes from a records service.
Each record's payment status (paid, pending, failed, or reversed) and paid date come from a separate payments service, which the browser can look up for up to 100 record IDs in one call.
A summary service returns the dashboard's year-to-date totals by record type, the latest payment, and the count of records that need attention, all with an as-of time.
The records service can search descriptions, filter by type and date range, sort by date or amount, and return one page of results with a total count; you may propose small changes to these backend contracts, but designing the backend services is outside scope.
Employees only read their own records; editing records, exporting statements, and native mobile apps are outside scope. People trust these numbers, so the page must never show an amount, total, or status that is wrong, and it must say clearly when something could not be loaded.
Design the page layout, the React component and state architecture, how the history table loads and pages through large results, what happens when the payments service fails for some rows, and how the app works for keyboard and screen reader users.
What to build
- An employee opens the app and sees a dashboard with year-to-date totals by record type, the latest payment, and the count of records that need attention, each with the time the data is as of.
- An employee searches their full record history by description, filters it by type and date range, sorts it by date or amount, and can reload or bookmark the same view.
- An employee opens one record to see its details and returns to the history with the same search, filters, sort, page, and position.
- When payment status cannot be loaded for some rows, those rows say so and offer a retry, while the rest of the table, including every amount, stays visible and usable.
At scale
- Tens of thousands of employees use the app, each with thousands of records. For this exercise, assume about 20,000 employees and up to 10,000 records per employee, with most of them opening the app in the first few hours after a pay date.
- For this exercise, assume the dashboard's key numbers should appear within 2 seconds and a search, filter, sort, or page change should update the table within 1 second at p95, on a typical corporate laptop that may be on a VPN.
- For this exercise, assume the payments service fails or times out for about 1% of status lookups at busy times, and occasionally fails completely for a few minutes.
- For this exercise, assume the app must meet WCAG 2.1 AA, and every task must be possible with a keyboard alone and with a screen reader.