No description
Find a file
Dave 5f1f30f907 feat(running): show what each vehicle's running cost is made of
The four kinds under running cost - repairs & parts, purchases, insurance
and finance - ARE the whole of a vehicle's running cost. That was true of
the arithmetic but not of the screen: a card showed one number with no
visible parts, and the only breakdown was a hover tooltip on the grid's
total row.

- Each card now shows its four parts, so what the vehicle's spend is made
  of is visible without expanding it. A vehicle with no spend shows
  nothing: "nothing recorded" is already on the card.
- The expanded panel shows the four parts against the vehicle's total.
- The grid's footer shows the fleet's four parts above the fleet total, so
  a month column adds up on the screen instead of on trust.
- The page header states the fleet's four parts and the total side by side.

The parts ARE the spend and there is no fifth source, so the parts and the
total can never disagree. Any change that touches a cost kind must keep
that additivity true.

Also: the labels on this page were text-[10px], under the 12px floor the
mobile checklist sets. They are now 12px.

Two rulings recorded in AGENTS.md:

- FUEL IS NOT A PLANT RUNNING COST. The sites are invoiced for the fuel
  they use. The only fuel that is a plant cost is the fuel a plant vehicle
  takes from the tank for plant work, so a fuel log is never a running-cost
  source however many litres it records.
- Only what is under running cost as it stands. The workbook's per-vehicle
  fixed cost also carries depreciation/ownership and an operator
  allocation; that is capital recovery and overhead, not running cost, so
  it stays out - and the vehicles it covers (the excavator, the site and
  office containers, the generators, the trailers) correctly show no
  running cost on the Overview.
2026-11-05 01:09:45 +02:00
.mavis/canvas-assets Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
app feat(running): show what each vehicle's running cost is made of 2026-11-05 01:09:45 +02:00
components feat(running): show what each vehicle's running cost is made of 2026-11-05 01:09:45 +02:00
data/source feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00
docs feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
lib feat(running): show what each vehicle's running cost is made of 2026-11-05 01:09:45 +02:00
public Add Workforce pages, Plant Clock tab bar and oil & diesel book-out 2026-10-22 11:39:18 +02:00
scripts feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00
worker feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
.dockerignore Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
.env.example Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
.gitignore feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
AGENTS.md feat(running): show what each vehicle's running cost is made of 2026-11-05 01:09:45 +02:00
COOLIFY.md Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
Dockerfile feat: show the build commit as a faint corner mark 2026-10-30 01:27:22 +02:00
HANDOFF-PROMPT-2.md Round 2 (Parts B-D): asset register restructure, type field, sequential codes, flat sortable table, cost_lines, removed synthetic code, fail loudly 2026-09-12 10:24:26 +02:00
HANDOFF-PROMPT-3.md Round 3 (Parts A-B): charts fixes + expenses/overheads cleanup 2026-09-12 11:24:18 +02:00
HANDOFF-PROMPT-4.md Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
HANDOFF-PROMPT.md Auto-create synthetic assets for unmatched machines in seed; update open-questions report 2026-09-12 09:40:18 +02:00
next.config.ts feat: add user access and improve plant dashboard 2026-10-06 04:02:08 +02:00
package-lock.json feat(clock): add standalone employee clock PWA 2026-10-21 06:39:15 +02:00
package.json feat(clock): add standalone employee clock PWA 2026-10-21 06:39:15 +02:00
postcss.config.mjs Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00
proxy.ts Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
tsconfig.json Mega Plant dashboard — fix & harden (Parts 0-5) 2026-09-12 09:35:48 +02:00