loreal-utilisation-dept/frontend
DJP c485757dc3 frontend: cap Project Load chart to top 10 projects, drop legend, honour filters
Real Airtable bookings have 100+ unique project names in a single
month. The previous chart rendered one <Bar>+legend entry per project,
which flooded the legend off-screen and broke the page layout entirely
(screenshot 2026-05-16).

- Aggregate sorts projects by total hours and shows top 10 only; the
  remainder are collapsed into a single greyed "Other (N)" stack so
  the totals still add up but the visual stays sane.
- Remove the <Legend> entirely. With long L'Oréal-style project names
  even 10 entries dominate. The tooltip (capped to 360px wide, with
  filterNull) handles per-segment lookup on hover.
- Wire FilterBar's department/name selections through to the chart on
  the Resourcing page. The backend's /api/airtable/bookings endpoint
  doesn't accept those params yet, so filter client-side for v1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:57:11 -04:00
..
src frontend: cap Project Load chart to top 10 projects, drop legend, honour filters 2026-05-16 13:57:11 -04:00
.eslintrc.cjs Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
index.html Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
package-lock.json Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
package.json Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
postcss.config.js Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
tailwind.config.js Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
tsconfig.json Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
tsconfig.node.json Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00
vite.config.ts Initial commit: dockerised FastAPI backend + React/Vite frontend rewrite 2026-05-16 12:37:04 -04:00