builtbykev
|
7969a4971a
|
Session 44: Make it visible — VYNDR archetype names, grade intel, schedule fix, landing page (2061 tests)
Frontend + wiring only. Wires existing backend into the pages users see.
- VYNDR Original archetype rename (41) across archetypeService.js + lib/
archetypes.js + ArchetypeBadge, each keeping legacyName (resolves stale data).
Judge -> BOMBER. Old POWER PULL slot -> WHIFF strikeout-artist pitcher.
- BACKEND_HANDOFF.md: canonical frontend<->backend data contract.
- Grade card intel: scan/page.tsx now forwards the engine's intel fields
(season_avg/form/usage/matchup_grade/archetype/...) into mapScanToGradeResult
-> STAT CONTEXT + VYNDR INTELLIGENCE sections populate. The chain already
preserved them (tierGating + /api/scan spread); the page was dropping them.
- Schedule freshness: slateAdapter.isRelevantGame drops completed games >24h
old; Slate.filteredGames applies it. (TTL already 60s.)
- Landing: Features.tsx rewritten to user-facing copy (no Point-biserial/Zone
14/ABS/Phi-coefficient).
- Depth chart Next proxies added (/api/stats/lineup|depth|cascade) - were 404.
- GameCard swap DEFERRED (Kev): legacy on-demand card stays as a bridge until
the snapshot pipeline populates the grades cache; vyndr/GameCard swaps in then.
Backend 2045 -> 2061 tests (+16), 167 suites. Web build clean (exit 0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-18 20:15:38 -04:00 |
|
builtbykev
|
8bc79f3c38
|
Session 42: Player Intelligence System — archetypes, stat strips, player profile, enhanced cards (2011 tests)
Built from the Claude Design "VYNDR Player Intelligence" bundle (10 sections).
- Archetypes: src/services/archetypeService.js — 41 archetypes (15 NBA / 5
WNBA-unique / 15 MLB / 6 soccer), classify -> primary+secondary+blend.
Frontend visual map web/src/lib/archetypes.js (colors verified == backend).
ArchetypeBadge (full/ghost/tint + glyphs) + ArchetypeBlend (DNA bar).
- StatStrip (compact/expanded): player name once, horizontal mono stats,
inline GradeBadge props, onPlayerClick -> profile.
- Stats API: extended src/routes/stats.js with /player/:name, /leaders,
/game/:id (rate-limited). Aggregation in playerIntelService.js (sanitizes
name param; grades cache; graceful on cold cache). Next proxies added.
- Player Profile /player/[name]: all 9 design sections, graceful empty states.
- Enhanced GameCard (MLB pitchers + player-grouped StatStrips) + GradeResultCard
(archetype strip + stat context + VYNDR intelligence, optional/self-hiding via
gradeAdapter.buildIntelFields). Player-name links wired everywhere.
- Settings page replaces the S41 redirect (account/subscription/notifications/
display/responsible-play/danger-zone with DELETE-gated delete). LINKS to the
real /settings/security MFA page — does not replace it. + BookChip.
- Bonus: Stats Explorer /explore (real /api/stats/leaders leaderboard); added
Explore + Settings to Nav MORE.
Deferred (need data pipelines, Session 43): Team Hub, Offseason Intel, Slate
redesign, Stats Explorer sub-panels.
Backend 1940 -> 2011 tests (+71), 157 suites. Web build clean (exit 0).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-18 11:12:24 -04:00 |
|