Skip to content

Drop the restore-geometry probe now that the grid is seeded upstream - #481

Merged
nbenn merged 1 commit into
mainfrom
476-drop-probe
Sep 26, 2026
Merged

nbenn merged 1 commit into
mainfrom
476-drop-probe

Conversation

@nbenn

@nbenn nbenn commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The instrumentation added in Report the geometry a restore starts from #474 answered what it was built for: Seed the grid from the container before restoring a layout cynkra/dockViewR#116 traced the ground-down rail to fromJSON laying the shell out from a grid the ResizeObserver had not yet seeded, and fixed it there. Nothing reads the probe now, so it comes out whole.
  • Removes inst/assets/js/restore-probe.js, the five helpers in R/utils-dock.R with their call in restore_layout(), the conditional dependency in board_ui(), the observer in manage_dock(), and the four tests that covered them.
  • The tag-list length asserted in test-board-ui.R drops from 15 to 14, since board_ui() counted the probe's slot even when it was empty.
  • The viewport probe is a separate, pre-existing thing and stays.

Fixes #476

The instrumentation added in #474 answered the question it was built
for: cynkra/dockViewR#116 traced the ground-down rail to `fromJSON`
laying the shell out from a grid the ResizeObserver had not yet seeded,
and fixed it there. Nothing reads the probe now, so it comes out whole.

The viewport probe is a separate, pre-existing thing feeding the
narrow-viewport decision, and stays. One assertion moves with the
removal: `board_ui()` counted the probe's slot even when empty, so the
tag-list length drops from 15 to 14.
@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
R/board-server.R 86.13% <ø> (-0.79%) ⬇️
R/board-ui.R 100.00% <ø> (ø)
R/utils-dock.R 90.18% <ø> (-1.04%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nbenn
nbenn marked this pull request as ready for review September 26, 2026 06:54
@nbenn
nbenn added this pull request to the merge queue Sep 26, 2026
Merged via the queue into main with commit d389603 Sep 26, 2026
10 checks passed
@nbenn
nbenn deleted the 476-drop-probe branch September 26, 2026 07:16
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.

Drop the restore-geometry probe now that the grid is seeded upstream

1 participant