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>
This commit is contained in:
@@ -16,14 +16,14 @@ describe('gradeAdapter — Player Intelligence fields', () => {
|
||||
});
|
||||
|
||||
it('lifts a single archetype name into a one-segment blend', () => {
|
||||
const f = buildIntelFields({ archetype: 'VOLUME SCORER' });
|
||||
expect(f.archetypeBlend).toEqual([{ archetype: 'VOLUME SCORER', weight: 1 }]);
|
||||
const f = buildIntelFields({ archetype: 'TORCH' });
|
||||
expect(f.archetypeBlend).toEqual([{ archetype: 'TORCH', weight: 1 }]);
|
||||
});
|
||||
|
||||
it('passes through a full blend + propDNA + statContext + vyndrIntel', () => {
|
||||
const r = mapScanToGradeResult({
|
||||
player: 'Wemby', stat: 'points', line: 26.5, grade: 'A',
|
||||
archetype_blend: [{ archetype: 'TWO-WAY ANCHOR', weight: 0.6 }, { archetype: 'STRETCH BIG', weight: 0.4 }],
|
||||
archetype_blend: [{ archetype: 'FORTRESS', weight: 0.6 }, { archetype: 'ARTILLERY', weight: 0.4 }],
|
||||
prop_dna: { reliable: ['points'], volatile: ['rebounds'] },
|
||||
season_avg: 26.9, last10_avg: 28.4, vs_opp_avg: 30.1,
|
||||
form: 92, usage: '31.2%', matchup_grade: 'A', rest: '+2.4%',
|
||||
|
||||
Reference in New Issue
Block a user