Repository navigation
feat(ui): a static click-through DuckShop demo for the website - #1448
Merged
Merged
Conversation
The demo is the web UI with the server client replaying a recording of DuckShop on sqb dev, moved forward in time and refusing every write. The website workflow builds it under /demo.
Links in clickable rows stopped the click from propagating so the row would not also open, which also kept it from SvelteKit's router, so every such link reloaded the whole app. Rows now ignore clicks on links and controls inside them, as the runs list already did.
The top bar read the version from the bootstrap, which only the mock data fills. It now reads the location's newest snapshot, and again when a new version is published.
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.
Why
A first user should be able to click through the UI on a real project before installing anything: a static demo at sqlbuild.com/demo, with no server behind it.
Changes
ui/demo/recording.json.gz, a recording of DuckShop onsqb dev: clean runs, a marts run wheredim_carriersfails with a readable error, and the run after the fix. Recorded times move forward so the newest run reads as minutes ago.ui/scripts/record-demo.mjsrebuilds the recording from browser HARs by asking a runningsqb devfor each read.demo-pages.mjslays it out for a host with no single-page fallback./demo, and now also runs whenui/changes.Verification
make check-cipasses on the final head.npm run checkand the unit tests pass, including new replay tests for time shifting, paging, unrecorded items, write refusal and plan ids.