Skip to content

Polish the first session, replay, and multi-tab saves - #2

Merged
tanRdev merged 1 commit into
mainfrom
cursor/polish-sprint-6298
Nov 9, 2026
Merged

tanRdev merged 1 commit into
mainfrom
cursor/polish-sprint-6298

Conversation

@tanRdev

@tanRdev tanRdev commented Nov 9, 2026

Copy link
Copy Markdown
Owner

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

  1. First visit. An empty localStorage opens 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.
  2. Run panel. The resize observer that called fitView on every panel resize is gone. The diagram keeps its zoom. Fit still fits, and loading a board still fits once.
  3. Traffic. The default rate is 1 req/s. The slider states how many slots are in flight, about how long a cache miss takes, and that a faster rate grows the queue before anything fails. A waiting queue with 0% failures is labeled as still queued.
  4. Scrubber. While paused, Replay walks the current request’s events and lights the matching edge.
  5. Watch on the board. An interview experiment can play its example traces through the same edge animation.
  6. Present mode. F toggles .focus-mode and closes the side panels.
  7. Share links. Board menu copies a gzip link (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.
  8. Storage lock. Workspace writes and challenge progress take navigator.locks (liveboard-storage), with a synchronous fallback when the tab is hidden or locks are missing. A BroadcastChannel notifies other tabs. Progress from two tabs is merged by max stars, score, and submissions. A test runs two writers through one mutex.
  9. Keys, contrast, undo. Space pauses, period steps, Backspace/Delete removes the selection, Ctrl/Cmd+Z undoes the last delete (20 deep). Challenges, Interview, and Remove have names when the label is hidden. Muted text and the tiny distribution headings move to #3f5349 at 12px or larger (about 7.8:1 on the page background).
  10. Lighter snapshots. Published results drop the duplicated trace (the engine and experiment reports still keep it). A tick that only moves the clock is not posted. configure is 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 is npm run lint.

Verification

  • npm test: 18 files, 182 tests, passed
  • npm run build / npm run check: passed (Next.js 16.4.2)
  • npx eslint . --max-warnings 0: passed
  • Headless Chrome against the production server:
    • first visit is User profile API plus the coach, not Untitled system
    • opening Run leaves cards at 288px wide (they were being zoomed down before)
    • paused Replay shows GET /users/1 queued on the cache edge
    • Watch on the board plays an experiment trace
    • F adds focus-mode
    • a hash link reopened the board in a second tab
    • Delete went 4 nodes to 3, Ctrl+Z restored 4
    • two tabs editing the title produced the conflict banner instead of a silent overwrite

Before / 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

  • Opening Run still covers the lower part of a tall diagram because the panel overlays that area. Cards are not rescaled. Press Fit to bring the whole board into the space above the panel.
  • Idle playback no longer advances the on-screen clock until something else in the snapshot changes. Active requests, traffic, and lab events still publish.
  • Live request traces in the UI come from the event log (last 500). Older rows no longer carry a private copy of the trace. Experiment reports still do.
  • Share links are capped at 12,000 characters. Larger boards should be downloaded as JSON.
  • pagehide writes 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.
  • Not every 7px label in the old stylesheet was resized. The muted palette and the distribution headings called out in review were.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

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]>
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
liveboard Ready Ready Preview Nov 9, 2026 5:27pm UTC

@tanRdev
tanRdev merged commit f958b04 into main Nov 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants