Playtime records from pt_events; sticky top bar, page scroll locked under the drawer

Records: the most bomb plants, defuses, knife, Zeus and headshot kills for
the last 7 days, 30 days or all time, and each player's counts, when
PlaytimeHistory 0.2.0's pt_events is there. The public site's top bar now
sticks the whole way down, Playtime comes after Server, and only the
player drawer scrolls while it's open.
This commit is contained in:
Astra 2026-10-04 21:37:42 +01:00
parent 6d0fc6e463
commit 7004945d49
9 changed files with 296 additions and 27 deletions

View file

@ -165,9 +165,12 @@ SAW_PT_DSN=pt_web:<password>@tcp(<db-host>:3306)/playtime_history
and runs normally either way.
- **Public site**: a Playtime tab (once something's recorded) with the top players for the last 7
days, 30 days or all time (time on T or CT; spectating doesn't count), the last 7 days against
the 7 before, the busiest hours, players per day, a day-by-hour heatmap and maps. Player pages
get time played with the T/CT/spectating split, the last 30 days, K/D, headshots, damage per
round, MVPs and favourite maps.
the 7 before, the busiest hours, players per day, a day-by-hour heatmap and maps. With
PlaytimeHistory 0.2.0+ (its `pt_events` table), also Records: the most bomb plants, defuses,
knife kills, Zeus kills and headshot kills for the same periods, counted as they happen, never in
warmup, and not counting kills of bots. Player pages get time played with the T/CT/spectating
split, the last 30 days, K/D, headshots, damage per round, MVPs, their record counts and
favourite maps.
- **Staff** with `@css/generic` (PlaytimeHistory's own default for looking up others) get, on the
staff panel's Playtime page and on the public site while signed in: who's on now with how long,
team, ping and location; each staff member's time in the last 7 or 30 days; disconnect reasons;