Skip to content

fix(explorer): blank stage on half of page loads; phone fullscreen button over Zoom out - #1538

Merged
ruvnet merged 2 commits into
mainfrom
explorer/improve-2026-11-24
Nov 24, 2026
Merged

ruvnet merged 2 commits into
mainfrom
explorer/improve-2026-11-24

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

On https://ruvnet.github.io/RuVector/explorer/ the main search canvas often never draws: the playhead sits at `0.0 s` over an empty stage until the visitor scrolls the stage away and back.

Cause

`explorer-shell.js` moves `#stage` into the workspace at load. The stage `IntersectionObserver` then delivers `[hidden, visible]` in a single callback, and the callback destructured only the first entry (`([e])=>…`), so `stageVisible` stayed `false` and `frame()` skipped every draw.

Fix

Use the newest entry: `es[es.length-1].isIntersecting`.

Evidence (Playwright, 7 s after networkidle)

desktop 1440 phone 390
live site 3/8 loads drew 6/8 loads drew
this branch 8/8 8/8

Tab round trip (Learn → Benchmarks → Search) and focus mode on/off still draw at both sizes.

Tests

  • New `docs/explorer/check-stage-visibility.cjs`: fails on the old line, passes on the fix.
  • `check-shell.cjs`, `check-lab.cjs`, `check-capabilities.mjs`, `check-experiments.mjs` pass. `check-experience.cjs` needs `jsdom`, which isn't installed here (same on main).

Second commit: phone control overlap

Below 740px the zoom rail rises into the stage's top-right column and #fullBtn covered Zoom out. On phones it now sits in the free left-column slot between Export and Focus (also in :fullscreen). Desktop is unchanged. Rechecked at 390px in normal and focus mode: no overlapping stage controls. explorer-shell.css cache key bumped.

🤖 Generated with claude-flow

explorer-shell.js moves #stage into the workspace at load, so the stage
IntersectionObserver can deliver [hidden, visible] in one callback. The
callback read only the first entry, left stageVisible=false, and the
canvas never drew until the stage was scrolled away and back. Use the
newest entry instead.

Live site: 9/16 Playwright loads drew the stage (desktop 3/8, phone 6/8).
Fixed build: 16/16, with tab round trip and focus mode still drawing.
check-stage-visibility.cjs fails on the old line and passes on the fix.

Co-Authored-By: claude-flow <ruv@ruv.net>
Below 740px the zoom rail rises into the stage's top-right column, and
#fullBtn (top 158px, right) sat on top of the Zoom out button. Move it to
the free left-column slot between Export and Focus (top 110px) on phones,
including the :fullscreen state. Desktop placement is unchanged. Bump the
explorer-shell.css cache key.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet changed the title fix(explorer): stage canvas stays blank on about half of page loads fix(explorer): blank stage on half of page loads; phone fullscreen button over Zoom out Nov 24, 2026
@ruvnet
ruvnet merged commit 4cdb5ed into main Nov 24, 2026
47 of 51 checks passed
@ruvnet
ruvnet deleted the explorer/improve-2026-11-24 branch November 24, 2026 15:32
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.

1 participant