Files
edr-platform/apps/edr-freight-web/backoffice
Nathnael efc5a24380 feat(reports): add optional chart view to the report engine
ReportDefinition gets an optional chart {type: line|bar, x, y[]} field —
plots the same rows the table gets, no separate query. Frontend adds a
table/chart toggle (defaults to table) using the existing recharts
dependency, no new package.

Chart view fetches up to 100 rows (the API's page-size ceiling) instead
of the table's current page, so it doesn't silently plot a fraction of
the filtered set; shows a truncation note past that cap.

Wired onto 5 reports as proof: wagon-fleet-status, locomotive-fleet-
status, booking-status-breakdown, revenue-summary (bar), and
global-logistics-wagons (line). Everything else stays table-only —
charting is opt-in per report, not a default.
2026-08-13 08:34:08 +00:00
..
2026-07-11 12:17:33 +03:00
2026-06-13 14:32:26 +03:00
2026-08-10 12:00:29 +03:00
2026-05-12 15:17:16 +03:00
2026-08-08 09:37:28 +00:00
2026-07-10 13:04:39 +00:00
2026-05-12 15:17:16 +03:00