Files
fxhnt/tests
jgrusewski 6b4ea8f298 fix(cockpit): hx-boost the nav for SPA-smooth navigation
Nav links now swap the <body> via htmx instead of full page loads. htmx 1.x
runs inline <script> tags in swapped content (the codebase already relies on
this for the sim result scrubber), so each page's IIFE re-initializes after a
boosted swap and hx-* attributes are re-processed automatically — verified in
a real headless browser: navigating Overview -> Replay -> Backtest -> Paper
via boosted clicks keeps the replay scrubber re-bound, the sim form htmx-wired
+ result fragment loaded, with no full document reload.

Also stop the replay Play loop (and any pending scrub fetch) on
htmx:beforeSwap so navigating away mid-Play doesn't leave a runaway fetch loop
on the detached page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 21:48:33 +02:00
..