Skip to content

Fix Plugin Guide annotation layout - #2901

Merged
brsbl merged 8 commits into
mainfrom
bb/fix-plugin-guide-annotations-thr_pqa3x7rwny
Sep 2, 2026
Merged

brsbl merged 8 commits into
mainfrom
bb/fix-plugin-guide-annotations-thr_pqa3x7rwny

Conversation

@brsbl

@brsbl brsbl commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Plugin Guide had several annotation layout problems:

  • An annotation at the app-window edge could be clipped.
  • Command Palette annotation 1 sat over the result it described.
  • App-window badges 1 and 2 overlapped at compact widths.
  • Annotation 1 captured annotation 2's target, and annotation 2's inline bounds spilled into annotation 4.
  • Annotation 6 covered the thread-header plugin control.

The first-page numbers also followed insertion order instead of the diagram's spatial reading order.

This PR adds no annotations. The merge base already contains the same 14 app-window surfaces after #2802.

What changed

  • Renumbered the app-window annotations by column: columns left-to-right, then top-to-bottom within each column.
  • Let edge annotations render outside the app-window frame without clipping.
  • Moved Command Palette annotation 1 flush against the palette's left side.
  • Gave annotation 2 block-level bounds and explicit ownership above its intentionally nested parent overlay.
  • Anchored annotation 1's exterior badge to the top of its region so it stays separate from annotation 2 at compact widths.
  • Moved annotation 6 into the measured space above its control.
  • Added focused tests and one compact maintenance checklist for spatial order, badge collisions, overlay bounds, and pointer ownership; annotation-only work now routes through that checklist.

Before and after

App-window annotations — 1440×900

Before — insertion order After — spatial order and corrected placement
Before: app-window annotations follow insertion order After: app-window annotations follow column-major reading order without collisions

Command Palette annotation — 1200×800

Before — annotation covers the result After — annotation sits beside the palette
Before: Command Palette annotation 1 overlaps its annotated result After: Command Palette annotation 1 sits outside the content flush to the left edge

Sidebar annotations 1 and 2 — 1200×800

Before — badges overlap After — badges and targets are separated
Before: app-window annotations 1 and 2 overlap After: app-window annotations 1 and 2 are separated

Thread-header annotation 6 — 1200×800

Before — badge covers the control After — badge sits above the control
Before: annotation 6 covers the thread-header control After: annotation 6 sits above the thread-header control

How you verified

  • Tested the exact PR branch in the branch web app with Chrome for Testing 151.0.7922.71.
  • Checked the app-window fixture at 1440×900 and 1200×800 after initial load, hard reload, and client navigation away and back.
  • Confirmed badges 1 and 2 have no rendered intersection at either viewport.
  • Confirmed annotation 2 owns every sampled point in its visible target and has no intersection with annotation 4.
  • Confirmed annotation 6 has no intersection with its thread-header control.
  • Focused the changed target and external badge through the real UI; no console errors occurred.
  • Built and reloaded the real plugin-api-docs plugin bundle used for QA.
  • Evaluated the annotation-only match and internal-refactor near miss in fresh read-only threads.
  • git diff --check and GitHub CI pass on the current head.

Fixes: no linked issue.

BB-Thread-ID: thr_pqa3x7rwny

AGENT GENERATED

@brsbl
brsbl merged commit 6185c34 into main Sep 2, 2026
15 checks passed
@brsbl
brsbl deleted the bb/fix-plugin-guide-annotations-thr_pqa3x7rwny branch September 2, 2026 14:31
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