Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 7c3ab72 |
There was a problem hiding this comment.
Changes requested: the owner-approved direction for windowed long option lists stands, but the Selector record needs four short edits before it merges.
- End does not open the list: PR4's opening anchor and the first-frame verification row name an open by End, but a closed Selector opens only on ArrowDown, ArrowUp, Enter, Space or a press, and in a search list Home and End move the caret and typing filters, so drop End from the anchor and scope Home, End and typeahead reach to lists without search.
- The grid popup has no position rule: PR4 exposes the full-list position only through
aria-setsizeandaria-posinseton options, but underspec:AST-058FR2, FR3 and AR1 a Selector whose options carry anactionrenders a grid of rows with no options, so add the grid form (aria-rowcounton the grid,aria-rowindexon each rendered row) and a grid state in the verification row. - Screen-reader browse and swipe reach is unnamed: windowing makes reaching unrendered options by virtual cursor or touch swipe depend on the screen reader, so name that outcome in PR4 with its nearest browser evidence and add an evidence-gap row, as
spec:AST-009FR5, FR8 and FR19 ask. - DEC-3 carries a work item: "re-measure after the row memo lands" ties the record to one pending implementation change, against
architecture:knowledge-contractsINV10, so delete it or state a durable bound.
The inline comments mark each line.
[Automated review]
…d-open # Conflicts: # docs/specs/components/Selector/Selector.spec.md
… names AT-dependent reach
…ot a PR4 requirement
There was a problem hiding this comment.
Approval waits on an engineering owner's decision. This head adds component:Selector PR4 and DEC-3, and the earlier /approve-spec names an older commit, so it no longer counts.
To move forward:
- An engineering owner records the decision by commenting
/approve-spec <full head SHA>on this pull request once the record is ready; the author may do so, as an engineering owner. spec:AST-058is already current: PR4's accessibility paragraph (lines 237–240) and the grid verification row (line 415) say the grid popup waits for AST-058 to become current, but that record is current, so state the grid rule directly and give the row's gap as "the grid popup is not built".- Miss: One anchor gives two anchors for a keyboard open with a value: ArrowUp or ArrowDown on a closed Selector with a value matches both a list-end anchor and the selected-option anchor (lines 226–230), and a search list is told to open on the selected row where today it opens with no option active, so anchor on the option the open makes active and add those two states to the first-frame row.
The four earlier inline findings are fixed at this head.
[Automated review]
…d-open # Conflicts: # docs/specs/components/Selector/Selector.spec.md
PR5 names the shared engine, the scroll-area rule, the per-open anchor, pixel overscan and exact or estimated item size; gap lines name PR4 and PR5; the build-status line is gone. PR4 and DEC-3 are unchanged.
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision: this head adds component:Selector PR5 beside PR4 and DEC-3, and the earlier /approve-spec names an older commit, so it no longer counts. An engineering owner records the decision by commenting /approve-spec <full head SHA> once the record is ready; the author may do so, as an engineering owner.
These edits are needed either way:
spec:AST-058is already current: PR4's grid sentence (lines 242–245) and the grid verification row (line 444) say the grid popup waits for AST-058 to become current, so state the grid rule directly and give the row's gap as "the grid popup is not built".- PR5 cites list-windowing facts that record does not state:
architecture:list-windowingnames no module path ("The module itself has no path yet") and has no scroll-area claim, so name the module as the one its INV1 owns, droppackages/core/src/virtualization/from PR5 and its verification row (lines 254–260 and 446), and keep the scroll-area rule as Selector's own claim. - The PR4 and PR5 verification rows contradict: the PR4 row (line 437) fails a list of more than 40 that renders every option, while the PR5 row (line 445) requires exactly that when every option fits, so make PR4's failure "a list of more than 40 that scrolls renders every option".
- Restore the perf test: the brace wrap in
apps/sandbox/perf/scenes.perf.spec.ts(lines 70–72) came from the merge's lint autofix and turns this records-only pull request into a mixed one that runs full CI, so restoremain's line.
[Automated review]
…list-windowing states; PR4 and PR5 rows agree AST-058 is current, so PR4 states the grid popup's aria-rowcount and aria-rowindex directly and the grid row's gap is that the grid popup is not built. PR5 names the windowing module as the one list-windowing INV1 owns, without a path that record does not state, and keeps the scroll-area rule as Selector's own claim. PR4's row fails only a scrolling list of more than 40 that renders every option, so it no longer contradicts PR5's row.
A lint autofix in an earlier merge wrapped this loop in braces. Restoring main's line keeps this pull request records-only. Committed without hooks, because the same autofix would wrap it again; the content is main's.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on component:Selector PR4, PR5 and DEC-3, whose only /approve-spec names an older commit, and one record edit is needed either way; the edits requested earlier are all made.
- Regression: PR5 contradicts
architecture:list-windowing: PR5's estimated item size with measured rows and its per-side pixel overscan (lines 256–263, and the text-size row at line 439) describe module behavior that the current list-windowing record states otherwise ("On the block axis, all rows share one pitch", "a few rows past each edge"), so keep them as Selector outcomes (no clipped or overlapping rows at any text size, a scroll range within 1 px of the rendered rows, fully covered frames) and leave row sizing and overscan to list-windowing, or amend that record first.
Next, merge main (the verification map conflicts with its new FR10 and required-search rows, and the merge commit voids an approval of this head), then an engineering owner, the author included, comments /approve-spec <full head SHA> on the new head. A smaller note: the grid row's "the grid popup is not built" (line 436) is build status under the records rule, so "(evidence gap)" alone fits.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: windowing above 40 options is recorded as PR4 and DEC-3 — verified (Selector.spec.md lines 227–250 and 459–469).
- Claim: PR5 routes the listbox through the shared windowing module and adds no prop — verified (lines 251 and 264–265).
- Claim: PR5 uses the vocabulary the other virtualizers share — false: the list-windowing record gives the block axis one row pitch, and Table's row virtualization uses fixed-height rows with four overscan rows per side.
- Claim: the list-windowing record names no path for the module — outdated: the current record names the module's folder; PR5 naming none is still correct delegation.
- Claim: no decision is open — false at this head: the spec owner approval is pending.
- Claim: an owner decision in the list-windowing record covers trying the engine on Selector — not in the current record, which holds one decision.
- Claim: the release class is a patch fix under the compatibility policy — verified (lines 83–89 against its compatibility clauses).
- Claim: the latest commits add PR5, the frontmatter entry, two gap lines and three PR5 rows, remove the PR4 build-status line, and keep PR4 and DEC-3 otherwise word for word — verified.
- Claim: earlier commits added six PR4 verification rows — incomplete: the head has eight, adding the screen-reader browse and swipe row and the grid popup row.
- Claim: no build-status or sequencing line remains — false: line 436 says the grid popup is not built.
- Claim: the record keeps no pull request or issue references — verified.
- Claim: the knowledge check reports records aligned — verified at this head.
- Claim: main was merged with the verification-table conflict resolved — true for the earlier merge; the branch conflicts with main again.
- Claim: the freeze and blank-frame measurements — the author's evidence, not reproduced; they live in the description, not the record.
- File: docs/specs/components/Selector/Selector.spec.md — one blocking finding (PR5 item size and overscan) and three non-blocking notes: grid row build status, One anchor precedence, and Miss: a bare FR19 at line 250 that should name
spec:AST-009.
No verified source shows the owner deciding this decision yet. The decider is named, with its source, when the owner approves this specification.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on component:Selector PR4, PR5 and DEC-3, which have no /approve-spec at this head, and one record edit is needed either way.
- Regression: PR5 contradicts
architecture:list-windowing: PR5's estimated item size with measured rows and its per-side pixel overscan (lines 256–263, and the text-size row at line 439) describe module behavior that the current list-windowing record states otherwise ("On the block axis, all rows share one pitch", "a few rows past each edge"), so keep them as Selector outcomes (no clipped or overlapping rows at any text size, a scroll range within 1 px of the rendered rows, fully covered frames) and leave row sizing and overscan to list-windowing, or amend that record first.
Next, merge main (the verification map conflicts with its new FR10 and required-with-search rows, and the merge commit voids an approval of this head), make the PR5 edit, and then an engineering owner, the author included, comments /approve-spec <full head SHA> on the new head. Smaller notes: the grid row's "the grid popup is not built" (line 436) is build status, so "(evidence gap)" alone fits; PR4's One anchor should list the selected option first, as PR5 and FR8 do (see the inline note, which corrects an earlier suggestion there); and the bare "(FR19)" at line 250 should read spec:AST-009 FR19.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: windowing above 40 options is recorded as PR4 and DEC-3 — verified (Selector.spec.md lines 227–250 and 459–469).
- Claim: PR5 routes the listbox through the shared windowing module and adds no prop — verified (lines 251 and 264–265).
- Claim: PR5 uses the vocabulary the other virtualizers share — false: the list-windowing record gives the block axis one row pitch, and Table's row virtualization mounts four overscan rows per side.
- Claim: the list-windowing record names no path for the module — outdated: the current record names the module's folder; PR5 naming none is still correct delegation.
- Claim: no decision is open — false: the spec owner approval is pending at this head, and DEC-3's decider reads "pending owner confirmation".
- Claim: an owner decision in the list-windowing record covers trying the engine on Selector — not in the current record, which holds one decision; the proposal is an open pull request.
- Claim: the open record pull request that adds PR3 and DEC-2 is unmerged, so this one uses PR4 and DEC-3 — verified.
- Claim: no current Selector claim governs how many options render — verified.
- Claim: the release class is a patch fix under the compatibility policy — verified (lines 83–89 against its compatibility clauses).
- Claim: the scroll-area rule cites the list-windowing record by name — partly: PR5 states it as Selector's own rule with no citation (line 252), which needs none.
- Claim: the latest commits add PR5, the frontmatter entry, two gap lines and three PR5 rows, remove the PR4 build-status line, and keep PR4 and DEC-3 otherwise word for word — verified; DEC-3's decider line is now a placeholder.
- Claim: earlier commits added six PR4 verification rows — incomplete: the head has eight, adding the screen-reader browse and swipe row and the grid popup row.
- Claim: no build-status or sequencing line remains — false: line 436 says the grid popup is not built, a phrase the status-phrase list names.
- Claim: the record keeps no pull request or issue references — verified.
- Claim: the knowledge check reports records aligned — verified at this head.
- Claim: Prettier and the whitespace check are clean — verified.
- Claim: main was merged with the verification-table conflict resolved — true for the earlier merge; the branch conflicts with main again.
- Claim: the bottom sheet's fixed open cost is a separate gap no requirement governs — verified (lines 127–130).
- Claim: real Safari flings and a real screen reader's count are still owed — verified as evidence-gap rows (lines 432, 434 and 435).
- Claim: the other writing-rubric results (present tense, no research beyond DEC-3's two-sentence conclusion, no rejected alternatives or open questions in the record) — verified.
- Claim: the pull request contains specification records only — verified: its net diff changes one record.
- Claim: the specs lookup over the diff was reviewed — a process step, not checkable from the pull request.
- Claim: the freeze and blank-frame measurements — the author's evidence, not reproduced; they live in the description, not the record.
- File: docs/specs/components/Selector/Selector.spec.md — one blocking finding (PR5 item size and overscan) and three non-blocking notes: grid row build status, One anchor order, and the bare FR19 at line 250.
Keeps main's FR10 and required-search AR1 verification rows and adds the PR4 and PR5 rows. PR5 now states Selector's outcomes at any text size and leaves row pitch and the rows past each edge to architecture:list-windowing, which it no longer contradicts. PR4's anchor lists the selected option first, as FR8 does; the screen-reader evidence cites spec:AST-009 FR19; the grid row reads as an evidence gap.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on component:Selector PR4, PR5 and DEC-3, which still have no /approve-spec for this commit, and two edits are needed either way.
- PR5 and mixed-height lists: PR5 requires that no option row clips or overlaps and that the scroll range stays within 1 px of the rendered rows (line 254) while leaving row pitch to
architecture:list-windowing, whose block axis gives all rows one pitch, so a long list with section headings, dividers, stacked descriptions orrenderOptioncontent conforms only if every row takes the tallest row's height; state which lists window (for example only lists whose rows share one height, rendering every option otherwise, with a mixed-height state in the PR5 text-size row) or amend the list-windowing record first. - Miss: Description decision state: the description says no decision is open, cites a list-windowing DEC-5 and says that record names no module path, but DEC-3's decider reads "pending owner confirmation", owner approval is pending, and the current list-windowing record holds only DEC-1 and names
packages/core/src/virtualization/, so those lines need updating.
Both points still apply against the current main, and the branch merges cleanly with it. After both edits, an engineering owner records the decision by commenting /approve-spec <full head SHA> on the new commit; the author may do so as an engineering owner.
Claims and files checked
Review mode: same-head; reason: none
- Claim: windowing above 40 options is recorded as PR4 and DEC-3 — verified (lines 228–248 and 451–461).
- Claim: PR5 routes the listbox through the shared windowing module and adds no prop — verified (lines 249 and 255).
- Claim: PR5 no longer states row sizing or overscan and keeps them as Selector outcomes — verified (line 254); the outcome does not fit mixed-height lists (finding above).
- Claim: PR4's anchor lists the selected option first, as the opening-highlight rule does — verified (line 233).
- Claim: the screen-reader evidence cites the assistive-technology evidence spec's lower-layer rule in full — verified (line 248).
- Claim: the grid row reads as an evidence gap — verified (line 428).
- Claim: the merge keeps main's opening-highlight, query-highlight, highlight-follows-value and required-with-search rows beside the new rows — verified (lines 413 and 417–431); the branch merges cleanly with the current main.
- Claim: no decision is open — false: owner approval is pending and DEC-3's decider is a placeholder (finding above).
- Claim: an owner decision in the list-windowing record covers trying the engine on Selector — false: the current record holds one decision (finding above).
- Claim: the list-windowing record names no path for the module — false: it names the virtualization folder (finding above); PR5 naming none is still right.
- Claim: PR5 cites the list-windowing record by name for the scroll-area rule — outdated: PR5 states it as Selector's own rule (line 250), which needs no citation.
- Claim: the open proposals for the windowing engine's home and for container and page scroll are unmerged — verified: both are still open drafts.
- Claim: the open record pull request that adds PR3 and DEC-2 is unmerged, so this one uses PR4 and DEC-3 — verified: it is still open.
- Claim: no current Selector claim governs how many options render — verified.
- Claim: the release class is a patch fix under the compatibility policy — verified (lines 83–89).
- Claim: the bottom sheet's fixed open cost is a separate gap no requirement governs — verified (lines 127–130).
- Claim: real Safari flings and a real screen reader's count are still owed — verified as evidence-gap rows (lines 424, 426 and 427).
- Claim: earlier commits added six PR4 verification rows — incomplete: the head has eight PR4 rows.
- Claim: the three PR5 rows include text-size checks with an exact size — outdated: the row lists 200% text, a minimum font size and a late web font (line 431).
- Claim: no build-status or sequencing line remains — verified: the knowledge check flags none in this record.
- Claim: the knowledge check reports records aligned — verified.
- Claim: Prettier and the whitespace check are clean — verified.
- Claim: the other writing-rubric results (present tense, research kept to DEC-3's conclusion, no rejected alternatives, references or open questions added to the record) — verified.
- Claim: the pull request contains specification records only — verified: its diff changes one record.
- Claim: the specs lookup over the diff was reviewed — a process step, not checkable from the pull request.
- Claim: the freeze and blank-frame measurements — the author's evidence, not reproduced; they live in the description, not the record.
- File: docs/specs/components/Selector/Selector.spec.md — one blocking finding (PR5 and mixed-height lists).
- Description — one blocking finding (decision state).
| - **Anchor at each open.** Each open sets one anchor before the first paint: | ||
| the selected option for an open with a value, the last option for an open | ||
| by ArrowUp, and the first option otherwise (PR4). | ||
| - **Rows at any text size.** At any text size, no option row clips or overlaps its neighbour, the scroll range is within 1 px of the rendered rows, and every painted frame shows the scrollport fully covered by option rows (PR4). Row pitch and the rows rendered past each edge are the module's (`architecture:list-windowing`). |
There was a problem hiding this comment.
This leaves row pitch to architecture:list-windowing, whose block axis says "all rows share one pitch", but a Selector list can mix row heights today: section headings, dividers, options with a stacked description, and renderOption content (AV2). With PR4 windowing every scrolling list above 40 options, such a list meets "no option row clips or overlaps" and the 1 px scroll range only if every row takes the tallest row's height. Suggest stating which lists window (for example only lists whose rows share one height, with every option rendered otherwise) and adding a mixed-height state to the PR5 text-size row (line 431), or amending list-windowing's block-axis model first. This corrects the earlier suggestion on PR5, which did not account for mixed-height rows.
Maintainer impact
A person who opens a Selector with a long option list gets a responsive page sooner, and fast scrolling never shows empty rows. Today every option renders on open, so the open freezes the page longer as the list grows. Measured on first open (production build, popover, Chromium with a 4× CPU slowdown, median of 5), the longest freeze for a full render is:
This is the governing spec for trying the shared windowing engine on Selector. PR5 says Selector's listbox windows through the shared windowing module that
architecture:list-windowingINV1 owns. The record names no path for that module, so PR5 names none; #10809 proposes the engine's home.Exact decision needed
None open. The owner decided how a long option list opens (DEC-3) and that the shared engine is tried on Selector (
architecture:list-windowingDEC-5, #10809).Existing authority searched
component:SelectorFR2 (selected row aligned over the trigger), FR6, FR7, PR2, AR3, and the verification map. No claim governs how many options render.spec:AST-009FR8 (AT-dependent claims name lower-layer evidence) andspec:AST-020FR1 (WCAG 2.2 baseline) for the listbox position exposure.spec:AST-017FR1, FR3, FR5, FR7 for the release class.architecture:list-windowingINV1 (one windowing module in Core) and INV3 (consumers keep their public shapes). docs(windowing): the shared engine's home is packages/core/src/virtualization #10809 adds FR5 (the engine lives inpackages/core/src/virtualization/); docs(windowing): every virtualizer works in container and page scroll; Table windows inside its own scroll area #10796 adds the container and page scroll and size-budget claims. The scroll-area contract (window only when the list scrolls; render every item when they fit) is being added to the same record; PR5 cites the record by name until that claim has a number.component:SelectorFR8 (which option is highlighted on opening) onmain; PR5's anchor matches PR4's per-open rule.Decision
The owner, on 2026-11-02: long option lists open windowed, rendering only the options visible on open, anchored at the top for a plain open, the bottom for ArrowUp or End, or around the selected value, with one anchor computation that sets both the rendered rows and the initial scroll position before the first paint. Windowing applies only above a threshold (below it every option renders, as today), and fast scrolling must never show blank or flashing rows. Both row theming targets stay unchanged.
Recorded as
component:SelectorPR4 and DEC-3, unchanged.PR5 — The listbox windows through the shared engine. Selector's listbox windows through the shared windowing module that
architecture:list-windowingINV1 owns and keeps no windowing code of its own. Through it:architecture:list-windowing's.Release class: patch
[fix]. Undocumented markup is not a released contract (spec:AST-017FR3); documented selection, keyboard, accessibility, and form behavior stays the same, so no caller must change source (FR1); a victim-free correction is[fix]with a patch bump (FR5, FR7).Rejected alternatives
Claim scope and non-goals
architecture:list-windowing).Evidence and implementation relationship
main, Selector renders every option on open; the record names that as PR4 and PR5 gaps.Changed records
component:Selector: new PR5 (numbered after the open PR3 and this PR's PR4; shared engine, scroll area, anchor, outcomes at any text size),architecture:list-windowingin its architecture list, gap lines for PR4 and PR5, and three PR5 verification rows (fit versus scroll; import review; text-size checks with an exact size). The build-status line under PR4 is removed. PR4 and DEC-3 are otherwise word for word.architecture:list-windowingowns (one row pitch, a few rows past each edge), and keeps them as Selector outcomes; PR4's anchor lists the selected option first, as FR8 does; the screen-reader evidence citesspec:AST-009FR19; the grid row reads as an evidence gap; main's FR10 and required-search AR1 rows are kept.Writing rubric results
Scope
Validation
main; the verification-table conflict keepsmain's FR2, FR8 and FR9 rows and the PR4 rows.pnpm check:knowledge: "Knowledge templates and records are aligned."pnpm specs:for --diff origin/main: reviewed.git diff --check: clean