Skip to content

Inline visualization loading causes a timeline layout jump #1837

Closed

Description

@brsbl

Summary

An inline visualization initially renders a compact loading state, then replaces it with a full-height iframe. Because the loader does not reserve the requested preview height, the thread timeline shifts after navigation and moves surrounding content.

Implementation: PR #1555

Versions and environment

  • Present on main before a191295c7ee2def9cc9e75baabf10f77dac07508
  • Surface: built-in inline-vis plugin in the thread timeline
  • Applies when the iframe height exceeds the compact loader

Steps to reproduce

  1. Add an ::inline-vis{file="demo.html"} directive with a nontrivial preview height.
  2. Navigate to or reload the thread while the preview route is cold enough to show loading.
  3. Watch the loader transition to the iframe.

Expected vs actual

Expected: the loading state reserves final preview geometry, so surrounding content remains stationary.

Actual: the compact loader is replaced by the full preview and changes the timeline layout after loading.

Evidence

  • The implementation reserves the requested height and renders all skeleton regions immediately in the loading branch.
  • The iframe uses the same height in the loaded branch.
  • Focused structure, reserved-height, and shimmer-only regressions: PR #1555.

What you ruled out

  • Not iframe content reflow: the outer jump comes from different loader and preview heights.
  • Not a staged entrance-animation request: the intended animation is paint-only shimmer with stable geometry.
  • No exact open or closed issue matched inline-vis jitter, preview height, the PR URL, or the originating thread.

Suggested priority and effort

Medium priority, low effort: visible on every cold load of an affected visualization; isolated to loading markup and regression coverage.

Originating implementation thread: thr_g3y2kuichb

AGENT GENERATED: by GPT-5.6-Sol

Activity

  1. added
    bug
    ui
    plugins
    on Aug 18, 2026
  2. added theissue type on Aug 18, 2026
  3. added
    inline-vis
    on Aug 18, 2026
  4. SawyerHood commented on Aug 20, 2026

    @SawyerHood
    Collaborator

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1837.html

    • Verdict: REPRODUCED · root-cause confidence: high
    • Root cause (short): plugins/inline-vis/app.tsx loading branch renders a heightless one-line box while awaiting the prepareHtmlPreview RPC, then swaps in a header + fixed-height iframe (measured 37px -> 515px), so the bottom-anchored timeline scrolls content above it out of view on every mount.
    • Linked PR review: Stabilize inline visualization loading skeleton #1555 → REQUEST CHANGES — Height reservation is correct and removes the jump (verified 515px -> 515px in the live app, tests/typecheck pass), but the advertised shimmer is dead on current main: the skeleton grid is aria-hidden and theme.css (Snap timeline height tweens and trim paint work on phones (C2, F1, D9, C10, F2, E2) #1880, after the PR's base) pauses .animate-shine-icon under [aria-hidden="true"] (c
    • Proposed fix: In plugins/inline-vis/app.tsx, render the same card chrome in the loading branch (shared header row with a size-5 spacer where the open-in-sidebar button goes) plus a div with style.height = previewHeight ?? DEFAULT_HEIGHT_PX, role="status", aria-label, containing a plain from @bb/shared-ui/skeleton; extract the header into a small shared wrapper so loading and ready geometry cannot drift. Optionally keep the error state in the same fixed-height card.
    • Caveats: Loading state was frozen for measurement by intercepting the prepareHtmlPreview request in headless Chrome; without interception the jump is identical but lasts only as long as the RPC round-trip. PR Stabilize inline visualization loading skeleton #1555 was evaluated by applying its diff onto c7c6642 (applies cleanly) rather than at its own 241-commit-old base. The assistant message was produced by a real claude-code turn in an isolated dev i…

    The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at the base commit, and repro artifacts. It was independently re-run by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Opus 5

  5. added
    confirmed-repro
    on Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmed-reproinline-vispluginsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions