Skip to content

Patch/1 scenario analytics dashboard - #1059

Closed
Emissaryx wants to merge 34 commits into
dalen:mainfrom
Emissaryx:patch/1-scenario-analytics-dashboard
Closed

Patch/1 scenario analytics dashboard#1059
Emissaryx wants to merge 34 commits into
dalen:mainfrom
Emissaryx:patch/1-scenario-analytics-dashboard

Conversation

@Emissaryx

Copy link
Copy Markdown

No description provided.

… stats

Share view links now bake in an absolute start/end timestamp instead of a relative range, so a copied link keeps showing the same window. Standouts and roster-preview column order now matches the full Scenario detail page. Expanded match rows in Scenario Breakdown show the score. Dropped the invented Overall contribution stat - Standouts now sort by real stats directly, and Top contributor is now Top killer with a tooltip. Added tooltips for Balance thresholds. Filter selects use Bulma's select component.
Averaging or taking the median over 1-2 scenarios lets a single lucky match dominate the ranking regardless of which stat is selected. Reproduced live: Destruction Standouts ranked by Kill damage, Average view, put a 1-scenario player at the top. Default the minimum-scenarios filter to 10+ whenever View is Average or Median; Totals keeps the old 1+ default. An explicit lbMin in the URL always overrides this.
Reworked from one flat sortable table into two team sections grouped by role (Tank/Melee DPS/Ranged DPS/Healer) with a team totals row, matching the roster preview pattern and the maartenson.net reference. Every stat cell also shows the player's share of their team total for that stat, e.g. Kill dmg 27K (11%), so healer/dps/tank contribution can be compared honestly without a combined score. Sorting still works, applied within each role group.
Default full-window scenario batch loads to Apollo's cache-first fetch policy so leaving /scenarios (e.g. clicking into a character) and returning reuses the already-fetched window instead of redownloading. The Refresh button still forces a true network-only fetch via a ref flag.
…hits

Follow-up to the previous commit: switching the batch loader to cache-first didn't actually help, because getTimeFilters recomputes "now" fresh on every mount for relative ranges (1h/24h/7d/etc), so startTime.gte drifted by a few seconds/minutes each time and Apollo saw it as a brand new query. Rounding "now" down to a 5-minute bucket keeps the query variables identical across remounts within that window, so returning to /scenarios now actually reuses the cache instead of redownloading.
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for curious-caramel-c7f0d8 ready!

Name Link
🔨 Latest commit 9196265
🔍 Latest deploy log https://app.netlify.com/projects/curious-caramel-c7f0d8/deploys/6a7137493687ee0007a72d0b
😎 Deploy Preview https://deploy-preview-1059--curious-caramel-c7f0d8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Emissaryx

Copy link
Copy Markdown
Author

Superseded by #1066, rebuilt directly from upstream main as a smaller independent draft PR. The original branch remains available for history.

@Emissaryx Emissaryx closed this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant