Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👋 TL;DR
Adds four new data visualizations to the region stats page — all backed by new BigQuery sub-queries — giving F3 leaders a richer picture of how each AO is performing.
🔎 Details
New charts added to region pages
charts(existing)charts(existing)ao_q_depth.unique_qsao_q_depth.q_depth_pctao_heatmapNew BigQuery sub-queries in
regions.ts:ao_heatmap— avg PAX per AO per day-of-week (Mon–Sat), trailing 90 days, first-F events onlyao_q_depth— unique Qs ÷ total workouts per AO, trailing 90 days; used by both the Q Depth % chart and the Unique Qs count chartao_pax_trend— avg PAX per AO per month for 6 months (data fetched, reserved for a future iteration)Page layout (region):
New types added to
types.ts:AOHeatmapData,AOQDepthData,AOPaxTrendData✅ How to Test
/stats/region/<id>)AO · Day: X avg PAX (Y workouts)X% (Y Qs / Z workouts)🥜 GIF