7969a4971a
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>
20 lines
714 B
JavaScript
20 lines
714 B
JavaScript
// Session 44 — Phase 5: depth chart Next proxies exist (were 404ing).
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const API = path.join(__dirname, '..', '..', 'web', 'src', 'app', 'api', 'stats');
|
|
|
|
describe('Depth chart Next proxy routes', () => {
|
|
it.each([
|
|
['lineup/[team]/route.ts', '/api/stats/lineup/'],
|
|
['depth/[team]/route.ts', '/api/stats/depth/'],
|
|
['cascade/[player]/route.ts', '/api/stats/cascade/'],
|
|
])('%s exists and forwards to the Express backend', (rel, fwd) => {
|
|
const p = path.join(API, rel);
|
|
expect(fs.existsSync(p)).toBe(true);
|
|
const src = fs.readFileSync(p, 'utf8');
|
|
expect(src).toContain('BACKEND_URL');
|
|
expect(src).toContain(fwd);
|
|
});
|
|
});
|