Files
Siro/backend
Hamza-AyedandClaude Opus 5 bc1b0129e8 Fix v2 analytics status matching; give Growth and Analytics real charts
Eight queries across the v2 modules counted only status = 'Finished' and so
reported zero on live data, where the current ride pipeline writes
'completed': realtime revenue for today and yesterday, financial stats,
settlements, driver scorecard, driver ranking, and both revenue queries. All
now match either spelling.

Growth and Advanced Analytics rendered through the generic shape-detecting
renderer, which produced raw tables that said little. Both now have purpose-
built views:

- Growth: totals, 30-day joins, and a two-series daily chart. growth.php only
  returns days that had signups, so the series is expanded to a continuous
  30-day axis with explicit zeros — plotting the returned rows directly would
  hide the gaps and make a quiet month look like steady growth. A caption
  states how many days actually had a signup.
- Analytics: revenue summary tiles, a daily revenue trend, and the captain
  ranking, with a note explaining that platform share is what remains after
  the captain's cut.

Null aggregates render as "—" rather than 0.00, and markers are drawn only on
days with a value so a flat zero line stays readable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 16:55:58 +03:00
..
2026-07-09 03:41:48 +03:00
2026-07-23 16:56:58 +03:00
2026-06-09 08:40:31 +03:00
2026-06-09 08:40:31 +03:00
2026-06-09 08:40:31 +03:00
2026-07-12 05:40:28 +03:00
2026-06-16 17:47:19 +03:00
2026-06-29 00:07:33 +03:00
2026-06-09 08:40:31 +03:00
2026-06-12 20:40:40 +03:00
2026-06-28 00:42:26 +03:00
2026-06-11 13:47:40 +03:00
2026-06-25 01:22:26 +03:00
2026-06-16 01:17:29 +03:00
2026-06-24 16:12:30 +03:00
2026-06-27 05:07:43 +03:00
2026-06-25 01:15:22 +03:00
2026-06-12 20:40:40 +03:00