Skip to content

Dashboard

Configurable data dashboard

At my employer I build the frontend of a configurable data dashboard in a team, with unit, end-to-end and accessibility tests.

Role
Frontend engineer in a team
Period
Jul 2025 – Present
Category
Company work
Tech stack
Vue 3, TypeScript, Vite, Pinia, PrimeVue, Reka UI, Tailwind CSS, GridStack, Chart.js, TanStack Table, TanStack Virtual, VueUse, Zod, Vitest, Vue Test Utils, Playwright, axe-core, ESLint, Woodpecker CI

Results

test files
263
233 for units and components, 30 for the browser; counted on 25 November 2026
browser setups
4
Playwright: Chromium, Firefox, WebKit and a phone profile (Pixel 5)
accessibility tests for the data tables
9
axe at WCAG 2.2 AA, keyboard only, focus, small screens; counted on 25 November 2026
The name “Dashboard” in large white type on black, with an orange dot.

Problem

People who work with a lot of data want the charts and tables they need on one screen, in the order they choose. The dashboard lets them arrange these on a grid and remembers the arrangement.

Architecture

Layers. The app is Vue 3 with the Composition API and strict TypeScript. Components show things, composables hold the logic, and services and repositories talk to the API. Pinia keeps the state that many parts share.

Grid and loading. GridStack lays out the grid. A part of the board renders only when it comes close to the visible area, and a request that is no longer needed is cancelled.

Tables and charts. The tables are built on TanStack Table. Above 100 rows, TanStack Virtual draws only the rows in view. The charts use Chart.js.

Saved settings. Changes are saved after a short pause. If that fails, the app tries again and waits longer each time. Imported settings are checked with Zod schemas, and files from older versions are migrated first.

Infrastructure

Checks. Vite builds the app, and the type check runs with every build. ESLint and Prettier keep the code in one style. Unit and component tests run with Vitest and Vue Test Utils.

In the browser. Playwright is set up for Chromium, Firefox, WebKit and a phone profile. A mock backend lets tests run without a server, some tests compare screenshots, and axe checks the data tables.

CI. On every push, Woodpecker runs the dependency audit, lint, the type check and build, the unit tests and browser tests.

Outcomes

  • A board opens without loading everything at once: each part loads when it comes close to the visible area.
  • The data tables work with the keyboard alone, and axe checks them against WCAG 2.2 AA.
  • Settings saved in an older version can still be imported: the app migrates and checks them first.

My part

I work on the frontend in a team. My part is the tables and charts, the grid and its loading, saving and importing settings, shared interface components, and their tests.

How I work

Logic goes into composables and services, so it can be tested without a browser. A change in behaviour comes with a test. I wrote the keyboard and axe tests for the data tables.

Terms used here

Composable
A function in Vue that holds logic and state, so several components can share it.
Pinia
Vue’s library for state that many components use.
GridStack
A library for grids whose parts can be moved and resized.
Row virtualisation
Only the rows in view are drawn, so a long table stays small for the browser.
axe
A tool that finds accessibility problems on a page automatically.
WCAG 2.2 AA
The middle level of the international guidelines for accessible websites.