mega-plant/components
Dave 5634c067c4 feat(running): the year to date AND the live month on the running-cost pages
The client asked for two things on the running-cost pages: drop the two prose
notes, and show the year-to-date figure next to the total for the current month.

- /running loses the "Shown to Jan, Feb..." and "A re-cut of costs..."
  paragraphs. The tiles carry the year and the month instead.
- /running shows "Nov so far" beside "YTD running cost", and the "made of"
  line is printed for the month as well as for the year, so the month's total
  is explained on the page and not only in the grid.
- The cards follow the income cards: YTD spend | Nov so far side by side from
  md, the month on its own line below md, and the sparkline yields its width
  below xl so the vehicle NAME is never truncated to pay for a decorative
  trend. Below sm the name wraps instead of being cut short.
- /running/insurance shows the premium in force this month, and its
  year-to-date figure now stops at the months that have happened. December is
  a rate on file, not money spent, so including it made this page a full year
  while the Overview showed eleven months - the same cost kind reading as two
  different numbers on two screens.
- /running/financing shows "Committed for Nov" beside a new year-to-date
  instalment figure.

One rule, three screens. elapsedMonths() in lib/income-month.ts counts the
months that have happened and is the same clock the income pages use, and
financeByAsset() / fleetFinanceByMonth() in lib/running-costs.ts are the only
finance rule the Overview and the financing register both read. The Overview's
insurance and finance year-to-date figures now equal the insurance and
financing pages' figures exactly.

lib/running-month.test.ts asserts it, including the insurance cross-check
between the register and the Overview.

A settled agreement still contributes nothing to any month - the instalments
TLB06 was paying in January-October are not in the Overview's finance figure.
The client confirmed the financing is correct as it stands, so that is left
alone and recorded in AGENTS.md rather than quietly changed.
2026-11-05 01:42:23 +02:00
..
auth Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
workforce
AccountMenu.tsx
BadgeCamera.tsx Clock app: search + scanner on one screen; employee on fuel; drop codeless vehicles 2026-10-22 13:55:13 +02:00
BookedOutTable.tsx
BuildStamp.tsx feat: show the build commit as a faint corner mark 2026-10-30 01:27:22 +02:00
CashFloatCard.tsx Add Suppliers list; book purchase orders and petty-cash slips against it 2026-10-22 15:43:57 +02:00
ChartsGrid.tsx
ClockAppHeader.tsx
ClockBottomNav.tsx Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
ClockInstallPrompt.tsx
DashboardCharts.tsx
ExpenseSectionPage.tsx
FinancingView.tsx
FuelSiteImport.tsx feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00
GlobalSearch.tsx
IncomeOverview.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
IncomeView.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
InsuranceView.tsx feat(running): the year to date AND the live month on the running-cost pages 2026-11-05 01:42:23 +02:00
InvoiceIntake.tsx
InvoiceList.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
InvoiceMonthFilter.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
InvoiceRegisterPage.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
InvoiceTable.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
InvoiceUploader.tsx
JobCardsTable.tsx Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
JobScanner.tsx Clock app: search + scanner on one screen; employee on fuel; drop codeless vehicles 2026-10-22 13:55:13 +02:00
MachineCombobox.tsx
MachineLineChart.tsx
OilsBoard.tsx
OilsStock.tsx
PlantClock.tsx
PlantMap.tsx feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00
PlantMapLoader.tsx
PlantRegisterTable.tsx feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00
PurchaseIntake.tsx Purchase invoices: price an invoice that has no amount 2026-11-04 18:06:02 +02:00
QrCode.tsx
QrTextCell.tsx
RunningView.tsx feat(running): the year to date AND the live month on the running-cost pages 2026-11-05 01:42:23 +02:00
ScrollFade.tsx
SearchPicker.tsx
Sidebar.tsx
SiteBookingSelect.tsx
SiteContainerEditor.tsx
SiteCoordinateEditor.tsx
SiteIncomeView.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
SitesOverview.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
SitesView.tsx feat(income): posted income per site, and the LIVE month on the overview 2026-11-05 00:19:06 +02:00
SlipCapture.tsx Add Suppliers list; book purchase orders and petty-cash slips against it 2026-10-22 15:43:57 +02:00
Sparkline.tsx
StockOut.tsx Cash float card, Office role + Slips tab, job card PDF, manual close/delete 2026-10-22 15:09:57 +02:00
SupplierCell.tsx
Suppliers2View.tsx Suppliers: dark-mode contrast for monthly figures and coloured text; heading drawn in the view (React key warning) 2026-10-29 21:16:54 +02:00
SuppliersView.tsx Add Suppliers list; book purchase orders and petty-cash slips against it 2026-10-22 15:43:57 +02:00
ThemeProvider.tsx
ThemeToggle.tsx
Toast.tsx
VehicleSiteHistory.tsx feat(plant): vehicle site history from Fuel Logs 2026-11-05 00:18:24 +02:00