From 8093d4d30876a472d0c365103905b8234336bc41 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 4 Nov 2025 23:42:50 +0100 Subject: [PATCH] feat: Implement Flashes Tab with real flash effectiveness data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces placeholder with fully functional flash analysis tab showing: - Summary stats: total enemies blinded, flash assists, blind time - Team comparison cards (T vs CT) - Flash effectiveness leaderboard (sortable DataTable) - Per-team detailed flash stats tables - Average blind duration per flash calculation - Self-flash and team-flash tracking Data includes: - Enemies blinded count - Average blind duration (in seconds) - Flash assists (kills while enemy blinded) - Teammates flashed (accidents) - Self-flashed count Completes Phase 5.7 from TODO.md (Flash Tab implementation). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/routes/match/[id]/flashes/+page.svelte | 206 +++++++++++++++++++-- 1 file changed, 186 insertions(+), 20 deletions(-) diff --git a/src/routes/match/[id]/flashes/+page.svelte b/src/routes/match/[id]/flashes/+page.svelte index 8a96e72..aa421e0 100644 --- a/src/routes/match/[id]/flashes/+page.svelte +++ b/src/routes/match/[id]/flashes/+page.svelte @@ -1,32 +1,198 @@
- -
- -

Flash Analysis

-

- Flash effectiveness, enemies blinded, flash assists, and positioning heatmaps. -

- Coming in Future Update -
-
- -
+ +
- -

Flash Effectiveness

-

Enemies blinded and average blind duration

+ +
+ {teamATotals.total_enemies_blinded + teamBTotals.total_enemies_blinded} +
+
Total Enemies Blinded
- -

Flash Assists

-

Blinded enemies killed by teammates

+ +
+ {teamATotals.total_flash_assists + teamBTotals.total_flash_assists} +
+
Total Flash Assists
+
+ + + +
+ {((teamATotals.total_enemy_blind_time + teamBTotals.total_enemy_blind_time) / 1000).toFixed( + 1 + )}s +
+
Total Enemy Blind Time
+ + +
+ +

Terrorists

+
+
+ Enemies Blinded + {teamATotals.total_enemies_blinded} +
+
+ Flash Assists + {teamATotals.total_flash_assists} +
+
+ Avg per Player + {teamATotals.avg_per_player} +
+
+
+ + +

Counter-Terrorists

+
+
+ Enemies Blinded + {teamBTotals.total_enemies_blinded} +
+
+ Flash Assists + {teamBTotals.total_flash_assists} +
+
+ Avg per Player + {teamBTotals.avg_per_player} +
+
+
+
+ + + +
+

Flash Effectiveness Leaderboard

+

+ Ranked by total enemies blinded during the match +

+
+ + +
+ + + +
+

Terrorists - Flash Stats

+
+ +
+ + + +
+

Counter-Terrorists - Flash Stats

+
+ +
+ + + +
+

Understanding Flash Stats:

+
    +
  • Enemies Blinded: Total number of enemy players flashed
  • +
  • + Avg Duration: Average time enemies were blinded per flash (in seconds) +
  • +
  • + Flash Assists: Enemies killed by teammates while blinded by your flash +
  • +
  • Team Flashed: Number of times you accidentally flashed teammates
  • +
  • Self Flashed: Number of times you flashed yourself
  • +
+
+