feat(web): tutorial dock as an OS window — repulsion, clean spotlight cutout, ja on every step #88
Loading…
Reference in a new issue
No description provided.
Delete branch "web/choi-window"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rebuild of the tutorial dock after the owner's live review, which flagged: a two-word-wide speech bubble with a scrollbar, the sensei detached below the bubble with stray set dressing, visible clip-path seam artifacts in the dim layer, and the dock covering the panel it was explaining.
What changed
Dock.svelte): title bar[ ☰ TUTORIAL ]with step counter and[ X ] CLOSE, draggable by pointer events, resizable from the bottom-right handle (min 360px, max 90vw/80vh), position/size persisted for the session only. Default width 520px — body text wraps at a comfortable measure. Bubble + sensei stacked inside; dojo groves/scroll/leaves/floor are stripped so nothing floats beside the sensei.prefers-reduced-motiondisables the slide.Spotlight.svelte): clip-path evenodd polygon replaced by the huge-box-shadow cutout — fixed element exactly on the integer-rounded target rect,box-shadow: 0 0 0 9999px, hairline accent ring on the target,pointer-events: none, no seams.Step dots,
[ < ] [ > ],[ SHOW ME ], keyboard (←/→, Escape) all work inside the window. No global i18n keys added; Splash/auth untouched.Verification
Playwright against a dedicated vite (:5174) at 1440x900@2x, screenshots in
/tmp/opencode/shots/choi/. Programmatically asserted per step: window/highlight bounding boxes do not intersect (0px² on all five highlighted regex steps; on the demo step the 914px-wide result panel makes full avoidance impossible at 1440x900, so the window achieves the geometric minimum overlap), no clip-path veil in computed style, bubble width ≥ 400px (502px). Drag, resize, dot-jump, ArrowRight and Escape verified in-script; screenshots read and iterated until composed (including a fix for the bubble growth creeping the window into the highlight).svelte-check: 0 errors.bun test: 74 pass, rot guards green.