Commit Graph

3 Commits

Author SHA1 Message Date
AmanTahiliani
c736f8d353 fix(chapters): sync race-story titles after conflict trim
resolveConflicts already clips a still-open safety car so finish can
keep the last laps, but Title and EndTime stayed on the pre-trim
range. Rebuild range-bearing titles from the final laps and point
EndTime at the trimmed lap-index end.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 15:38:29 -04:00
AmanTahiliani
5b112fb012 feat: add narrative chapter headlines and race-hub chapter strip (#21)
Generate deterministic template headlines server-side for each replay chapter
kind, expose Chapter.headline in the race-hub payload, and render a horizontal
chapter strip on the story view with active-chapter highlighting, click-to-jump,
and a 90-second tour mode built on the existing scrubber playback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 18:23:11 -04:00
AmanTahiliani
7212eb9b44 feat: detect race replay chapters
Add deterministic server-side chapter detection for starts, flag periods, pit phases, decisive top-five swings, and finishes, then expose chapters on the race-hub payload.

Spike result: race-hub already loads race control, positions, and laps in one read model. The requested Detect signature does not include pit stops, so pit phases use IsPitOutLap clusters as the local deterministic pit-stop proxy.
2026-07-11 18:04:44 -04:00