Session 43: Data pipeline + audit fixes + depth chart foundation (2045 tests)
P0 fixes + wiring real data into the S42 Player Intelligence architecture. - P0 dropdown z-index: the nav's backdrop-filter stacking context let the Ticker/HeartbeatBar paint over the avatar/More dropdowns and eat clicks. nav now position:relative zIndex:2; menus zIndex:100. Avatar Settings -> /settings. - Real MLB stats: mlbStatsAdapter.searchPlayer + getPlayerStats (name->id-> season+gamelog). playerIntelService.resolvePlayerStats normalizes into the archetype classifier; getPlayerIntel returns found:true + real season + archetype classified from real stats. NBA via nbaStatsClient (degrades). - Game cards: slateAdapter.groupPropsByPlayer (playerStrips, name once) + mapPitchers (MLB probables), folded into mapScheduleToGameCards. Legacy GameCard line grid renders BookChip (brand colors) not grey text. - Grade card intel: analyzeViaEngine1.buildIntelFields computes stat-context + form/usage/matchup/rest from the existing feature vector (zero extra I/O); gradeAdapter lights up the card sections. Archetype deferred (needs season line at grade time). - Depth chart foundation: depthChartService (getLineup/getDepthChart/ getCascadeProjection) + /api/stats/lineup|depth|cascade, graceful + injectable. - Mobile: player hero name overflow-wrap + 24px on <=640px (was clipping). Backend 2011 -> 2045 tests (+34), 163 suites. Web build clean (exit 0). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+69
-3
@@ -4,9 +4,75 @@
|
||||
2026-06-18
|
||||
|
||||
## Current Phase
|
||||
SHIP BUILD v42.0 — Player Intelligence System (archetypes, stat strips, player
|
||||
profile, enhanced cards, settings, stats explorer). Built from the Claude Design
|
||||
"VYNDR Player Intelligence" bundle.
|
||||
SHIP BUILD v43.0 — Data pipeline wiring + P0 audit fixes + depth chart
|
||||
foundation. The Session-42 Player Intelligence architecture now flows REAL data.
|
||||
|
||||
## Session 43 (2026-06-18) — SHIPPED ✅ DATA PIPELINE + AUDIT FIXES
|
||||
|
||||
Post-S42 Chrome audit: architecture renders but no real data flowed (every
|
||||
player `found:false`, leaders empty, grade intel hidden) + a P0 dropdown bug.
|
||||
Backend 2011 → **2045 tests** (+34), 163 suites. Web build clean (exit 0).
|
||||
|
||||
### Phase 1 — P0 bug fixes
|
||||
- **Avatar/More dropdown z-index** — the `<nav>` has `backdrop-filter` (a
|
||||
stacking context); `<Ticker>` + `<HeartbeatBar>` render after it as siblings
|
||||
and painted OVER the dropdowns (which overflow below the 60px bar), eating
|
||||
clicks. Fix: `position:relative; zIndex:2` on the nav floats it (and its
|
||||
menus) above those bars; menus also carry `zIndex:100`. Avatar "Settings" →
|
||||
`/settings` (was `/settings/security`). Explore was already in MORE (S42) —
|
||||
the audit "missing" was a deploy cache.
|
||||
|
||||
### Phase 2 — real player stats
|
||||
- **`mlbStatsAdapter`** gained `searchPlayer(name)` (season player-list lookup,
|
||||
cached 24h) + `getPlayerStats(name)` (resolve id → season + game log, picks
|
||||
pitching/hitting by position). The adapter only had id-keyed methods before.
|
||||
- **`playerIntelService.resolvePlayerStats(name, sport)`** normalizes the raw
|
||||
MLB stat object → classifier input + display season rows + last-10 log.
|
||||
`getPlayerIntel` now classifies the archetype from REAL stats and returns
|
||||
`found:true` with real season data. Aaron Judge → POWER PULL, not the
|
||||
empty-stats fallback. NBA/WNBA path wired to `nbaStatsClient` (degrades
|
||||
quietly — the Python nba_api service is usually offline in prod). All
|
||||
adapters injectable for tests; everything still degrades gracefully.
|
||||
- **Leaders**: `/api/stats/leaders` + the explore page already share the
|
||||
`grades:{sport}` cache source — no mismatch to fix. Emptiness is data
|
||||
population (the slate must be graded first); the snapshot pipeline (Session
|
||||
44) keeps it warm.
|
||||
|
||||
### Phase 3 — game card enhancements
|
||||
- `slateAdapter` gained `groupPropsByPlayer` (→ `playerStrips`, name once) +
|
||||
`mapPitchers` (MLB probables → GameCard `pitchers`); both folded into
|
||||
`mapScheduleToGameCards` output (vyndr/GameCard consumes them; legacy ignores
|
||||
the extras). Legacy `GameCard` line grid now renders `BookChip` (brand
|
||||
colors) instead of plain grey book text (the audit's complaint).
|
||||
|
||||
### Phase 4 — grade card intelligence
|
||||
- `analyzeViaEngine1` attaches stat-context + VYNDR-intelligence fields
|
||||
(`season_avg`/`last10_avg`/`form`/`usage`/`matchup_grade`/`rest`) computed
|
||||
from the EXISTING feature vector — zero extra I/O. `gradeAdapter` maps them in,
|
||||
so the card's STAT CONTEXT + VYNDR INTELLIGENCE sections light up. Archetype
|
||||
is intentionally NOT set here (the per-prop feature vector lacks a multi-stat
|
||||
season line; the archetype strip stays hidden until Session 44 feeds it).
|
||||
|
||||
### Phase 5 — depth chart foundation
|
||||
- **`src/services/depthChartService.js`**: `getLineup` (MLB probable starter
|
||||
from the schedule), `getDepthChart` (positions from an injected roster),
|
||||
`getCascadeProjection` (usage redistribution weighted by archetype — sponges
|
||||
heaviest). All graceful + injectable. Endpoints: `/api/stats/lineup/:team`,
|
||||
`/depth/:team`, `/cascade/:player`. (Next proxies + UI = Session 45.)
|
||||
|
||||
### Phase 6 — mobile + cosmetics
|
||||
- Player-profile hero name was clipping ("Wembanyam") at 390px — added
|
||||
`overflow-wrap:anywhere` + a mobile rule (`.player-hero-name` 24px). Font CDN
|
||||
already gone since S41 (next/font).
|
||||
|
||||
### Deferred (honest scope)
|
||||
- Full live-slate swap to vyndr/GameCard (needs inline grading ported) — the
|
||||
data layer is now ready (`playerStrips`/`pitchers`).
|
||||
- Per-player archetype badges on slate cards + grade-card archetype strip — need
|
||||
per-player season lines at grade time (Session 44 snapshot pipeline).
|
||||
- Depth chart UI + lineup/minutes projections (Session 45).
|
||||
|
||||
## Session 42 (2026-06-18) — SHIPPED ✅ PLAYER INTELLIGENCE SYSTEM
|
||||
|
||||
## Session 42 (2026-06-18) — SHIPPED ✅ PLAYER INTELLIGENCE SYSTEM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user