Capstone — real-time operations dashboard
Build an operations dashboard for live orders, incidents, devices, jobs, or transactions. Users should filter/search, open details, mutate status, receive live updates, understand connection health, preserve navigational filters, recover from failures, and complete the primary flow by keyboard.
Architecture target
The primary design question is: which system owns each value, and who should subscribe to it?
State inventory
Avoid one mega Context that mixes all update frequencies and ownership categories.
Live connection adapter
type ConnectionState =
| { status: 'connecting' }
| { status: 'connected'; lastEventAt: number }
| { status: 'reconnecting'; attempt: number }
| { status: 'offline'; reason?: string };
This is a good useSyncExternalStore exercise when the live state truly exists outside React.
Identity under live reordering
{records.map(record => (
<RecordRow key={record.id} record={record} />
))}
Use persistent record IDs. Test that an inline editor stays attached to the same record while live events insert, remove, sort, or filter rows.
Responsive search
const [query, setQuery] = useState('');
const deferredQuery = useDeferredValue(query);
Deferral does not cancel remote requests. The data layer still owns stale-response/cancellation behavior.
Scaling the list
Measure before choosing.
Status mutation flow
Model a status sequence such as Open → Investigating → Resolved.
Protect duplicate submissions, runtime input validation, authorization, rollback, and accessible error feedback. The server record remains canonical.
Error and loading architecture
Accessibility contract
Connection health must not rely on color alone. Filters need visible labels. Row actions need meaningful names. Keyboard users must reach details and restore focus appropriately. Loading and live announcements should preserve orientation and avoid noisy live regions. A virtualized grid still needs a documented accessibility strategy.
Testing portfolio
Performance investigation
Intentionally create a broad live update, unstable row props, and expensive formatting, then follow an evidence loop:
Production evidence
Instrument release IDs, connection failures, mutation failures, latency, retry/reconnect frequency, and trace IDs without logging sensitive record payloads.
A strong capstone explains not merely that the dashboard works, but why its ownership, subscription, failure, and scaling boundaries remain understandable under live production pressure.