Commit graph

10 commits

Author SHA1 Message Date
Nuno Duque Nunes
8155722440 fix Leaderboards showing Bringer from previous weeks 2026-06-22 05:57:04 +01:00
Nuno Duque Nunes
049ea7b77f fix: unify score submission on Score.submit, fix TGScore type drift, fix playedBy semantics for borrowed characters
- Score.submit/score/set.ts/score-inject.ts now all share one code path
- TGScore consolidated to single canonical type (was duplicated in types.ts and score.ts)
- Fixed atk/def/heal flat-vs-nested TGStats drift across leaderboard.ts, result layouts
- Fixed playedBy semantics — now correctly identifies the actual player on borrowed characters
- Attendance.allSubmitted now correctly matches against playedBy (borrower) not just userKey (owner)
- score-inject gained atk/def/heal/date/played_by parameters for full parity with real submission
- Added migrate-stats-shape.py and fix-class-keys.py maintenance scripts
2026-06-22 04:27:03 +01:00
Nuno Duque Nunes
9e8877483d feat: Leaderboard & Result systems with aligned columns, call/confirm-no commands, persistent message slots
- TextAlign: column alignment for embeds using real gg sans font metrics
- EmbedHelpers: per-player grid/column layouts immune to 1024-char field limit
- Layout: domain-aware formatting wrapper (wrank, bringer, cockroach, tgCount)
- PersistentMessage: multi-slot support for independently-updatable embeds
- Leaderboard: weekly rankings + highlights embed (most kills/deaths, next Bringer)
- Result: per-TG breakdown with wRankAtSubmission snapshot for historical accuracy
- /tg call, /tg poll confirm-no, /tg-admin score-inject, result/leaderboard post commands
- Fix: CharacterRegistry wasn't hydrating ownerKey, breaking K/D bot-wide
- Fix: Leaderboard.buildEntries used current week instead of passed-in week param
- /tg-admin test-align: permanent calibration tool for embed text alignment

Includes data/emojis/anima-mastery.json for new combat stat icons.
2026-06-20 03:04:52 +01:00
Nuno Duque Nunes
b22602f431 feat: TGKey branded type, PersistentMessage abstraction, createBuildEmbed factory, BaseLayout refactor 2026-06-13 02:23:56 +01:00
Nuno Duque Nunes
d2377ff404 feat: BaseLayout shared functions, WRank delta placeholder fix, Leaves system 2026-06-11 23:53:06 +01:00
Nuno Duque Nunes
fd1b8ed50c add leave system, add cockroach on players that leave 2026-06-11 05:17:29 +01:00
Nuno Duque Nunes
ed9e7209d0 feat: WRankEntry hydration, Nation enum keys, Config section access, Cron system rework fix (remove old), WRank delta fix with lastRankChangeAt, midnight snapshot cron 2026-06-11 04:29:17 +01:00
Nuno Duque Nunes
17ff1d932f feat: nested Config system with section/key access pattern, Discord API abstraction start 2026-06-11 02:42:30 +01:00
Nuno Duque Nunes
1911cbe225 feat: Runtime lifecycle system, poll layout persistence 2026-06-10 04:44:57 +01:00
Nuno Duque Nunes
2cde01e633 feat: UI layout system, Config namespace, Bootstrap phases design, Logger/Benchmark 2026-06-10 04:20:03 +01:00