Add SPA episode navigation to avoid rerun WASM reload#345
Open
vertix wants to merge 2 commits intoPositronic-Robotics:mainfrom
Open
Add SPA episode navigation to avoid rerun WASM reload#345vertix wants to merge 2 commits intoPositronic-Robotics:mainfrom
vertix wants to merge 2 commits intoPositronic-Robotics:mainfrom
Conversation
Use rerun viewer's `add_receiver`/`remove_receiver` API to swap RRD
data without reloading the iframe. Adds Service Worker to cache WASM
assets and `/api/episode/{id}` endpoint for client-side navigation.
- Reset `viewerReady` on iframe fallback reload - Use `replaceState` in popstate handler to avoid double history entries - Clear sidebar content before re-rendering on SPA navigation - Restore `input.maxLength` in `updateNavControls()` for both modes - Add `jinja2` to dependencies (required by starlette's Jinja2Templates)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WebHandleAPI (remove_receiver/add_receiver), keeping the 35MB WASM alive across episode navigation/static/rerun/assets, so the WASM persists across hard refreshes even with self-signed certs/api/episode/{id}JSON endpoint for SPA metadata fetchingjinja2dependency (required by starlette'sJinja2Templates)Test plan