Skip to content

BDA-Web

Viewing and analysing work done

At my employer I work in the team on the frontend of a web app that shows and analyses work done.

Role
Frontend work in the team
Category
Company work
Tech stack
Vue 3, Vite, Pinia, PrimeVue, Tailwind CSS, Chart.js, ExcelJS, Vitest, Testing Library, ESLint

Results

unit and component tests
142
In 11 files, counted on 25 November 2026 in the code
checks before every build
2
The tests and the linter; the build stops if one fails
The name “BDA-Web” in large white type on black, with an orange dot.

Problem

Recorded work has to be found, read and analysed. The app shows it in tables and analyses it in charts.

Architecture

App. Vue 3 with Vue Router, and Pinia for the state. PrimeVue brings the tables, dialogs and form fields, and Chart.js draws the charts.

Logic. Loading, selecting, editing, the table columns and the export each have a composable of their own, apart from the components. A service talks to the API.

Export. The browser builds Excel files with ExcelJS, and CSV files too, without a server.

Infrastructure

Vite builds the app. The build script runs the tests and the linter first and stops if one of them fails. The tests run with Vitest and Testing Library in happy-dom. ESLint and Prettier keep the code in one style, and Tailwind CSS styles the interface.

Outcomes

  • Nothing is built with a failing test or a lint error: the build script checks both first.
  • The logic is tested without a browser, because it sits in composables.
  • Excel and CSV exports are made in the browser.

My part

I work on the frontend in the team, in Vue 3 components and composables.

How I work

Logic stays apart from the components, so it can have its own tests, and every build runs them.

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.
PrimeVue
A library of ready interface parts for Vue, such as tables, dialogs and form fields.
Component test
A test that renders one part of the interface and uses it the way a person would.