All work

Case study · dashboard and design system

Pulseboard

Operations analytics for multi-location clinics, built as a production-grade frontend showcase.

  • React 19
  • RTK Query
  • Tailwind 4
  • visx
  • TanStack Table
  • Storybook 10
  • MSW
  • Cypress
Pulseboard overview in dark mode: KPI tiles with sparklines and a daily trend chart.
Overview, dark theme
  • Table

    Virtualized

    Only visible rows in the DOM
  • Frames

    In budget

    Measured by Cypress
  • Tests

    4 tiers

    Unit, two behavioural tiers and smoke
  • CI

    4 jobs

    Quality, Storybook tests, build and e2e

How it works

The dashboard sends fetch requests that an MSW service worker intercepts and answers from a seeded mock API. The UI package supplies components to the dashboard, and Storybook runs its stories as tests.

Requests

  1. Dashboard app

    React 19, RTK Query

  2. MSW worker

    Intercepts fetch

  3. Mock API

    Seeded, deterministic

Design system

  1. Storybook

    Stories as tests

  2. UI package

    Semantic tokens

  3. Dashboard app

    React 19, RTK Query

App and design system
  • RTK Query owns server state
  • Slices own URL-synced filters and API health
Mock backend, in the browser
  • Seeded streams per location, metric and date
  • Daily totals roll up from the same call records

Design system

  • Palette wiped

    Only semantic tokens compile; bg-blue-500 fails the build.

  • Contrast pairs tested

    A unit test checks each token pair against WCAG.

  • Chart hues checked

    A colour-vision deficiency check guards chart colours.

  • Stories are tests

    Play functions and axe run in headless Chromium and fail the build.

  • Theme before paint

    The data-theme attribute is set before first paint, so no flash.

  • Tabular numbers

    Every figure uses mono tabular-nums, so columns never jitter.

  • A small component set

    Pruned on purpose: no Toast, no Breadcrumbs.

  • Charts on currentColor

    SVG attributes reject var(), so a wrapper class sets the colour.

Performance

Virtualized table benchmark, measured by Cypress on a production build.

Bundle budgets, enforced in CI

Set with size-limit and checked in CI for the app entry, the Overview (visx) and Calls (TanStack) chunks, and CSS.

Date picker and Radix stay in the shell on purpose.

  • Stable query args via createSelector
  • No React.memo, by profiling
  • Zero-CLS skeletons
  • Shimmer over stale data

Failure modes you can trigger

  • Slow
  • Degraded
  • Outage
  • Per-widget error boundaries
  • Retries with backoff
  • Degraded banner over cached data
  • Empty states

Open the degraded scenario (opens in a new tab)

Testing and CI

  • Unit

    Vitest, pure logic

  • Behavioural

    jsdom

  • Behavioural

    Real browser via Storybook

  • Smoke

    Cypress e2e specs

CI jobs
  • quality
  • storybook-tests
  • build
  • e2e
Coverage gates on packages/ui
  • Line coverage
  • Branch coverage

Honest limits