Repository navigation
Polish the first session, replay, and multi-tab saves - #2
Merged
Merged
Conversation
Open a new browser on cache-aside, keep Run from rescaling the diagram, and make the traffic slider honest about queueing. Add a paused edge scrubber, experiment replay, present mode, and compressed share links. Lock localStorage writes across tabs, lighten worker snapshots, and cover the new behavior with tests. Co-authored-by: Tan <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
A new browser lands on the cache-aside board instead of an empty canvas. Run no longer rescales the diagram, traffic tells you when a rate will queue, and you can scrub or replay a request on the edges. Share links, present mode, and a cross-tab storage lock are included. The simulation engine,
startNext, React Flow, and a dark theme are unchanged.What changed
localStorageopens the cache-aside template with a three-step coach (send, send again, open traffic). Templates in Add start expanded. A saved workspace is restored as before.fitViewon every panel resize is gone. The diagram keeps its zoom. Fit still fits, and loading a board still fits once.Ftoggles.focus-modeand closes the side panels.CompressionStream, raw base64 fallback) in the URL hash. Invalid tokens are rejected. README links to https://liveboard-eight.vercel.app and shows the four-step story.navigator.locks(liveboard-storage), with a synchronous fallback when the tab is hidden or locks are missing. ABroadcastChannelnotifies other tabs. Progress from two tabs is merged by max stars, score, and submissions. A test runs two writers through one mutex.#3f5349at 12px or larger (about 7.8:1 on the page background).configureis not sent when only node positions change.Also: Google fonts are self-hosted with
next/font(display: swap) instead of a render-blocking@import. ESLint flat config isnpm run lint.Verification
npm test: 18 files, 182 tests, passednpm run build/npm run check: passed (Next.js 16.4.2)npx eslint . --max-warnings 0: passedGET /users/1 queuedon the cache edgeFaddsfocus-modeBefore / after
Before: empty board
After: first visit
Before: Run crushed the diagram
After: Run keeps card size
Replay scrubber
Experiment replay
Present mode
Share link round-trip
Two-tab conflict
Undo
Risks
pagehidewrites skip the lock and write synchronously so the save is not dropped when the tab closes. The debounced path and visible saves take the lock.To show artifacts inline, enable in settings.