Repository navigation
test(storybook): the Popover Anchor Ref story's edit buttons sit above the table - #13060
Merged
Merged
Conversation
…e the table The popover in the story opens below a value cell. Since it gained a "Delete value B" button it covers the edit buttons of the rows below, so PopoverAnchor.interaction.browser.spec.ts could not click "Edit row C" while it was open. The edit buttons now sit in a bar above the table, where the open popover never covers them. The spec is unchanged.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report🔎 Preview ·
|
Contributor
There was a problem hiding this comment.
Approved pending CI: CI is still running on this head.
The story change unblocks the popover-anchor interaction proof without touching the spec or its assertions: on the base branch the open popover covers "Edit row C" and the first proof times out, while on this head the proof passes every run. There is nothing to change.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Claim: main fails the first proof because its press on "Edit row C" lands on the open popover — verified: on the base the spec times out at line 58, with the popover intercepting the click.
- Claim: the popover grew when an earlier change added a "Delete value B" button, to 92 px on the phone profile — verified: that commit adds the button to the story, and the base popover measures y 80–172.
- Claim: it opens below row A's value cell and covers the edit buttons of rows B and C — verified: a hit test at each button's centre returns the popover on the base.
- Claim: the three edit buttons move to a bar above the table, and each still sets the anchor ref to its row's value cell and calls
show()— verified: story lines 49–62. - Claim: the spec, its assertions, the value cells, the remove/restore button and the popover content are unchanged — verified: the story is the only changed file, and its diff touches only the header, the new bar and the removed button cell.
- Claim: the measured boxes in the description (popover x 16–265, y 80–172 on main and y 104–196 here; "Edit row C" x 200–301, y 136–168 covered on main and x 250–350, y 32–64 clear here) — verified: the same numbers measured on both trees.
- Claim: main gives 1 failed and 2 passed, this change 30 passed with 10 repeats — verified: both runs reproduced.
- Claim: the quick preflight checks pass — verified for this change: ESLint and Prettier are clean, the type check reports no error in the story, the pre-review report has no finding, and the knowledge and changeset checks pass.
- Claim: story-only, so no changeset — verified: no package file changes.
- Claim: one primary intent, with nothing separable mixed in — verified: the bar and the matching header line are the whole diff.
- File:
apps/storybook/stories/PopoverAnchorRef.stories.tsx— clear.
cixzhang
marked this pull request as ready for review
November 20, 2026 05:45
cixzhang
requested review from
imdreamrunner and
josephfarina
as code owners
November 20, 2026 05:45
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintainer impact
Main is red:
PopoverAnchor.interaction.browser.spec.ts› "the popover sits on the cell the ref holds, and moves on the next show()" times out in Chromium. Its click on "Edit row C" lands on the open popover. Since #11121 the popover inPopoverAnchorRef.stories.tsxalso holds a "Delete value B" button, so it is taller (92 px on the phone profile). It opens below row A's value cell and now covers the edit buttons of rows B and C, which sat in the column next to the cells.Intended invariant
The story is the fixture for
PopoverAnchor.interaction.browser.spec.ts: oneusePopoverpopover moves between three table rows throughanchorRef. A button that moves the popover must stay pressable while the popover is open.Change
apps/storybook/stories/PopoverAnchorRef.stories.tsx: the three edit buttons move from a column in each row to a bar above the table. The popover opens below a value cell, so it never covers a button that moves it. Each button still setsanchorRefto its row's value cell and callsshow().Evidence
Chromium, phone profile (402 × 714), the spec's own harness, on a Storybook built at each commit:
PopoverAnchor.interaction.browser.spec.ts--repeat-each=10)Scope
Components: storybook (Popover Anchor Ref story)
Testing
pnpm storybook:build, thenpnpm test:interaction --project=chromium --repeat-each=10 PopoverAnchor.interaction.browser.spec.ts: 30 passed. Before this change: 1 failed, 2 passed.pnpm preflight --quick: review:pre, typecheck, lint, knowledge and changesets pass.