Files
edr-platform/apps/edr-freight-web/backoffice/src/services
Hagernesh fc4aadbc57 feat(warehouse): P1 dashboard analytics — dwell/aging, cycle-time + on-time, live deltas
Adds the operational-performance layer to the warehouse cockpit:

- Dwell time & aging: dwellStats() (avg + 0-3/4-7/8-14/15+ buckets over
  in-warehouse items) → DwellAgingCard histogram.
- Cycle time & on-time: cycleStats() (arrived→ready→loaded→dispatched stage
  averages + dock-to-dispatch) and onTimeDispatchStats() (share of items that
  left before their storage free-days expired, resolved via the fee engine's
  own rule matching) → CycleTimeCard.
- Live tiles: opsStats() now returns receivedYesterday; KpiStrip renders an
  optional ▲/▼ delta, and the ops strip shows received-today vs yesterday.

New endpoints: GET /warehouse-inventory/{dwell-stats,cycle-stats} and
/warehouse-fees/on-time-dispatch (all guarded). New "Performance" section on
WarehouseDashboardPage. On-time reads N/A when there is no sample / no active
storage rule.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-15 13:55:39 +00:00
..
2026-06-19 11:42:27 +00:00
2026-07-15 13:29:01 +00:00
2026-05-12 15:17:16 +03:00
2026-07-15 13:29:01 +00:00
2026-06-17 12:44:57 +00:00
2026-07-06 12:05:52 +00:00
2026-07-15 13:29:01 +00:00
fix
2026-07-06 13:49:30 +00:00
2026-06-17 12:44:57 +00:00
fix
2026-07-06 13:49:30 +00:00
fix
2026-07-03 15:21:23 +00:00
2026-07-07 06:39:02 +00:00
2026-07-06 12:05:52 +00:00
api
2026-06-25 11:00:40 +03:00
2026-07-06 12:05:52 +00:00
2026-07-06 12:05:52 +00:00
2026-07-03 13:53:17 +00:00
2026-06-05 14:17:48 +03:00
fix
2026-07-06 12:23:25 +00:00
2026-07-03 09:10:05 +00:00
2026-07-15 13:29:01 +00:00