mega-plant/app
David 8d957a1f16 Dashboard: a Monthly profit chart, one dot per month
The profit line already drawn on Income vs Fixed vs Running, isolated into its
own full-width card above the monthly trend, with the marker the eye actually
wants: a green dot on a month that made money, a red dot on one that did not.
A line rather than bars, so it is the same series the card above draws and the
two cannot drift.

The dots are NOT on the run lines. A run of a single month has no segment, so a
lone profitable month would have had no dot at all and vanished from the chart.
A second, transparent Line carries `profit` and draws one marker per month
coloured from that month's own sign.

September is a HOLLOW dot, which is the honest part: monthly_running_costs has
rows for Jan-Aug only, so September's profit has had no running cost subtracted
and is optimistic. /charts already marks such a month the same way. The chart
also says so in words, and the KPI is unaffected.

The tooltip shows the hovered MONTH's profit, not a running total, and names it
Profit or Loss by sign rather than surfacing the profitRun0/profitCross0 keys.
2026-10-03 19:13:58 +02:00
..
api Invoices: keep the PDF on the invoice, and search the invoice's own words 2026-10-02 19:09:16 +02:00
charts Charts: a profit line that changes colour, and a Series toggle 2026-10-03 09:20:16 +02:00
expenses Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00
income Income: hide stood-down machines, with an active/inactive filter 2026-10-03 18:40:32 +02:00
overheads Fix: the mobile table was mislabelled and clipping its own totals 2026-10-02 15:34:19 +02:00
plant Sites: auto-allocate container lines to the container the site hires 2026-10-02 18:32:12 +02:00
running Round 4: regressions fixed + mobile standard 2026-09-12 12:05:43 +02:00
sites Mobile: the top tiles overflowed on /income, hugged text on /sites, and repeated on invoices 2026-10-03 16:45:23 +02:00
globals.css Charts: a profit line that changes colour, and a Series toggle 2026-10-03 09:20:16 +02:00
layout.tsx Mobile: the menu button was indenting every page 2026-10-03 16:08:04 +02:00
page.tsx Dashboard: a Monthly profit chart, one dot per month 2026-10-03 19:13:58 +02:00