Skip to content

Screens

A fleet cost report that ranks every truck

The costs overview opens with one sentence: what a kilometre of fuel and tolls costs against the same days last month, and how many fills wait to be resolved. Under it sit the month's diesel, AdBlue and tolls, the fills that look wrong, the tolls by network and two rankings of the trucks against the fleet's average. A truck that burns more than 12% over its own average, or costs more than 25% over the fleet per kilometre, says so in words.

By Bohuslav PoláčekChecked

Ridgeway's costs overview rendered from the kit with the demo's data on 25 November 2026, its two rankings cut to the first seven trucks.

Open it in the live demo An app for a haulage company

What the overview shows

  • The headline: one sentence with the numbers, the cost of a kilometre against the same days last month and the fills that wait.
  • The figures: diesel as the one large figure, then AdBlue, tolls and fuel and tolls per kilometre, each with its litres or kilometres and the change against last month. A cost that rose is red and one that fell is green, always with the arrow and the percentage.
  • To resolve: the fills that look wrong, newest first, each with the truck, the station and why: far from where the truck was, more litres than the tank holds, consumption far from the truck's own average, or a card and plate that belong to no truck.
  • The cards: fuel and tolls by month, the tolls by network with the cost per tolled kilometre, and the two rankings of the trucks. Each mark leads into its list: a truck to its fuel, a network to its statement lines, a fill to its side panel beside the fuel list.

How a truck gets flagged

Every figure covers the days the imported statements cover, named beside the title, and a truck's kilometres come from the fleet list. Both rankings draw the fleet's average as a dashed line down every row, so each truck reads against it at a glance.

A flagged row takes the warning wash and says why under the name, "23% over the truck's average"; a quiet row stays plain. The month chart draws the running month light with an outline, so it never reads as a drop.

The rules behind it

It is an overview, one of the kit's 9 screen types (the overview pattern): it must open with its headline, a sentence with numbers, and its figures are one StatGroup with a single display figure (StatGroup). Charts sit in cards that they fill, and the months are columns (ColumnChart).

A fill's state is a glyph beside its words: to resolve, waiting for the driver once someone asked, unmatched, explained. Who sees what is a rule too: billing imports the statements, billing and dispatch resolve, the director reads, and drivers and the warehouse do not see the module.

What AI coding tools get wrong here

Asked for a fleet cost dashboard, a coding tool lines up a row of equal cards, draws a pie chart of cost by truck and colours every truck in the ranking. Here the overview starts with the sentence a manager would say, one figure is large, and colour goes only to the trucks past their threshold, each with the reason in words.

The kit's BarList has no reference line yet, so the rankings are the app's own RankedList, built on the kit's ChartFigure, which keeps the title and a table for screen readers. The thresholds are two constants at the top of the page (OVER_OWN, OVER_FLEET), so the technician's headline, the figure "Over their own average" and the ranking's flags count the same trucks.

Who sees the money

apps/demo/src/modules/costs/domain/permissions.ts
const rules: Record<string, string[]> = {
  "cost.consumption": ["dispatcher", "accounts", "manager", "mechanic"],
  "cost.read": ["dispatcher", "accounts", "manager"],
  "cost.import": ["accounts"],
  "cost.explain": ["accounts", "dispatcher"],
  "cost.assign": ["accounts", "dispatcher"],
  "cost.ask": ["accounts", "dispatcher"],
  "cost.reopen": ["accounts", "dispatcher"],
};
The costs module's rules: the fleet technician reads litres per 100 km and nothing that costs money, and only billing imports statements.

Questions

Can I see fuel and tolls per truck?

Yes. One ranking gives each truck's fuel and tolls per kilometre over the days the statements cover, by the fleet list's kilometres, and another its litres per 100 km fill to fill over the last 30 days, both against the fleet's average.

Which fills does it ask someone to resolve?

A fill far from where the truck was, more litres than the tank holds, consumption far from the truck's own average, and a fill whose card and plate belong to no truck. Billing or dispatch explains it, assigns it to a truck or asks the driver about it.

Who can see the costs?

Billing, dispatch and the director see everything. The fleet technician sees only litres per 100 km per truck, with no money and no transactions, and drivers and the warehouse do not see the module.

Where do the numbers come from?

From the fuel card and toll network statements imported into the app. The days they cover are named beside the title, and a truck's kilometres come from the fleet list.

Why is the current month lighter in the chart?

It is still running. The kit draws a partial period light with an outline, never hatched, so a month that has not ended does not read as a drop.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app