Write and check a model › Build data apps › Bench map

Write and check a model › Build data apps

Bench map

The test lab's benches on its floor plan, coloured by driver temperature and by state. A click on a bench opens it with its runs. It does the job of the anfra Office Floor Plan.

archec new my-app --kind data-app --template bench-map
archec ui preview my-app/main.arche --serve

What it shows#

  • A filter bar: a board, a state.
  • Four tiles: the benches, those down, the hottest driver against REQ-DRIVER-TEMP, the failures this week.
  • Two floor plans: each bench a box where it stands, its colour its driver temperature, then its state (running, idle, down), with a legend. A click opens the bench.
  • The benches, hottest first.
  • A bench: its runs, its pass rate, its pass rate by case.

The data#

  • data/benches.csv: a row per bench: bench, its place x, y, w, h in metres, board, state, temp, fails.
  • data/runs.csv: the week's runs: at, bench, case, verdict, duration.

Limits#

  • The plan is the boxes alone: the drawing of the room is not in the model yet.

The model is lib/data-apps/bench-map/main.arche, and the gallery lists the other templates.