Skip to content

feat(Tour): Tour moves from Lab to Core with steps as data and an app-owned active step (AST-119) - #12891

Draft
nynexman4464 wants to merge 1 commit into
mainfrom
nynexman4464/feat/tour-core
Draft

nynexman4464 wants to merge 1 commit into
mainfrom
nynexman4464/feat/tour-core

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Based on main. Implements spec:AST-119. The file list and the sizes below are against main.

User need

A product tour introduces a feature one step at a time. The Lab Tour could not make a step conditional, could not be driven by the app, showed nothing useful when a step's control was missing, and had English-only controls. Apps that hide a control behind a flag, resume a tour, or continue it on another page had no way to say so.

Problem and solution fit

Tour moves from Lab to Core with the contract of spec:AST-119:

  • Steps are data. steps is an array of {id, title, body, anchorRef, placement, alignment, showAction}. A step left out of the array does not exist: the count, Back and Next follow the array. When the active step leaves the array, the step after it becomes active, or the tour ends as 'complete'.
  • The app owns the active step. activeId names it and null stops the tour. Back, Next and a skipped step report through onActiveIdChange; every end reports its reason through onEnd: 'complete', 'skip', 'close', 'escape' or 'backdrop'.
  • One callout. The callout is one usePopover surface that stays open for the whole tour and takes each step's anchorRef (spec:AST-116 FR3). Each step mounts its element again, so the callout enters the top layer after everything that opened before the step, and its controls take their place in the Tab order after that step's anchor. A step with no anchor shows in the center of the viewport.
  • Steps inside other layers. A step whose anchor is inside an open modal dialog or a shown popover renders inside that layer, in its focus region when it has one. Its callout paints above the layer, anchors to the control in it, and can be used by pointer and by keyboard. A step with no anchor that starts while a modal Dialog, Drawer or BottomSheet is open renders in it; under a Lightbox, a MobileNav or an app's own <dialog> it renders on the page. A modal that opens during a step whose anchor is on the page leaves the callout where it is. A step's showAction can open the layer first.
  • A missing anchor is the app's call. missingAnchorBehavior is 'center' (default), 'skipStep' (in the direction of travel) or 'endTour'. Each step that starts without its anchor is reported once through onMissingAnchor. A step's showAction runs first, and the step waits for its promise. Until it settles, the callout of the step before it is not painted, reports aria-busy, keeps the focus it has, and ignores Back, Next and Done; its close control, Skip and Escape still end the tour (FR9 gap:). Tour sets no timer.
  • Scroll. An anchor out of view scrolls into view when its step shows, at once under reduced motion. hasScrollIntoView={false} leaves it to the app.
  • Highlight. A ring marks the anchor. It is placed with CSS anchor positioning on the same anchor name the callout uses, so no script moves it; script reads only the anchor's corner radius, after each render. With hasBackdrop the ring's shadow dims the rest of the page. In a browser without CSS anchor positioning there is no ring, and a backdrop dims the whole page (FR13 gap:).
  • Modality. Without a backdrop a step is a usePopover popover with tabBehavior: 'pageOrder': Tab leaves the callout in page order, the anchor stays usable, and Escape ends the tour only while focus is in the callout or on or inside the anchor. The callout's controls come after the step's anchor in the Tab order when the anchor takes focus. A tooltip on the anchor does not disturb that order. Two cases do (spec:AST-116 FR12 gap:): in WebKit the first Tab after a pointer press on the anchor skips the callout's controls, and after a layer that the anchor itself opens has closed (a menu, a hover card), Tab from the anchor skips them. With hasBackdrop a step is modal: Tab stays in the callout, Escape ends the tour from anywhere, and a press on the dimmed page ends it as 'backdrop'.
  • Focus. When a step shows, focus moves to its heading if focus was in the previous callout, on the previous anchor or on the page body; focus the person placed elsewhere stays, and the step is announced politely. A dialog that a step's showAction opens takes focus as it opens; focus that was on the tour before then goes on to the step's heading inside the dialog. A step with a backdrop always takes focus. When the tour ends with focus in the callout or on the body, focus goes to the step's anchor when the anchor takes focus, else through the shared return of spec:AST-116.
  • Words. Titles and bodies are the app's. Back, Next, Done, Skip, the close control and the count are catalog messages; nextLabel, doneLabel and skipLabel reword three of them for one tour.

Current specification

spec:AST-119, current on main. Record changes this PR makes to it and to the records beside it:

  • Owner decision: the Lab Tour is removed. spec:AST-119's Current-state impact said the Lab Tour keeps <TourStep> children. A component's record allows one owning package, and the Component Lifecycle makes graduation a move, so the line now says the Lab Tour is removed and steps replaces <TourStep> children.
  • spec:AST-119: path applicability is packages/core/src/Tour/**. The gap lines that described the Lab Tour are gone. Four gap lines state what Core does not meet: FR9 gap: (while a step prepares, the callout before it is not painted but stays in the accessibility tree with focus, and can still end the tour), FR10 gap: (an anchor that leaves with no render, and a host layer removed with no event), FR13 gap: (no ring without CSS anchor positioning, and no ring or dimming while a panel clips a backdrop step's anchor) and FR16 gap: (focus on the body at the end, with an anchor that cannot take focus). Platform support names Chromium and WebKit as the browser evidence, which is what exists. DEC-5 no longer says the Lab Tour names hasBackdrop.
  • Owner decision: two sentences in spec:AST-119 FR6. A step whose anchor is inside an open modal dialog or a shown popover shows its callout above that layer, where it can be used; a step with no anchor that starts while a modal Dialog, Drawer or BottomSheet is open shows above it.
  • Owner decision: two sentences added to spec:AST-116's FR12 gap: line. They say that a 'pageOrder' popover that moves to another anchor while open keeps its place in the focus order after the anchor it opened on, and that in WebKit the first Tab after a pointer press on the anchor moves on in DOM order. The browser sets a popover's place in the order when it shows. Tour mounts its callout again for each step, so the first sentence does not apply across steps; its browser tests show the order for two steps. It does apply to a step that starts with no anchor and takes its anchor at a later render (FR14 gap:). Both sentences were measured on this head in Chromium and WebKit: the second in the Default story, the first with a temporary story that is not in this PR.
  • Owner decision: a new theme attribute. The overlay and the ring carry data-backdrop="backdrop" while the tour has a backdrop, and component:Tour names it (architecture:public-component-api DEC-2), with the three theme targets.
  • Owner decision: a new FR14 gap: line in spec:AST-119. The callout's controls do not follow the anchor in the Tab order in the cases that spec:AST-116's FR12 gap: names. After a layer that the anchor opens has closed, they stay out of the order until the next step shows. A step that starts with no anchor on the page, and takes its anchor at a later render, keeps its place in DOM order. The last case was measured on this head in Chromium and WebKit with a script, not in the suite.
  • Owner decisions, in one list, for an engineering owner's /approve-spec at this head: the Lab Tour removed with no codemod; FR6's two sentences; the FR9, FR10, FR13, FR14 and FR16 gap lines in spec:AST-119; Chromium and WebKit, without Firefox, as its browser evidence, and the Platform support sentence for Firefox and a clipped anchor; the two sentences added to spec:AST-116's FR12 gap: line; in component:Tour, the data-backdrop attribute, the theme targets tour, tour-highlight and tour-overlay, and the concept rows: the new Steps, Active step, Anchor and Missing anchor rows, and the Backdrop row, whose stability changes from experimental to stable.
  • component:Tour: verified by the Core tests; Compatibility and Ownership lines name activeId, onActiveIdChange, onEnd and FR6–FR17; Public concepts gains Steps, Active step, Anchor and Missing anchor; AR1 points to FR14; the verification rows name the Core tests.
  • family:overlay-dismissal: the member is component:Tour, its row replaces the Lab TourStep row, and its FR2 gap: line for the Lab Tour's Escape is removed.
  • architecture:react-component-runtime and spec:AST-038 each named the Lab Tour once; the first drops the clause and the second names Tour.

Public delta and caller burden

  • New in @astryxdesign/core, also as the entry point @astryxdesign/core/Tour: Tour, and the types TourProps, TourStep, TourEndReason, TourMissingAnchorBehavior. TourProps takes the standard element props (ref, xstyle, className, style, data-*).
  • @astryxdesign/cli ships a showcase and one example block for Tour; the changeset names both packages.
  • Removed from @astryxdesign/lab (canary-only, no stability promise): Tour, TourStep, useTour and their types. Tour.doc.mjs carries a before/after example and the changeset names each renamed prop. There is no codemod: <TourStep> children become objects, and isActive becomes an id the app must choose.
  • hasBackdrop is set before the tour starts; a change while a step shows is not supported, as usePopover's tabBehavior is not.
  • Theme targets: astryx-tour (the callout surface, beside astryx-popover), astryx-tour-highlight and astryx-tour-overlay; the last two carry data-backdrop="backdrop" with a backdrop. The probe theme is regenerated for them.
  • The callout surface is Tour's element: ref, className, xstyle, style and data-* all land on the dialog.
  • Catalog: six new messages, @astryx.tour.back, .next, .done, .skip, .close and .stepCount, in locales/en.json. Other locales fall back to English until they are translated.
  • Generated or listed files that follow the move: the docs route lock, the RTL audit targets, the swizzle samples, the Sandbox's static route list (two new template routes), and one name in score-ledger.test.mjs. motionAudit.ts is an older generated snapshot and is left as it is. The CLI's official-package list is derived from the repository, so it drops the Lab Tour with no edit.
  • Internal, in shared code: usePopoverInternal takes surfaceProps and surfaceRef, so a component can make the popover surface its own root, and reads the anchor for the popover's place in the focus order from the caller's ref when the layer element shows. useLayer's in-view observer follows a trigger or anchor that is replaced while the layer is open; before, it stayed on the detached element, so the layer was held or released for an element nobody sees (spec:AST-059 FR5, spec:AST-116 FR3). useLayer.test.tsx has a case for it that fails on main. usePopoverInternal's return gains isFocusInScope, which the public usePopover does not return. A focus region's entry in the shared registry now follows a container that mounts again while the region is active, and focusRegionAround names the region around an element (Dialog, BottomSheet, Lightbox, MobileNav and the focus trap use the registry).
  • Not changed: the public API of every other component. One behavior changes for every anchored layer: the in-view watch moves to a trigger or anchor that is replaced while the layer is open.

Design and alternatives

  • One usePopover instance for the tour, not one per step: modality, Escape, focus return and the anchor read are one code path, and a step change is a new anchor and a show(). The callout's element mounts again for each step because the browser sets a popover's top-layer order and its place in the focus order only when it shows.
  • A step with no anchor is the same popover anchored to Tour's own overlay with custom positioning (zero insets and automatic margins), so modality, Escape and focus are one code path.
  • The tour renders through a portal into its host. The layer runtime already shows a layer element that mounts again while open, and restarts its outside-press watch.
  • Tour owns Escape through the shared dismissal stack and turns the popover's own dismissals off, so every end goes through onEnd and the app stays in control.
  • Rejected: measuring the anchor from script for the ring (architecture:layer-runtime INV21); a timed wait for a missing anchor (spec:AST-119 DEC-3).

Evidence

  • Tour.test.tsx, 47 tests (jsdom):
    • steps and count; Next, Back, Done, close, Skip and the label props;
    • a step the app sets from its own handler and from an anchor's click; a tour whose app declines a move and an end keeps its step;
    • an active step that leaves the array: the step after it, the next one still in the array when earlier steps leave too, no move back to an earlier step, and the last step;
    • an unknown activeId and a duplicate id, each with its warning;
    • a press on the backdrop ends the tour and reaches no click or pointer-down handler on a React ancestor of Tour;
    • a missing anchor: centered by default with its report and warning, and the anchor taken when a later render finds it; 'skipStep' after Next, after Back, on a step the app sets and on a promoted step, at the last step and past the first; 'endTour';
    • a pending showAction (no step shows, the dialog is busy, no focus moves, a second Next moves no step, and focus the person moved meanwhile stays), Done pressed while an earlier step prepares after Back (it ends no tour), and a rejected showAction;
    • Escape without a backdrop from elsewhere (nothing), from the anchor and from inside the callout; with a backdrop from a control outside the callout;
    • the backdrop's aria-modal and press; a press on the overlay without a backdrop;
    • focus at a step change moves to the heading from the callout, the previous anchor and the page body (the body case also asserts that nothing is announced); focus elsewhere stays, and the step's title is in one polite live region, without the title's aria-hidden text; a step is announced again when the tour starts again at it; a backdrop always takes focus;
    • the end with focus in the callout, on the body and elsewhere, and at an anchor that cannot take focus;
    • scrollIntoView called for each step, and not with hasScrollIntoView={false};
    • catalog words under an override, Done included; the ring and its aria-hidden overlay;
    • ref, className, style and a data-* attribute on the dialog surface; data-backdrop on the overlay and the ring;
    • under React StrictMode: a step prepares once, a missing anchor is reported once, and a skip moves one step;
    • a step with no anchor that starts while a modal dialog is open renders inside the dialog, takes focus to its heading after the dialog took it, and leaves the dialog when it closes; a step whose anchor is on the page stays where it is when a modal dialog opens. jsdom has no modal dialog, so the anchor-in-a-layer case is in the browser tests only.
  • Tour.interaction.browser.spec.ts, 24 tests, Chromium and WebKit:
    • the callout sits below the anchor and the ring surrounds it with its gap, for two steps; the ring surrounds the anchor in a right-to-left subtree of the page;
    • without a backdrop a press on the anchor reaches it, Escape does nothing from elsewhere and ends the tour from the anchor;
    • Tab leaves a callout without a backdrop and stays in one with a backdrop; for two steps, Tab from the step's anchor enters the callout, and Tab from the callout's last control goes to the control after that anchor;
    • a tooltip on the first step's anchor shows on keyboard focus and hides when focus enters the callout; Shift+Tab returns to the anchor, and Tab enters the callout again. This test fails when a tooltip names its trigger as the popover invoker;
    • a press on the dimmed anchor ends a backdrop tour and does not reach the anchor; with a backdrop, focus is on the heading of each step and stays there;
    • a step with no anchor, and one whose anchor is missing, show centered with no ring; the step after a centered step follows its own anchor in view;
    • an anchor out of view in a scrolling panel, and one far down the page, scroll into view; under reduced motion the second is in view in the same frame;
    • an anchor that leaves: without a backdrop the callout shows no surface, focus leaves it, and it returns with the anchor; with a backdrop it shows centered, stays modal and returns;
    • a callout whose anchor scrolls out of its panel is not painted, and is painted again when the anchor returns, with and without a backdrop;
    • a step that prepares: the callout is not painted and reports busy, focus stays on Next, and the step then shows with focus on its heading; Done pressed while an earlier step prepares after Back ends no tour;
    • a step inside a modal dialog and a step inside a modal popover, each opened by showAction: the callout is painted over the layer, sits beside the control in it, and its own controls work; for the step in the dialog, focus that Next held is on the new step's heading. Without a backdrop the control in the dialog still works, Tab from the control in each layer enters the callout, and Tab from the callout's last control goes to the layer's own next control (the dialog's close control; the popover's control). With a backdrop, Tab stays in the callout inside the dialog;
    • at a 320-pixel viewport the callout and every control in it stay inside the page with no horizontal scroll, for three steps with long text;
    • long titles, bodies and labels wrap inside a callout no wider than 320 pixels;
    • focus returns to the anchor when the tour ends from the callout;
    • a step started from the keyboard, with focus left on the page control, has its title in one polite live region;
    • the ring is an outline under forced colors, and every control in the callout is at least 24 by 24.
  • Accessibility audit: the repository's axe pass over the Open and Scoped Theme stories, which start on a step: no violation. .github/a11y-audit-axe.json names the Open story for Tour.
  • Existing tests that change with the move: the own-content announcement module's adopters test gains Tour; the host data-* conformance test gains a Tour fixture (the attribute lands on the callout's dialog element); the docsite's element-resolution test and one name in score-ledger.test.mjs use another component in place of the Lab TourStep.
  • Firefox, which the interaction config does not run: Tour.interaction.browser.spec.ts run by hand on this branch with Playwright's Firefox passes 22 of 24. The two that fail are the clipped-anchor tests: Firefox keeps painting a callout whose anchor a scrolling panel clips. spec:AST-119's Platform support says so.
  • Not covered: a screen reader (the announcement is asserted as text in a polite live region); a step inside a Drawer, a BottomSheet or a menu (a modal dialog and a modal Popover are tested); a host layer that closes while its step still shows, in a browser, and a host popover that closes with no render of the component that renders Tour, in any test; the first Tab after a pointer press on the anchor in WebKit, and a step whose anchor opens its own layer, such as a menu button (both in spec:AST-116 FR12 gap:; each was measured with a script or a temporary story, not in the suite); a browser without CSS anchor positioning (FR13 gap:). A touch pointer is driven by the capture script (taps start the tour and move a step at a 320-pixel viewport), not by the test suite.

Screenshots

42 frames from the built Storybook at b731ef604d, in the evidence folder: Neutral and Stone in light and dark at 900 by 520 (first, middle and last step, keyboard focus, backdrop, centered, long text); a custom theme; right-to-left; steps inside a dialog and a popover; a 320-pixel viewport with a coarse pointer in light and dark; and forced colors. receipts.json holds one receipt for each frame: the build, the story, the theme and color mode the page reports, direction, viewport, pointer, the dialog's name and modal state, the callout and ring boxes, font and animation state, and capture errors. Every receipt passes. capture.mjs is the script.

First step, Neutral light Backdrop, Neutral dark
First step in Neutral light Backdrop step in Neutral dark
Last step, Stone light Centered step, Stone dark
Last step in Stone light Centered step in Stone dark
Step inside a modal dialog, with a backdrop Step inside a popover
Backdrop step inside a modal dialog Step inside a popover
Long text, Neutral dark Right-to-left
Long text in Neutral dark Right-to-left
320 pixels, coarse pointer 320 pixels, backdrop, dark Custom theme Forced colors
Long text at a 320-pixel viewport Backdrop at a 320-pixel viewport in dark Custom violet theme Forced colors

Accessibility checklist

Pattern: Dialog (Modal) for a step with a backdrop; the same dialog without aria-modal and without a focus trap for a step without one.

  • Name. The callout is a dialog named by its title and described by its body, and by its count with hasStepCount. Back, Next, Done, Skip and the close control have names.
  • Role. role="dialog", with aria-modal="true" only with a backdrop.
  • State. No state is carried by color alone. The count is text. While a step prepares, the callout before it reports aria-busy, and Back, Next and Done report aria-disabled.
  • Keyboard. Tab and Shift+Tab stay in a modal step. Without a backdrop they move through the page and the callout in one order, with the callout's controls after the step's anchor (spec:AST-116 FR12 gap: names the exceptions: WebKit after a pointer press on the anchor, and a layer that the anchor opens). Escape ends a modal step's tour from anywhere, and a step's tour without a backdrop only while focus is in the callout or on or inside the anchor. No arrow keys.
  • Focus. A modal step holds focus through usePopover's trap. Focus returns to the anchor or through the shared chain at the end. Focus stays in the callout while a step prepares (FR9 gap:). FR16 gap: names the one case that can leave focus on the body. The focus ring on the heading and the controls is the shared one; screenshots show it in two themes.
  • Announcements. A step that shows while focus stays elsewhere is announced through the shared own-content announcement module (useAnnounceRenderedText, architecture:react-component-runtime INV10). It reads the title as rendered and leaves out aria-hidden and hidden text.
  • Reduced motion. The scroll into view is instant under prefers-reduced-motion. The ring has no animation. The callout's entrance is the layer's own.
  • Contrast and themes. Measured from the rendered colors in Chromium, in Neutral and Stone, light and dark:
    • the ring against the gap around the anchor and against the page: 13.4:1 to 17.2:1 (needs 3:1). The ring is meaningful: it is the only mark of which control a step describes;
    • title and body against the callout surface: 11.7:1 to 21:1; the count, in secondary text: 5.8:1 to 9.3:1 (each needs 4.5:1);
    • control labels and the close glyph against their own backgrounds: 11.7:1 to 21:1;
    • the dimming of a backdrop is decorative: the ring and the modal step carry the meaning without it.
  • Forced colors. The ring is an outline in Highlight; the callout surface has the popover's border.
  • i18n. Every word Tour supplies is a catalog message.
  • Target size. Every control in the callout is at least 24 by 24 (browser test).

Scope

Components: Tour (Core, new), Tour and TourStep (Lab, removed)

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --project ui packages/lab and, in packages/core/src, Tour Popover Layer hooks Tooltip Dialog DropdownMenu utils __tests__/hostDataAttributes.test.tsx: 5,807 tests; 5,805 passed. Two, in packages/lab/src/MediaPlayer (MediaPlayer.test.tsx and MediaMarkerPopover.test.tsx, files this PR does not change), failed in that parallel run and pass when the two files run alone (53 passed)
  • pnpm exec vitest run --project node --changed=<merge base> --no-file-parallelism (the Node tests the change reaches): 162 passed in 15 files. The CLI search goldens and resolution-compat.test.mjs: 82 passed
  • tsc --noEmit (Core and Storybook), strict ESLint on the changed files, pnpm check:knowledge, pnpm check:changesets: clean
  • pnpm test:interaction Tour.interaction.browser.spec.ts: Chromium 24 passed; WebKit 24 passed (Playwright's container image). The popover and layer interaction specs beside it (PopoverTabBehavior, PopoverAnchor, LayerFocusReturn, PopoverFocusReturn, LayerSamePress): 27 passed in Chromium; 26 passed and one skipped by the spec in WebKit
  • node .github/scripts/accessibility-audit.js --stories core-tour--open,core-tour--scoped-theme --ready-selector '[role="dialog"]': 0 violations
  • Local run of the CI jobs lint and typecheck: pass
  • The preview deployment's build was run locally at an earlier head of this branch, with the preview environment set (the root build, the Storybook and Sandbox static builds, and the docsite build): pass. It is not rerun at this head

Changes since the last review

  • New at this head: the step announcement goes through the shared useAnnounceRenderedText (architecture:react-component-runtime INV10), and Tour no longer reads the title or announces in an Effect of its own. Each step start is one occasion, so a step is announced again when the tour starts again at it (a new unit test, which fails when the occasion is the step id). Tour is in the module's adopters test. A new browser test asserts the announcement in Chromium and WebKit.
  • Also earlier: the branch is rebased onto main again, and the CLI's search golden for icon set is regenerated on main's new count (one more match than main, the Tour doc).
  • Also earlier: the step announcement leaves out aria-hidden text in a title, as the callout's accessible name does. The announcement's unit test has such a title.
  • Earlier on this rebuilt branch: the branch is rebased onto main, where the CLI's official-package list is no longer a committed file; this PR's edits to that file and to its test are gone with them.
  • Also earlier: spec:AST-119's Platform support says what Firefox does while a scrolling panel clips a step's anchor, and one comment in Tour.tsx is shorter.
  • Also earlier: a press on the backdrop no longer reaches click or pointer handlers on React ancestors of Tour (the overlay now has the layer click boundary; a jsdom test covers it); spec:AST-119 gains an FR14 gap: line; the doc states the two Tab-order limits, what a late anchor does, and that a prepared step hides the callout before it; useLayer.test.tsx gains the replaced-trigger case; two Effects in Tour.tsx name what they synchronize; a branch that never ran is gone from one browser test; and the Sandbox's static route list names the two new template routes, without which the preview deployment's Sandbox build failed its route check. The bullets below the next three are from earlier heads.
  • Rebuilt on main. A step without a backdrop is a usePopover popover with tabBehavior: 'pageOrder'; the earlier head set isModal: false for that. The browser test that failed on the earlier head, "a step after a centered step follows its own anchor in view", passes.
  • New: the Anchor With Tooltip story and its browser test.
  • The doc's keywords drop the bare word step, which changed what astryx component step resolves to (two resolution-compat cases). The CLI's search golden for icon set counts one more match, the Tour doc.
  • The showcase and the Backdrop example block start idle. "Take the tour" starts each one, so the docs page that renders them live opens no tour on load.
  • A step whose anchor is inside a modal dialog or a popover renders inside that layer, so its callout is above the layer and usable by pointer and keyboard. spec:AST-119 FR6 says so, and its FR6 gap: line is gone.
  • A step that prepares keeps the focus it has: the callout before it is not painted, reports aria-busy and ignores Back, Next and Done. FR9 gap: is narrower and says what remains.
  • Each step mounts the callout again, so its controls follow that step's anchor in the Tab order. Focus that the tour held goes to the heading of a step inside a dialog that the step's showAction opened.
  • The callout surface is the dialog, so ref, className, xstyle, style and data-* land on one element. The inner wrapper is gone.
  • The ring's corner radius is the anchor's plus the ring's gap. In a right-to-left subtree of a left-to-right page the ring sat one anchor width to the side; it now surrounds the anchor. The layer's in-view observer follows each step's anchor. Long control labels wrap in the callout's footer.
  • A step under React StrictMode prepares once.
  • New stories: Open, Long Text, Narrow Container, Prepared Step, Missing Anchor Ends Tour, Inside Layers (with and without a backdrop) and Scoped Theme. The doc gains anatomy, accessibility rows and keyboard guidance.
  • Records: two sentences in spec:AST-119 FR6, two sentences in spec:AST-116's FR12 gap: line, and component:Tour names the data-backdrop theme attribute.

Writing rubric results

The record changes are: in spec:AST-119, path applicability, two sentences in FR6, the Platform support evidence line, DEC-5's text, gap lines, verification rows and Current-state impact bullets; in component:Tour, concept rows, Compatibility lines, AR1, the Ownership boundary, the data-backdrop paragraph and verification rows; in spec:AST-116, two sentences in a gap line; in family:overlay-dismissal, the member, its row and a removed gap line; and one sentence each in architecture:react-component-runtime and spec:AST-038.

  • R1 narration: none in the changed lines.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives: none added.
  • R5 pull request or issue references: none.
  • R6 ruled open questions still listing options: none.
  • R7 project status: only gap lines, each stating an observable mismatch.

First-load size (INV10)

pnpm size:pages --page popover=Popover,Button,Text, this PR's change in gzip bytes against main:

docs form menu table popover
+46 +69 +152 +106 +141

Every page pays, because the code is always-on in three shared modules that this PR changes: Layer/useLayer.tsx, Popover/usePopover.tsx and hooks/useFocusTrap.ts. This is the shared-module growth INV10 asks to report; each page is under its limit. A page that renders Tour, Button and Text loads 78,976 B gzip.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 22, 2026 5:21pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 22, 2026, 5:35 PM UTC

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on engineering-owner spec decisions across this stack, and #12891 also has one blocking fix. The three pull requests below it are unchanged since the last stack review.

#12891 (Tour to Core): waiting on an engineering owner's decision, with one blocking finding. Approval needs an engineering owner to approve or amend, at this head, the Tour contract this pull request carries:

  • the new AST-119 record (FR1–FR17, DEC-1–DEC-6);
  • the Amended lines that make a backdrop step modal, in component:Tour DEC-1 and spec:AST-116 DEC-5;
  • the new component:Tour and family:overlay-dismissal rows;
  • the tour, tour-highlight and tour-overlay theme targets;
  • removing the Lab Tour with no codemod.

An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

  • TourShowcase.tsx and TourBackdrop.tsx start their tours on mount, so the Tour docs page, which renders both blocks live, opens two tours on load and the backdrop one dims the page and takes focus; start both at null so "Take the tour" starts them.

#11117 (usePopover anchorRef): waiting on an engineering owner's decision; no blocking finding. Unchanged: the FR6 sentence about a show() while the ref holds no element still needs approval.

#11121 (shared layer focus return): waiting on an engineering owner's decision; no blocking finding. Unchanged: two points still need approval. One is whether the public useFocusTrap and a removed scrim Drawer run the FR17–FR21 chain. The other is FR20's extra stand-in step.

#11156 (isModal): waiting on an engineering owner's decision; no blocking finding. Unchanged: four points still need approval. They are FR22's new sentences, the family:overlay-dismissal FR3 gap: line, the dropped Firefox evidence line, and PowerSearch closing its filter popover when focus moves into the field.

Whole stack: passes; nothing blocks across the four pull requests. A pull request in this stack lands only when it and every pull request below it are approved.

Claims and files checked

Review mode: full; reason: no-earlier-review

Claims (#12891 description and release note):

  • Steps are an array; a step left out does not exist, and the count, Back and Next follow the array: verified (unit tests on the count and on Back and Next).
  • When the active step leaves the array, the next surviving step becomes active, or the tour ends as complete: verified (three promotion tests).
  • The app owns the active step through activeId; Back, Next and a skip report through onActiveIdChange, and every end reports its reason through onEnd: verified (control tests; Tour.tsx:807-821).
  • One popover callout moves between anchors, and a step with no anchor shows centered: verified (Tour.tsx:474-508, 932-946; this review's frames).
  • missingAnchorBehavior centers, skips in the direction of travel, or ends; each missing anchor is reported once; showAction is awaited; no timer: verified (anchor tests; Tour.tsx:570-662).
  • An out-of-view anchor scrolls into view, at once under reduced motion, and hasScrollIntoView={false} turns it off: verified for the call and the option (unit test); the reduced-motion path checked in code.
  • The ring uses CSS anchor positioning with no script positioning, script reads only the corner radius, and a backdrop dims through the ring's shadow, with no ring without anchor positioning: verified in code (Tour.tsx:186-228, 669-688).
  • Without a backdrop a step is non-modal and Escape works only from the callout or the anchor; with a backdrop it is modal, a press outside ends it, and Escape works from anywhere: verified (modality and Escape tests).
  • Focus moves to the heading from the callout, the previous anchor or the body, and otherwise stays with a polite announcement; it returns to the anchor at the end: verified (focus tests; this review's backdrop frame).
  • Back, Next, Done, Skip, close and the count are catalog messages, and three label props reword three of them: verified (en.json; catalog tests).
  • The standard element props reach the callout's dialog element: verified (host data-attribute fixture passes).
  • Lab Tour, TourStep, useTour and their types are removed, and the release note maps each renamed prop: verified against the base Lab props.
  • The CLI ships a showcase and an example block and no longer lists the Lab Tour: verified (official package list, route lock).
  • Three theme targets are added and the probe theme is regenerated: targets verified; regeneration not rerun.
  • The Tour unit file has 38 tests and the browser spec 13 in two engines: verified, 38 of 38 pass here; the browser count is verified, not run here.
  • The record changes listed (path applicability, five gap lines, verification rows, family member, two name-only edits): verified.
  • The Lab removal is an owner decision: not verified, no decision is recorded; it rides on the spec approval.
  • The five reference pages are byte-identical, and the first-load deltas are +0: reported, not reproduced.

Files (#12891; #11117, #11121 and #11156 carried, their lists are on those pull requests):

  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx, TourBackdrop.tsx: blocking (they start on mount)
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs, TourBackdrop.doc.mjs: clear
  • docs/specs/AST-119-tour/spec.md, docs/specs/components/Tour/Tour.spec.md, docs/families/overlay-dismissal.md, docs/specs/AST-116-popover-anchoring/spec.md: wait on the owner decision
  • docs/specs/AST-038-layer-text-boundary/spec.md, docs/architecture/react-component-runtime.md: clear (name only)
  • packages/core/src/Tour/Tour.tsx: clear; its contract waits on the owner decision
  • packages/core/src/Tour/Tour.doc.mjs, Tour.test.tsx, __tests__/Tour.interaction.browser.spec.ts, index.ts: clear
  • packages/core/src/index.ts, packages/core/package.json, packages/core/locales/en.json, packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts, internal/shadcn-registry/routes.lock.json, packages/cli/assets/discover/official-packages.json: clear (generated)
  • apps/storybook/stories/Tour.stories.tsx, apps/storybook/rtl-audit/targets.json, .github/playwright-leg-durations.json: clear
  • packages/cli/test/swizzle-proof/samples.mjs, packages/cli/foundation/discovery/component-discovery.export-names.test.mjs, scripts/check-cli-official-packages.test.mjs, scripts/score-ledger.test.mjs, apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • .changeset/tour-core.md: clear
  • packages/lab/src/Tour/* (8 files deleted), packages/lab/src/index.ts: clear

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on engineering-owner spec decisions across this stack; the earlier blocking finding on #12891 is fixed. The three pull requests below it are unchanged since the last stack review.

#12891 (Tour to Core): waiting on an engineering owner's decision; no blocking finding. Approval needs an engineering owner to approve or amend, at this head, the Tour contract this pull request carries:

  • the new AST-119 record (FR1–FR17, DEC-1–DEC-6);
  • the Amended lines that make a backdrop step modal, in component:Tour DEC-1 and spec:AST-116 DEC-5;
  • the new component:Tour and family:overlay-dismissal rows;
  • the tour, tour-highlight and tour-overlay theme targets;
  • removing the Lab Tour with no codemod.

An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The Tour showcase and backdrop blocks now start idle, so the docs page no longer opens tours on load.

#11117 (usePopover anchorRef): waiting on an engineering owner's decision; no blocking finding. Unchanged: the FR6 sentence about a show() while the ref holds no element still needs approval.

#11121 (shared layer focus return): waiting on an engineering owner's decision; no blocking finding. Unchanged: whether the public useFocusTrap and a removed scrim Drawer run the FR17–FR21 chain, and FR20's extra stand-in step, still need approval.

#11156 (isModal): waiting on an engineering owner's decision; no blocking finding. Unchanged: FR22's new sentences, the family:overlay-dismissal FR3 gap: line, the dropped Firefox evidence line, and PowerSearch closing its filter popover when focus moves into the field still need approval.

Whole stack: passes; nothing blocks across the four pull requests. A pull request in this stack lands only when it and every pull request below it are approved.

Claims and files checked

Review mode: full; reason: history

Claims (#12891 description and release note):

  • Steps are an array; a step left out does not exist, and the count, Back and Next follow the array: verified (unit tests on the count and on Back and Next).
  • When the active step leaves the array, the next surviving step becomes active, or the tour ends as complete: verified (promotion tests).
  • The app owns the active step; Back, Next and a skip report the new step, and every end reports its reason: verified (control tests; Tour.tsx:807-821).
  • One popover callout moves between anchors, and a step with no anchor shows centered: verified (Tour.tsx:474-508, 932-946; browser spec; this review's frames).
  • The missing-anchor option centers, skips in the direction of travel, or ends; each missing anchor is reported once; a step's preparation is awaited; no timer: verified (anchor tests; Tour.tsx:570-662).
  • An out-of-view anchor scrolls into view, at once under reduced motion, and the option turns it off: verified for the call and the option (unit test); the reduced-motion path in code and in the browser spec.
  • The ring uses CSS anchor positioning with no script positioning, script reads only the corner radius, and a backdrop dims through the ring's shadow, with no ring without anchor positioning: verified in code (Tour.tsx:186-228, 669-688).
  • Without a backdrop a step is non-modal and Escape works only from the callout or the anchor; with a backdrop it is modal, a press outside ends it, and Escape works from anywhere: verified (modality and Escape tests; this review's frames show Tab staying in a backdrop callout).
  • Focus moves to the heading from the callout, the previous anchor or the body, and otherwise stays with a polite announcement; it returns to the anchor at the end: verified (focus tests; this review's frames).
  • Back, Next, Done, Skip, close and the count are catalog messages, and three label props reword three of them: verified (en.json; catalog test).
  • Standard element props reach the callout's dialog element: verified (host data-attribute fixture passes).
  • The Lab Tour, its step component, its hook and their types are removed, and the release note maps each renamed prop: verified against the base Lab props.
  • The CLI ships a showcase and an example block and no longer lists the Lab Tour: verified (the official package list and the route lock regenerate identically).
  • Three theme targets are added and the probe theme is regenerated: verified (probe-theme check is current).
  • The Tour unit file has 38 tests and the browser spec 13 in two engines: 38 of 38 pass here; the browser count is verified, not run here.
  • The showcase and the backdrop block start idle: verified (both start at null; rendered on mount, no callout opens).
  • The record changes listed (path applicability, five gap lines, verification rows, family member, two name-only edits): verified.
  • The Lab removal is an owner decision: not verified, no decision is recorded; it rides on the spec approval.
  • The reference pages are unchanged and the first-load deltas are +0: reported, not reproduced.

Files (#12891; #11117, #11121 and #11156 carried, their lists are on those pull requests):

  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx, TourBackdrop.tsx, and their docs: clear (the earlier blocking finding is fixed)
  • docs/specs/AST-119-tour/spec.md, docs/specs/components/Tour/Tour.spec.md, docs/families/overlay-dismissal.md, docs/specs/AST-116-popover-anchoring/spec.md: wait on the owner decision
  • docs/specs/AST-038-layer-text-boundary/spec.md, docs/architecture/react-component-runtime.md: clear (name only)
  • packages/core/src/Tour/Tour.tsx: clear; its contract waits on the owner decision (one non-blocking comment suggestion)
  • packages/core/src/Tour/Tour.doc.mjs, Tour.test.tsx, __tests__/Tour.interaction.browser.spec.ts, index.ts: clear
  • packages/core/src/index.ts, packages/core/package.json, packages/core/locales/en.json, packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/themes/probe/src/probeTheme.ts, internal/shadcn-registry/routes.lock.json, packages/cli/assets/discover/official-packages.json: clear (generated)
  • apps/storybook/stories/Tour.stories.tsx, apps/storybook/rtl-audit/targets.json, .github/playwright-leg-durations.json: clear
  • packages/cli/test/swizzle-proof/samples.mjs, packages/cli/foundation/discovery/component-discovery.export-names.test.mjs, scripts/check-cli-official-packages.test.mjs, scripts/score-ledger.test.mjs, apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • .changeset/tour-core.md: clear
  • packages/lab/src/Tour/* (8 files deleted), packages/lab/src/index.ts: clear

Automated review (maintainer link)

Comment thread packages/core/src/Tour/Tour.tsx Resolved

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of #12891 waits on an engineering owner's decision on what it adds beyond the now-current AST-119 spec, and the stack needs a rebase onto main. #11117 is approved pending CI.

#12891 (Tour to Core): waiting on an engineering owner's decision, with two blocking findings.

  • Regression: since the AST-119 spec landed on main, this pull request conflicts with main in docs/specs/AST-119-tour/spec.md and docs/families/overlay-dismissal.md, so rebase it, keep main's AST-119 text plus only this pull request's own edits, and update the description that still calls AST-119 proposed.
  • data-backdrop (Tour.tsx lines 1097–1099 and 1110–1112) is a new public theme attribute that no current record names, as architecture:public-component-api DEC-2 requires, so either an owner approves the component:Tour paragraph that names it or the attribute goes.

An engineering owner still has to approve or amend, at the rebased head, what this pull request changes beyond main: FR6's two new sentences for steps inside dialogs and popovers, the FR9, FR10, FR13 and FR16 gap lines, dropping Firefox from the browser evidence, removing the Lab Tour with no codemod, the component:Tour data-backdrop paragraph with the tour, tour-highlight and tour-overlay theme targets, and the new spec:AST-116 FR12 gap: line. An owner also rules whether the shared useLayer change, where every anchored layer's in-view watch follows a trigger replaced while open, is a fix under spec:AST-059 FR5 or a desktop behaviour change.

#11117 (usePopover anchorRef): approved pending CI. An engineering owner approved its spec at its head, no blocking finding remains, and CI has not run on that head yet.

#11121 (shared layer focus return): waiting on an engineering owner's decision, with one blocking finding.

  • Regression: since the AST-119 spec landed on main, this pull request conflicts with main in docs/families/overlay-dismissal.md, where its FR9 gap: line meets main's new FR2 gap: line, so rebase it onto main.

#11156 (isModal): waiting on an engineering owner's decision, with one blocking finding.

  • Regression: since the AST-119 spec landed on main, this pull request conflicts with main in docs/families/overlay-dismissal.md, where its FR3 gap: rewrite meets main's new FR2 gap: line, so rebase it onto main.

Whole stack: nothing blocks between the four pull requests. A pull request in this stack lands only when it and every pull request below it are approved, and an engineering owner records each decision by commenting /approve-spec <full head SHA> on that pull request.

Claims and files checked

Review mode: same-head; reason: none

Claims (#11117 description and release note, at its head):

  • usePopover takes an optional anchorRef to any element with a CSS box, and no new type is exported: verified (usePopover.tsx options; popoverAnchor.ts).
  • The anchor gets no ARIA and no handler and is never a trigger, while the trigger keeps its toggle and ARIA: verified ("anchors to a non-button element while the trigger keeps its role").
  • A shape or nested svg inside an svg warns once in development, and an outer svg or one in foreignObject does not: verified (popoverAnchor.ts:214-229; warning test).
  • The ref is read on open, on each render and on each show(), and nothing watches the page: verified (the layout Effect after every commit and bindAnchor in show(); "does not watch the page").
  • With light dismiss off, setting the ref and calling show() moves an open popover without a close or remount: verified (unit test; the browser test is the author's).
  • With light dismiss on, the press on another control closes the popover first and show() reopens it: matches the recorded FR9 gap; no test covers it, as the description says.
  • A show() while the ref holds no element waits, and opens when a later read finds one: verified (four waiting tests; the FR6 sentence an owner approved).
  • A composition with an anchor and no trigger opens through show() and reports dismissals through onHide: verified (unit test).
  • An open popover whose anchor is gone shows no surface: verified (styles.unanchored; two tests).
  • Without anchorRef the trigger anchors exactly as before, and Popover is unchanged: verified (the trigger path is unchanged when no anchor is passed; Popover.tsx is untouched).
  • 19 unit tests and 2 browser tests: 19 counted and passing here; the 2 browser tests counted, not run here.
  • The first-load growth stays within the allowance for an unused option: reported (menu +271 B, popover +247 B), not reproduced.

Claims (#12891), rechecked at this head:

  • It implements the Tour spec "proposed" in another pull request and carries its records: false now, because that spec is on main, and this pull request's copy conflicts with it.
  • The other description and release-note claims are unchanged since the last review at this head, and their checks still hold.

Files:

  • #11117 (10/10): release note, story, spec:AST-116, component:Popover, useLayer.tsx, PopoverAnchor.test.tsx, its browser spec, popoverAnchor.ts, usePopover.doc.mjs, usePopover.tsx: clear.
  • #12891 (44/44): unchanged since the last review at this head. Tour.tsx has the data-backdrop finding; docs/specs/AST-119-tour/spec.md and docs/families/overlay-dismissal.md conflict with main; the other records wait on the owner decision; the rest are clear.
  • #11121 and #11156: carried. docs/families/overlay-dismissal.md in each conflicts with main.

Automated review (maintainer link)

onClick={hasBackdrop ? () => onEnd('backdrop') : undefined}
{...mergeProps(
themeProps('tour-overlay', {
backdrop: hasBackdrop ? 'backdrop' : null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: this adds data-backdrop="backdrop" to the tour-overlay target (and line 1111 to tour-highlight), which is new public surface: themes can select on it as soon as it ships. architecture:public-component-api DEC-2 needs a current record that names it and says why, and only this pull request's own component:Tour paragraph does. An engineering owner approving that paragraph at this head settles it; otherwise drop the visual prop until a record names it:

themeProps('tour-overlay'),

Comment thread packages/core/src/Tour/Tour.tsx Resolved
Comment thread packages/core/src/Tour/Tour.tsx Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of #12891 waits on an engineering owner's decision on what it adds beyond the current AST-119 spec, and on one fix. #11117 and #11121 are approved pending CI.

#12891 (Tour to Core): waiting on an engineering owner's decision, with one blocking finding.

  • data-backdrop (Tour.tsx lines 1097–1099 and 1110–1112) is a new public theme attribute that no current record names, as architecture:public-component-api DEC-2 requires, so either an engineering owner approves the component:Tour paragraph that names it or the attribute goes.

An engineering owner still has to approve or amend, at this head, what this pull request changes beyond main: FR6's two new sentences for steps inside dialogs and popovers, the FR9, FR10, FR13 and FR16 gap lines, dropping Firefox from the browser evidence, removing the Lab Tour with no codemod, the component:Tour data-backdrop paragraph with the tour, tour-highlight and tour-overlay theme targets, and the new spec:AST-116 FR12 gap: line. An owner also rules whether the shared useLayer change, where every anchored layer's in-view watch follows a trigger replaced while open, is a fix under spec:AST-059 FR5 or a desktop behaviour change. The rebase fixed the earlier conflicts with main.

#11121 (shared layer focus return): approved pending CI. An engineering owner approved its spec at its head and no blocking finding remains. CI has not run on that head yet.

#11117 (usePopover anchorRef): approved pending CI. It is unchanged since the last review.

#11156 (isModal): waiting on an engineering owner's decision; no blocking finding. At its new head, an engineering owner has to approve four things: its spec:AST-116 FR22 sentences, the family:overlay-dismissal FR3 gap: line, dropping Firefox from the evidence line, and PowerSearch closing its filter popover when focus moves back into the field.

Whole stack: nothing blocks between the four pull requests, and each merges cleanly into main. A pull request in this stack lands only when it and every pull request below it are approved. An engineering owner records each decision by commenting /approve-spec <full head SHA> on that pull request, and the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: rebase

Claims (#11121 description and release note, at its head):

  • Popover, DropdownMenu in its popover presentation, and Dialog move focus at close only when the close would strand it: verified (stranded check in the shared focus return; layer focus-return tests).
  • Focus that used to fall to the page body follows the stated order: opener, trigger, the control that names the layer, the component's own stand-in, anchor, former place, nearest ancestor, parent layer, then the main region: verified (the chain's candidate order; tests).
  • A DropdownMenu no longer focuses its trigger when focus never entered the menu: verified (the menu's own refocus is gone; test).
  • The focus-trap hook returns focus the same way, and a Drawer gets the shared return only when removed while open: verified (the public hook is the internal trap; the trap stands down on a modal dialog).
  • There is no option to turn focus return off: verified (no option in the types).
  • Redirect focus in the open-change or hide callback, or after a Dialog closes: verified (hide-notification test; Dialog doc).
  • A closing layer hands its return only to a child that holds focus or is still opening: verified (tests).
  • Focus leaves a surface whose anchor left the document: verified (tests).
  • One modal-dialog helper serves the focus return, the announcer and the sheet stack: verified.
  • No new public API: verified (generated API comparison lists no row for it).
  • The listed suites pass: verified (4,882 tests at its head).
  • Real-browser runs in Chromium and WebKit: not rerun here.
  • First-load growth on the reference pages: reported, not reproduced.

Claims (#12891 description and release note, at this head):

  • The Tour spec is current on main, and the record edits listed are this pull request's own: verified (the record diff against main holds exactly those edits).
  • The edits called owner decisions (Lab removal, FR6 sentences, the AST-116 gap line, the theme attribute): no approval at this head yet.
  • Steps, active step, end reasons, missing anchors, step preparation, backdrop modality and catalog words: verified (45 unit tests pass at this head).
  • A step inside a dialog or a popover renders in that layer and stays usable: verified (Chromium frames of the Inside Layers story).
  • Lab Tour, TourStep and useTour are removed, and discovery no longer lists them: verified (Lab index, official package list, route lock).

Files:

  • #11117 (10/10): carried from the last review, all clear.
  • #11121 (29/29): the same changes as at its last full review, merged with main; all clear.
  • #11156 (34/34): the same changes as at its last review, merged with #11121; the overlay-dismissal and AST-116 record edits wait on the owner decision; the rest are clear.
  • #12891 (44/44): Tour.tsx has the data-backdrop finding and two comment-style notes; the AST-119, Tour, AST-116 and overlay-dismissal record edits wait on the owner decision; the rest are clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of #12891 waits on an engineering owner's decision on what it adds beyond the current AST-119 spec, and on two fixes. #11117 and #11121 are approved; #11121 is pending CI.

#12891 (Tour to Core): waiting on an engineering owner's decision, with two blocking findings.

  • Regression: the browser test "a step after a centered step follows its own anchor in view" (Tour.interaction.browser.spec.ts lines 243–245) expects no inline justify-self, but since the merge of main the layer always gets justify-self: self-start while its anchor is in view, so the test fails even though the step sits correctly beside its anchor; assert self-start (or the absence of unsafe) instead.
  • data-backdrop (Tour.tsx lines 1099–1101 and 1112–1114) is a new public theme attribute that no current record names, as architecture:public-component-api DEC-2 requires, so either an engineering owner approves the component:Tour paragraph that names it or the attribute goes.

An engineering owner still has to approve or amend, at this head, what this pull request changes beyond main: FR6's two new sentences for steps inside dialogs and popovers, the FR9, FR10, FR13 and FR16 gap lines, dropping Firefox from the browser evidence, removing the Lab Tour with no codemod, the component:Tour data-backdrop paragraph with the tour, tour-highlight and tour-overlay theme targets, and the new spec:AST-116 FR12 gap: line. An owner also rules whether the shared useLayer change, where every anchored layer's in-view watch follows a trigger replaced while open, is a fix under spec:AST-059 FR5 or a desktop behaviour change. The new aria-disabled on Back, Next and Done while a step prepares checks out. The docsite's Vercel deployment fails at this head while it completes at #11156's head, so its log is worth a look before this is marked ready.

#11156 (isModal): waiting on an engineering owner's decision; no blocking finding. At its new head, an engineering owner has to approve its spec:AST-116 FR22 sentences, the family:overlay-dismissal FR3 gap: line, dropping Firefox from the evidence line, and PowerSearch closing its filter popover when focus moves back into the field.

#11121 (shared layer focus return): approved pending CI. An engineering owner approved its spec at its new head, the merge of main changed none of its own lines, and its suites pass; CI has not run on that head yet.

#11117 (usePopover anchorRef): approved. Its own review at its current head stands.

Whole stack: nothing blocks between the four pull requests, and each merges cleanly into main. A pull request in this stack lands only when it and every pull request below it are approved. An engineering owner records each decision by commenting /approve-spec <full head SHA> on that pull request, and the author may do so as an engineering owner.

Claims and files checked

Review mode: incremental; reason: none

Claims (#12891 at this head: the new commit, the description's new notes and its release note):

  • Back, Next and Done report aria-disabled while a step prepares: verified (Tour.tsx Back and Next/Done props; unit test; a Chromium probe of the Prepared Step story shows Next disabled to assistive technology, still focusable, and clear once the step shows).
  • This head merges main and the three pull requests below it: verified (the merge history; each merge keeps both sides).
  • One browser test fails since main changed how anchored layers stay on screen: verified from the code (the test expects an empty inline justify-self, which the layer now always sets); the step itself sits beside its anchor in a Chromium probe.
  • The test counts and frames describe the previous head: stated by the description; this review reran the unit suites (2938 tests in 102 files pass) and retook two Chromium frames.
  • Tour, its types and its theme targets in Core, the Lab removal, and the catalog messages, as the release note says: unchanged since the last review and still verified.

Files:

  • #12891 (44/44): Tour.tsx has the data-backdrop finding and two comment-style notes; Tour.interaction.browser.spec.ts has the stale assertion; the record edits wait on the owner decision; the rest are clear.
  • #11156 (34/34): unchanged apart from the merge; its record edits wait on the owner decision; the rest are clear.
  • #11121 (29/29): unchanged apart from the merge; all clear.
  • #11117 (10/10): reviewed at this head on its own; all clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight theme targets (Tour.tsx lines 1109–1111 and 1127–1129) is new public theme surface that no current record names, as architecture:public-component-api DEC-2 requires, so either an engineering owner approves the component:Tour paragraph that names it or the visual prop goes.

An engineering owner needs to approve or amend, at this head, what the pull request changes in current records: FR6's two sentences for steps inside dialogs and popovers, the FR9, FR10, FR13, FR14 and FR16 gap lines, the browser-evidence line without Firefox, removing the Lab Tour with no codemod, the component:Tour data-backdrop paragraph with the tour, tour-highlight and tour-overlay targets and a stable Backdrop concept, and the two new sentences in spec:AST-116's FR12 gap line. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. CI has not run on this draft head, and the docsite's Vercel deployment reports a failure here; its log is worth a look before this is marked ready.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Release note: Tour is a Core component with a steps array, an app-owned active step, a ring and an optional backdrop: verified (Tour.tsx; 46 unit tests pass).
  • Release note: a step left out does not exist, an anchorless step is centered, missingAnchorBehavior handles a missing anchor and showAction can open a panel first: verified (step-list, missing-anchor and preparation tests).
  • Release note: without a backdrop the page stays usable; with one each step is modal: verified (unit tests; a browser probe shows aria-modal only with the backdrop and focus left where the person put it without it).
  • Release note: it replaces the Lab Tour, with each renamed prop listed: verified against the removed Lab source.
  • Release note: the CLI ships a showcase and an example block and no longer lists the Lab Tour: verified (template blocks, package list, route lock).
  • Description: 46 unit tests: verified (46 pass).
  • Description: 23 browser tests pass in Chromium and WebKit: 23 cases counted in the spec; the runs were not reproduced.
  • Description: the new useLayer test fails on main: verified (fails on the base, passes on the head).
  • Description: usePopover's public return is unchanged and the internal return gains a focus-scope check: verified (usePopover.tsx).
  • Description: ref, className, style and data-* land on the dialog surface: verified (host data-attribute test, unit test).
  • Description: a press on the backdrop does not reach handlers around Tour: verified (layer click boundary; unit test).
  • Description: six catalog messages, three theme targets and data-backdrop on two of them: verified (en.json; the built API surface; a browser probe).
  • Description: a step whose anchor is in a dialog renders inside it and stays usable: verified (browser probe of the Inside Layers story).
  • Description: generated and listed files follow the move, and the motion-audit snapshot is left as it is: verified.
  • Description: first-load size deltas on the reference pages: reported, not reproduced.

Files:

  • packages/core/src/Tour/Tour.tsx: the data-backdrop finding, plus two non-blocking comment-style notes.
  • The six record files: their edits wait on the engineering-owner decision.
  • The other 40 files (Tour tests, doc, stories, template blocks, shared layer, popover and focus-region code, Lab removal, lists, locks, goldens, samples, probe theme, audit targets, release note): clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight theme targets (Tour.tsx lines 1109–1111 and 1127–1129) is new public theme surface that no current record names, as architecture:public-component-api DEC-2 requires, so either an engineering owner approves the component:Tour paragraph that names it or the visual prop goes.

An engineering owner needs to approve or amend, at this head, what the pull request changes in current records: FR6's two sentences for steps inside dialogs and popovers, the FR9, FR10, FR13, FR14 and FR16 gap lines, the browser-evidence line without Firefox, removing the Lab Tour with no codemod, the component:Tour data-backdrop paragraph with the tour, tour-highlight and tour-overlay targets and a stable Backdrop concept, and the two new sentences in spec:AST-116's FR12 gap line. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. For the Firefox line: the browser spec passes 23 of 23 in Chromium, and 21 of 23 in Firefox, where a callout stays painted while a scrolling panel clips its anchor.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Release note: Tour is a Core component with a steps array, an app-owned active step, a ring and an optional backdrop: verified (Tour.tsx; 46 unit tests pass).
  • Release note: a step left out does not exist, an anchorless step is centered, missingAnchorBehavior handles a missing anchor and showAction can open a panel first: verified (step-list, missing-anchor and preparation tests).
  • Release note: without a backdrop the page stays usable; with one each step is modal: verified (unit and browser tests).
  • Release note: it replaces the Lab Tour, with each renamed prop listed: verified against the removed Lab source.
  • Release note: the CLI ships a showcase and an example block and no longer lists the Lab Tour: verified (template blocks, package list, route lock check).
  • Description: 46 unit tests: verified (46 pass).
  • Description: 23 browser tests pass in Chromium and WebKit: Chromium verified (23 of 23); WebKit not reproduced.
  • Description: the new useLayer test fails on main: verified (fails on the base, passes on the head).
  • Description: usePopover's public return is unchanged and the internal return gains a focus-scope check: verified (usePopover.tsx).
  • Description: ref, className, style and data-* land on the dialog surface: verified (unit and host data-attribute tests).
  • Description: a press on the backdrop does not reach handlers around Tour: verified (unit test).
  • Description: six catalog messages, three theme targets with data-backdrop on two, and a regenerated probe theme: verified (en.json, the generated API delta, probeTheme.ts).
  • Description: a step whose anchor is in a dialog or popover renders above that layer and stays usable: verified (browser tests and a probe).
  • Description: listed and generated files follow the move, and the motion-audit snapshot is left as it is: verified (route-manifest, route-lock, official-package and resolution checks pass).
  • Description: no other component's public API changes: verified (the generated API delta lists only Tour rows).
  • Description: first-load size deltas and the axe audit result: reported, not reproduced.
  • Description: the first "Changes since the last review" bullet: partly stale; most of what it lists was already in the previous push, which only added the two Sandbox routes and two comment rewrites.

Files:

  • packages/core/src/Tour/Tour.tsx: the data-backdrop finding and one non-blocking comment-style suggestion.
  • packages/core/src/Tour/Tour.doc.mjs: its backdrop visual props go with the data-backdrop finding.
  • The six record files: their edits wait on the engineering-owner decision.
  • The other 40 files (Tour tests, browser spec, stories and index; the four template block files; the shared layer, popover and focus-trap code and the layer test; the Core index, package exports, English catalog and host data-attribute test; the nine Lab removal files; the route, package and audit lists, goldens and probe theme; five renamed fixtures; the release note): clear.

Automated review (maintainer link)

Comment thread packages/core/src/Tour/Tour.tsx Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight targets (Tour.tsx:1109-1111, :1127-1129) is new public theme surface that no current record names (architecture:public-component-api DEC-2): an engineering owner's approval of the component:Tour paragraph that names it settles this, and otherwise the backdrop visual prop should come off both targets and Tour.doc.mjs:212 and :214.

The changes to current records need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner: FR6's two new sentences in spec:AST-119, its FR9, FR10, FR13, FR14 and FR16 gap lines, the Platform support lines without Firefox evidence, the Lab Tour removal with no codemod, component:Tour's data-backdrop paragraph, theme targets and stable Backdrop concept, and the two sentences added to spec:AST-116's FR12 gap: line. The new Platform support sentence matches what Firefox does: 21 of 23 browser cases pass there, and the two where a scrolling panel clips the anchor keep the callout painted. The comment-style suggestion on hostAround is applied, and CI has not run on this draft head.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Steps are data; a step left out does not exist, and the count, Back and Next follow the array; an active step that leaves moves to the next one or ends as complete: verified (Tour.tsx:506-543, unit tests).
  • The app owns the active step through activeId, and moves and ends report through onActiveIdChange and onEnd with five reasons: verified (Tour.tsx:1008-1025, :1044, :1071, :991, :1122).
  • One popover callout mounts again for each step; a step with no anchor shows centered: verified (Tour.tsx:595-623, :1103, :1141-1145; browser tests).
  • A step whose anchor is in an open modal dialog or shown popover renders in that layer; an anchorless step renders in an open modal Dialog, Drawer or BottomSheet, and on the page under other layers: verified (Tour.tsx:412-424, :762-766; the modal outlet registry has only those three components; browser and unit tests).
  • Missing anchors follow missingAnchorBehavior, are reported once, and a step waits for showAction while the previous callout is unpainted, busy and ignores Back, Next and Done; Tour sets no timer: verified (Tour.tsx:712-760, :800-824, :1007-1025; tests).
  • Scroll into view, instant under reduced motion, off with hasScrollIntoView={false}: verified (Tour.tsx:912-934; tests).
  • The ring uses CSS anchor positioning and script reads only the anchor's corner radius; without anchor positioning there is no ring and a backdrop dims the whole page: verified (Tour.tsx:208-251, :445-454).
  • Without a backdrop Tab passes through and Escape ends the tour only from the callout or the anchor; with one the step is modal and a press outside ends it as backdrop: verified (Tour.tsx:616, :989-996, :1121-1123; Chromium and Firefox browser tests).
  • Focus moves to the heading only from the previous callout, anchor or body, otherwise the step is announced; at the end focus goes to a focusable anchor or the shared return: verified (Tour.tsx:697-709, :778-784, :939-986; tests).
  • Six catalog messages, and three label props: verified (locales/en.json, Tour.tsx:1042-1090).
  • New Core exports and the ./Tour entry point, with standard element props on the dialog: verified (API surface comparison; host data-attribute test).
  • The CLI ships a showcase and an example block, and the changeset names both packages: verified.
  • The Lab Tour, TourStep and useTour are removed, and the changeset's renames match the Lab props: verified (base Lab Tour.tsx and TourStep.tsx).
  • Three theme targets with data-backdrop on two, and a regenerated probe theme: verified (API surface comparison; probeTheme.ts).
  • The generated and listed files follow the move, and the older motion audit snapshot is left as it is: verified.
  • The shared popover, layer and focus-region edits behave as described, and the replaced-trigger test fails on main: verified (red-first run of useLayer.test.tsx).
  • No other component's public API changes: verified (API surface comparison: 14 rows, all Tour).
  • 46 unit tests and 23 browser tests: verified (counted; Chromium 23 of 23 in this review).
  • Firefox passes 21 of 23, failing only the two clipped-anchor cases: verified (this review's Firefox run).
  • WebKit 23 of 23, the axe audit, the contrast figures and the first-load size deltas: stated, not reproduced in this review.
  • Since the last review only the Platform support sentence and one comment changed: verified.

Files:

  • .changeset/tour-core.md: clear
  • .github/a11y-audit-axe.json: clear
  • .github/playwright-leg-durations.json: clear
  • apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • apps/sandbox/scripts/next-export-routes.json: clear
  • apps/storybook/rtl-audit/targets.json: clear
  • apps/storybook/stories/Tour.stories.tsx: clear
  • docs/architecture/react-component-runtime.md: held with the Lab removal (one clause dropped)
  • docs/families/overlay-dismissal.md: held with the Lab removal (member, row, FR2 gap line)
  • docs/specs/AST-038-layer-text-boundary/spec.md: held with the Lab removal (Tour named in the table)
  • docs/specs/AST-116-popover-anchoring/spec.md: held for an engineering owner (two FR12 gap-line sentences)
  • docs/specs/AST-119-tour/spec.md: held for an engineering owner (FR6 sentences, gap lines, Platform support, Lab removal, DEC-5)
  • docs/specs/components/Tour/Tour.spec.md: held for an engineering owner (data-backdrop paragraph, theme targets, concept rows)
  • internal/shadcn-registry/routes.lock.json: clear
  • packages/cli/assets/discover/official-packages.json: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.tsx: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx: clear
  • packages/cli/foundation/discovery/component-discovery.export-names.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear
  • packages/cli/test/swizzle-proof/samples.mjs: clear
  • packages/core/locales/en.json: clear
  • packages/core/package.json: clear
  • packages/core/src/Layer/useLayer.test.tsx: clear
  • packages/core/src/Layer/useLayer.tsx: clear
  • packages/core/src/Popover/usePopover.tsx: clear
  • packages/core/src/Tour/Tour.doc.mjs: follows the blocking finding: visualProps: ['backdrop'] at lines 212 and 214
  • packages/core/src/Tour/Tour.test.tsx: clear
  • packages/core/src/Tour/Tour.tsx: blocking: data-backdrop with no current record (lines 1109-1111, 1127-1129)
  • packages/core/src/Tour/__tests__/Tour.interaction.browser.spec.ts: clear
  • packages/core/src/Tour/index.ts: clear
  • packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/core/src/hooks/useFocusTrap.ts: clear
  • packages/core/src/index.ts: clear
  • packages/lab/src/Tour/Tour.doc.mjs: clear
  • packages/lab/src/Tour/Tour.test.tsx: clear
  • packages/lab/src/Tour/Tour.tsx: clear
  • packages/lab/src/Tour/TourContext.ts: clear
  • packages/lab/src/Tour/TourStep.tsx: clear
  • packages/lab/src/Tour/__tests__/TourCardTarget.interaction.browser.spec.ts: clear
  • packages/lab/src/Tour/index.ts: clear
  • packages/lab/src/Tour/useTour.ts: clear
  • packages/lab/src/index.ts: clear
  • packages/themes/probe/src/probeTheme.ts: clear
  • scripts/check-cli-official-packages.test.mjs: clear
  • scripts/score-ledger.test.mjs: clear

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight targets (Tour.tsx:1109-1111, :1127-1129) is new public theme surface that no current record names (architecture:public-component-api DEC-2): an engineering owner's approval of the component:Tour paragraph that names it settles this, and otherwise the backdrop visual prop should come off both targets and Tour.doc.mjs:212 and :214.

The changes to current records need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner: FR6's two new sentences in spec:AST-119, its FR9, FR10, FR13, FR14 and FR16 gap lines, the Platform support lines without Firefox evidence, the Lab Tour removal with no codemod, component:Tour's data-backdrop paragraph, theme targets and stable Backdrop concept, and the two sentences added to spec:AST-116's FR12 gap: line. The Platform support sentence matches what Firefox does: 21 of 23 browser cases pass there, and the two where a scrolling panel clips the anchor keep the callout painted. One optional suggestion: the step announcement reads the heading's textContent, so aria-hidden text in a title is spoken (Tour.tsx:983-985).

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Steps are data; a step left out does not exist, and the count, Back and Next follow the array; an active step that leaves moves to the next one or ends as complete: verified (Tour.tsx:506-543, unit tests).
  • The app owns the active step through activeId, and moves and ends report through onActiveIdChange and onEnd with five reasons: verified (Tour.tsx:1008-1025, :1044, :1071, :991, :1122).
  • One popover callout mounts again for each step; a step with no anchor shows centered: verified (Tour.tsx:595-623, :1103, :1141-1145; browser tests).
  • A step whose anchor is in an open modal dialog or shown popover renders in that layer; an anchorless step renders in an open modal Dialog, Drawer or BottomSheet, and on the page under other layers: verified (Tour.tsx:412-424, :762-766; browser and unit tests).
  • Missing anchors follow missingAnchorBehavior, are reported once, and a step waits for showAction while the previous callout is unpainted, busy and ignores Back, Next and Done; Tour sets no timer: verified (Tour.tsx:712-760, :800-824, :1007-1025; tests).
  • Scroll into view, instant under reduced motion, off with hasScrollIntoView={false}: verified (Tour.tsx:912-934; tests).
  • The ring uses CSS anchor positioning and script reads only the anchor's corner radius; without anchor positioning there is no ring and a backdrop dims the whole page: verified (Tour.tsx:208-251, :445-454).
  • Without a backdrop Tab passes through and Escape ends the tour only from the callout or the anchor; with one the step is modal and a press outside ends it as backdrop: verified (Tour.tsx:616, :989-996, :1121-1123; Chromium and Firefox browser tests).
  • Focus moves to the heading only from the previous callout, anchor or body, otherwise the step is announced; at the end focus goes to a focusable anchor or the shared return: verified (Tour.tsx:697-709, :778-784, :939-986; tests).
  • Six catalog messages, and three label props: verified (locales/en.json, Tour.tsx:1042-1090).
  • New Core exports and the ./Tour entry point, with standard element props on the dialog: verified (API surface comparison; host data-attribute test).
  • The CLI ships a showcase and an example block, the changeset names both packages, and the CLI's derived package list no longer names the Lab Tour: verified (the list generator lists Lab Tour and TourStep on the base and neither on the head).
  • The Lab Tour, TourStep and useTour are removed, and the changeset's renames match the Lab props: verified (base Lab Tour.tsx and TourStep.tsx).
  • Three theme targets with data-backdrop on two, and a regenerated probe theme: verified (API surface comparison; probeTheme.ts).
  • The generated and listed files follow the move, and the older motion audit snapshot is left as it is: verified (docsite route-lock step and Sandbox route test).
  • The shared popover, layer and focus-region edits behave as described, and the replaced-trigger test fails on main: verified (shared suites; the red-first run on the identical code).
  • No other component's public API changes: verified (API surface comparison: 14 rows, all Tour).
  • 46 unit tests and 23 browser tests: verified (counted; Chromium 23 of 23 in this review).
  • Firefox passes 21 of 23, failing only the two clipped-anchor cases: verified (this review's Firefox run).
  • WebKit 23 of 23, the axe audit, the contrast figures and the first-load size deltas: stated, not reproduced in this review.
  • This head is a rebase onto main that drops the edit to the package list main no longer commits: verified (the rest of the patch is unchanged).

Files:

  • .changeset/tour-core.md: clear
  • .github/a11y-audit-axe.json: clear
  • .github/playwright-leg-durations.json: clear
  • apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • apps/sandbox/scripts/next-export-routes.json: clear
  • apps/storybook/rtl-audit/targets.json: clear
  • apps/storybook/stories/Tour.stories.tsx: clear
  • docs/architecture/react-component-runtime.md: held with the Lab removal (one clause dropped)
  • docs/families/overlay-dismissal.md: held with the Lab removal (member, row, FR2 gap line)
  • docs/specs/AST-038-layer-text-boundary/spec.md: held with the Lab removal (Tour named in the table)
  • docs/specs/AST-116-popover-anchoring/spec.md: held for an engineering owner (two FR12 gap-line sentences)
  • docs/specs/AST-119-tour/spec.md: held for an engineering owner (FR6 sentences, gap lines, Platform support, Lab removal, DEC-5)
  • docs/specs/components/Tour/Tour.spec.md: held for an engineering owner (data-backdrop paragraph, theme targets, concept rows)
  • internal/shadcn-registry/routes.lock.json: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.tsx: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx: clear
  • packages/cli/foundation/discovery/component-discovery.export-names.test.mjs: clear
  • packages/cli/scripts/generate-official-packages.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear
  • packages/cli/test/swizzle-proof/samples.mjs: clear
  • packages/core/locales/en.json: clear
  • packages/core/package.json: clear
  • packages/core/src/Layer/useLayer.test.tsx: clear
  • packages/core/src/Layer/useLayer.tsx: clear
  • packages/core/src/Popover/usePopover.tsx: clear
  • packages/core/src/Tour/Tour.doc.mjs: follows the blocking finding: visualProps: ['backdrop'] at lines 212 and 214
  • packages/core/src/Tour/Tour.test.tsx: clear
  • packages/core/src/Tour/Tour.tsx: blocking: data-backdrop with no current record (lines 1109-1111, 1127-1129); non-blocking: the step announcement speaks aria-hidden title text (lines 983-985)
  • packages/core/src/Tour/__tests__/Tour.interaction.browser.spec.ts: clear
  • packages/core/src/Tour/index.ts: clear
  • packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/core/src/hooks/useFocusTrap.ts: clear
  • packages/core/src/index.ts: clear
  • packages/lab/src/Tour/Tour.doc.mjs: clear
  • packages/lab/src/Tour/Tour.test.tsx: clear
  • packages/lab/src/Tour/Tour.tsx: clear
  • packages/lab/src/Tour/TourContext.ts: clear
  • packages/lab/src/Tour/TourStep.tsx: clear
  • packages/lab/src/Tour/__tests__/TourCardTarget.interaction.browser.spec.ts: clear
  • packages/lab/src/Tour/index.ts: clear
  • packages/lab/src/Tour/useTour.ts: clear
  • packages/lab/src/index.ts: clear
  • packages/themes/probe/src/probeTheme.ts: clear
  • scripts/score-ledger.test.mjs: clear

Automated review (maintainer link)

Comment thread packages/core/src/Tour/Tour.tsx Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight targets (Tour.tsx:1113-1115, :1131-1133) is new public theme surface that no current record names (architecture:public-component-api DEC-2): an engineering owner's approval of the component:Tour paragraph that names it settles this, and otherwise the backdrop visual prop should come off both targets and Tour.doc.mjs:212 and :214.

The changes to current records need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner: FR6's two new sentences in spec:AST-119, its FR9, FR10, FR13, FR14 and FR16 gap lines, the Platform support lines without Firefox evidence, the Lab Tour removal with no codemod, component:Tour's data-backdrop paragraph, theme targets and stable Backdrop concept, and the two sentences added to spec:AST-116's FR12 gap: line. The Platform support sentence matches what Firefox does: 21 of 23 browser cases pass there, and the two where a scrolling panel clips the anchor keep the callout painted. The step announcement now leaves aria-hidden title text out, which settles the earlier suggestion.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Steps are data: a step left out of the array does not exist, the count, Back and Next follow the array, and an active step that leaves moves to the next one or ends as complete: verified (Tour.tsx:507-543; unit tests).
  • The app owns the active step through activeId, and moves and ends report through onActiveIdChange and onEnd with five reasons: verified (Tour.tsx:1012-1029, :1048, :1075, :995, :1126).
  • One popover callout mounts again for each step, and a step with no anchor shows centered: verified (Tour.tsx:596-624, :1107, :1145-1149; browser tests).
  • A step whose anchor is in an open modal dialog or shown popover renders in that layer, and an anchorless step renders in an open modal Dialog, Drawer or BottomSheet and on the page under other layers: verified (Tour.tsx:413-425, :765-767; browser and unit tests).
  • Missing anchors follow missingAnchorBehavior and are reported once, and a step waits for showAction while the previous callout is unpainted, busy and ignores Back, Next and Done; Tour sets no timer: verified (Tour.tsx:713-761, :802-825, :1012-1029; tests).
  • An anchor out of view scrolls into view, at once under reduced motion, and not with hasScrollIntoView={false}: verified (Tour.tsx:913-935; tests).
  • The ring uses CSS anchor positioning and script reads only the anchor's corner radius; without anchor positioning there is no ring and a backdrop dims the whole page: verified (Tour.tsx:209-252, :446-455).
  • Without a backdrop Tab passes through and Escape ends the tour only from the callout or the anchor; with one the step is modal and a press outside ends it as backdrop: verified (Tour.tsx:617, :993-1000, :1125-1127; Chromium and Firefox browser tests).
  • Focus moves to the heading only from the previous callout, anchor or page body, otherwise the step is announced; at the end focus goes to a focusable anchor or the shared return: verified (Tour.tsx:698-710, :779-785, :940-990; tests).
  • New at this head, the step announcement leaves out aria-hidden text in a title, and its unit test has such a title: verified (Tour.tsx:986-989; Tour.test.tsx:872-903).
  • Six catalog messages, and three label props that reword Next, Done and Skip: verified (locales/en.json; Tour.tsx:1046-1094).
  • New Core exports and the ./Tour entry point, with the standard element props on the dialog: verified (API surface comparison; host data-attribute test).
  • The CLI ships a showcase and an example block, the release note names both packages, and the CLI's derived package list no longer names the Lab Tour: verified (template files; the list generator names Lab Tour and TourStep on the base and neither on the head).
  • The Lab Tour, TourStep and useTour are removed, and the release note's renames match the Lab props: verified (base Lab Tour.tsx and TourStep.tsx).
  • Three theme targets with data-backdrop on two, and a regenerated probe theme: verified (API surface comparison; probeTheme.ts).
  • The generated and listed files follow the move, and the older motion audit snapshot is left as it is: verified (Sandbox route test; route lock unchanged since the last run of its check; motionAudit.ts untouched).
  • The shared popover, layer and focus-region edits behave as described, and the replaced-trigger test fails on main: verified (shared suites at this head; the red-first run was done earlier on identical code).
  • No other component's public API changes: verified (API surface comparison: 14 rows, all Tour).
  • 46 unit tests and 23 browser tests: verified (counted; Chromium 23 of 23 at this head).
  • Firefox passes 21 of 23, failing only the two clipped-anchor cases: verified (this review's Firefox run).
  • WebKit 23 of 23, the axe audit, the contrast figures, the first-load size deltas, and the 2,568-test unit run, lint and typecheck reported for this head: stated, not reproduced in this review (this review ran its own unit set: 1,261 passed).

Files:

  • .changeset/tour-core.md: clear
  • .github/a11y-audit-axe.json: clear
  • .github/playwright-leg-durations.json: clear
  • apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • apps/sandbox/scripts/next-export-routes.json: clear
  • apps/storybook/rtl-audit/targets.json: clear
  • apps/storybook/stories/Tour.stories.tsx: clear
  • docs/architecture/react-component-runtime.md: waits on the Lab removal decision (one clause dropped)
  • docs/families/overlay-dismissal.md: waits on the Lab removal decision (member, row, FR2 gap line)
  • docs/specs/AST-038-layer-text-boundary/spec.md: waits on the Lab removal decision (Tour named in the table)
  • docs/specs/AST-116-popover-anchoring/spec.md: waits on an engineering owner (two FR12 gap-line sentences)
  • docs/specs/AST-119-tour/spec.md: waits on an engineering owner (FR6 sentences, gap lines, Platform support, Lab removal, DEC-5)
  • docs/specs/components/Tour/Tour.spec.md: waits on an engineering owner (data-backdrop paragraph, theme targets, concept rows)
  • internal/shadcn-registry/routes.lock.json: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.tsx: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx: clear
  • packages/cli/foundation/discovery/component-discovery.export-names.test.mjs: clear
  • packages/cli/scripts/generate-official-packages.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear
  • packages/cli/test/swizzle-proof/samples.mjs: clear
  • packages/core/locales/en.json: clear
  • packages/core/package.json: clear
  • packages/core/src/Layer/useLayer.test.tsx: clear
  • packages/core/src/Layer/useLayer.tsx: clear
  • packages/core/src/Popover/usePopover.tsx: clear
  • packages/core/src/Tour/Tour.doc.mjs: follows the blocking finding: visualProps: ['backdrop'] at lines 212 and 214
  • packages/core/src/Tour/Tour.test.tsx: clear
  • packages/core/src/Tour/Tour.tsx: blocking: data-backdrop with no current record (lines 1113-1115, 1131-1133)
  • packages/core/src/Tour/__tests__/Tour.interaction.browser.spec.ts: clear
  • packages/core/src/Tour/index.ts: clear
  • packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/core/src/hooks/useFocusTrap.ts: clear
  • packages/core/src/index.ts: clear
  • packages/lab/src/Tour/Tour.doc.mjs: clear
  • packages/lab/src/Tour/Tour.test.tsx: clear
  • packages/lab/src/Tour/Tour.tsx: clear
  • packages/lab/src/Tour/TourContext.ts: clear
  • packages/lab/src/Tour/TourStep.tsx: clear
  • packages/lab/src/Tour/__tests__/TourCardTarget.interaction.browser.spec.ts: clear
  • packages/lab/src/Tour/index.ts: clear
  • packages/lab/src/Tour/useTour.ts: clear
  • packages/lab/src/index.ts: clear
  • packages/themes/probe/src/probeTheme.ts: clear
  • scripts/score-ledger.test.mjs: clear

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on two blocking findings.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight targets (Tour.tsx:1113-1115, :1131-1133) is new public theme surface that no current record names (architecture:public-component-api DEC-2): an engineering owner's approval of the component:Tour paragraph that names it settles this, and otherwise the backdrop visual prop should come off both targets and Tour.doc.mjs:212 and :214.
  • Miss: the step announcement reads the heading and calls announce in Tour's own layout effect (Tour.tsx:986-989), while architecture:react-component-runtime INV10 puts every own-content announcement in the shared useAnnounceRenderedText; decide at step start whether the step announces, pass that as the hook's isShown with the step id as its occasion, remove the local branch, and add Tour to the hook's adopters test.

The changes to current records need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner: FR6's two new sentences in spec:AST-119, its FR9, FR10, FR13, FR14 and FR16 gap lines, the Platform support lines without Firefox evidence, the Lab Tour removal with no codemod, component:Tour's data-backdrop paragraph, theme targets and stable Backdrop concept, and the two sentences added to spec:AST-116's FR12 gap: line. The announcement finding is independent of that decision.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Steps are data: a step left out of the array does not exist, the count, Back and Next follow the array, and an active step that leaves moves to the next one or ends as complete: verified (Tour.tsx:507-543; unit tests).
  • The app owns the active step through activeId, and moves and ends report through onActiveIdChange and onEnd with five reasons: verified (Tour.tsx:1012-1029, :995, :1048, :1075, :1126).
  • One popover callout mounts again for each step, and a step with no anchor shows centered: verified (Tour.tsx:596-624, :1107, :1145-1149; Centered Step probe).
  • A step whose anchor is in an open modal dialog or shown popover renders in that layer, and an anchorless step renders in an open modal Dialog, Drawer or BottomSheet and on the page under other layers: verified (Tour.tsx:413-425, :765-767; unit tests; Inside Layers probe).
  • Missing anchors follow missingAnchorBehavior and are reported once, and a step waits for showAction while the previous callout is unpainted, busy and ignores Back, Next and Done; Tour sets no timer: verified (Tour.tsx:713-761, :802-825, :1012-1029; unit tests).
  • An anchor out of view scrolls into view, at once under reduced motion, and not with hasScrollIntoView={false}: verified (Tour.tsx:913-935; unit test).
  • The ring uses CSS anchor positioning and script reads only the anchor's corner radius; without anchor positioning there is no ring and a backdrop dims the whole page: verified (Tour.tsx:209-252, :446-455).
  • Without a backdrop Tab passes through and Escape ends the tour only from the callout or the anchor; with one the step is modal and a press outside ends it as backdrop: verified (Tour.tsx:617, :993-1000, :1125-1127; unit tests).
  • Focus moves to the heading only from the previous callout, anchor or page body, otherwise the step is announced; at the end focus goes to a focusable anchor or the shared return: verified (Tour.tsx:698-710, :779-785, :940-990; unit tests), with the announcement path as the second finding above.
  • The step announcement leaves out aria-hidden text in a title, with a unit test: verified (Tour.tsx:986; Tour.test.tsx:872-903).
  • Six catalog messages, and three label props that reword Next, Done and Skip: verified (locales/en.json; Tour.tsx:1074, :1090-1094).
  • New Core exports and the ./Tour entry point, with the standard element props on the dialog: verified (API surface comparison; host data-attribute test).
  • The CLI ships a showcase and an example block, and the release note names both packages: verified (template files; .changeset/tour-core.md).
  • The Lab Tour, TourStep and useTour are removed, and the release note's renames match the Lab props: verified (base Lab Tour.tsx and TourStep.tsx).
  • Three theme targets with data-backdrop on two, and a regenerated probe theme: verified (API surface comparison; probeTheme.ts).
  • The generated and listed files follow the move, the icon-set search golden counts one more match, and the older motion audit snapshot is left as it is: verified (route-manifest and golden tests pass; motionAudit.ts untouched).
  • The shared popover, layer and focus-region edits behave as described, and the replaced-trigger test fails on main: verified (shared suites pass; useLayer.tsx on main is unchanged since the red-first run).
  • No other component's public API changes: verified (API surface comparison: 14 rows, all Tour).
  • 46 unit tests and 23 browser tests: verified by count.
  • Chromium, WebKit and Firefox browser results, the axe audit, the contrast figures, the first-load size deltas and the 5,805-test run: stated, not reproduced (this review ran 1,033 unit tests at this head).

Files:

  • .changeset/tour-core.md: clear
  • .github/a11y-audit-axe.json: clear
  • .github/playwright-leg-durations.json: clear
  • apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • apps/sandbox/scripts/next-export-routes.json: clear
  • apps/storybook/rtl-audit/targets.json: clear
  • apps/storybook/stories/Tour.stories.tsx: clear
  • docs/architecture/react-component-runtime.md: waits on the Lab removal decision (one clause dropped)
  • docs/families/overlay-dismissal.md: waits on the Lab removal decision (member, row, FR2 gap line)
  • docs/specs/AST-038-layer-text-boundary/spec.md: waits on the Lab removal decision (Tour named in the table)
  • docs/specs/AST-116-popover-anchoring/spec.md: waits on an engineering owner (two FR12 gap-line sentences)
  • docs/specs/AST-119-tour/spec.md: waits on an engineering owner (FR6 sentences, gap lines, Platform support, Lab removal, DEC-5)
  • docs/specs/components/Tour/Tour.spec.md: waits on an engineering owner (data-backdrop paragraph, theme targets, concept rows)
  • internal/shadcn-registry/routes.lock.json: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.tsx: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx: clear
  • packages/cli/foundation/discovery/component-discovery.export-names.test.mjs: clear
  • packages/cli/scripts/generate-official-packages.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear
  • packages/cli/test/swizzle-proof/samples.mjs: clear
  • packages/core/locales/en.json: clear
  • packages/core/package.json: clear
  • packages/core/src/Layer/useLayer.test.tsx: clear
  • packages/core/src/Layer/useLayer.tsx: clear
  • packages/core/src/Popover/usePopover.tsx: clear
  • packages/core/src/Tour/Tour.doc.mjs: follows the first blocking finding: visualProps: ['backdrop'] at lines 212 and 214
  • packages/core/src/Tour/Tour.test.tsx: clear
  • packages/core/src/Tour/Tour.tsx: blocking: data-backdrop with no current record (lines 1113-1115, 1131-1133); blocking: own announcement path (lines 986-989)
  • packages/core/src/Tour/__tests__/Tour.interaction.browser.spec.ts: clear
  • packages/core/src/Tour/index.ts: clear
  • packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/core/src/hooks/useFocusTrap.ts: clear
  • packages/core/src/index.ts: clear
  • packages/lab/src/Tour/Tour.doc.mjs: clear
  • packages/lab/src/Tour/Tour.test.tsx: clear
  • packages/lab/src/Tour/Tour.tsx: clear
  • packages/lab/src/Tour/TourContext.ts: clear
  • packages/lab/src/Tour/TourStep.tsx: clear
  • packages/lab/src/Tour/__tests__/TourCardTarget.interaction.browser.spec.ts: clear
  • packages/lab/src/Tour/index.ts: clear
  • packages/lab/src/Tour/useTour.ts: clear
  • packages/lab/src/index.ts: clear
  • packages/themes/probe/src/probeTheme.ts: clear
  • scripts/score-ledger.test.mjs: clear

Automated review (maintainer link)

Comment thread packages/core/src/Tour/Tour.tsx Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the record changes this pull request makes beyond main, and on one blocking finding. The step announcement now goes through the shared own-content announcer, which fixes the earlier blocking finding.

  • data-backdrop="backdrop" on the tour-overlay and tour-highlight targets (Tour.tsx:1116-1118, :1134-1136) is new public theme surface that no current record names (architecture:public-component-api DEC-2): an engineering owner's approval of the component:Tour paragraph that names it settles this, and otherwise the backdrop visual prop should come off both targets and Tour.doc.mjs:212 and :214.

The changes to current records need an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner: FR6's two new sentences in spec:AST-119, its FR9, FR10, FR13, FR14 and FR16 gap lines, the Platform support lines without Firefox evidence, the Lab Tour removal with no codemod, component:Tour's data-backdrop paragraph, theme targets and stable concept rows, and the two sentences added to spec:AST-116's FR12 gap: line.

Claims and files checked

Review mode: full; reason: history

Claims:

  • Steps are data: a step left out of the array does not exist, the count, Back and Next follow the array, and an active step that leaves moves to the next one or ends as complete: verified (Tour.tsx:513-550, :669-679; unit tests).
  • The app owns the active step through activeId, and moves and ends report through onActiveIdChange and onEnd with five reasons: verified (Tour.tsx:1015-1032, :998, :1051, :1078, :1129).
  • One popover callout mounts again for each step, and a step with no anchor shows centered: verified (Tour.tsx:577-630, :1110, :1148-1152; Centered Step probe).
  • A step whose anchor is in an open modal dialog or shown popover renders in that layer, and an anchorless step renders in an open modal Dialog, Drawer or BottomSheet and on the page under other layers: verified (Tour.tsx:420-432, :769-773; unit tests; Inside Layers probe).
  • Missing anchors follow missingAnchorBehavior and are reported once, and a step waits for showAction while the previous callout is unpainted, busy and ignores Back, Next and Done; Tour sets no timer: verified (Tour.tsx:719-767, :806-830, :1015-1032; unit tests).
  • An anchor out of view scrolls into view, at once under reduced motion, and not with hasScrollIntoView={false}: verified (Tour.tsx:918-940; unit test).
  • The ring uses CSS anchor positioning and script reads only the anchor's corner radius; without anchor positioning there is no ring and a backdrop dims the whole page: verified (Tour.tsx:214-251, :453-462).
  • Without a backdrop Tab passes through and Escape ends the tour only from the callout or the anchor; with one the step is modal and a press outside ends it as backdrop: verified (Tour.tsx:623, :996-1003, :1128-1130; unit tests).
  • Focus moves to the heading only from the previous callout, anchor or page body, otherwise the step is announced politely; at the end focus goes to a focusable anchor or the shared return: verified (Tour.tsx:704-716, :785-789, :945-993; unit tests; Default and Centered Step probes).
  • New at this head: the announcement goes through the shared own-content announcer, a restart at the same step is announced again, and Tour is in the announcer's adopters test: verified (Tour.tsx:988-993, :368-370; Tour.test.tsx "announces a step again when the tour starts again at it"; useAnnounceRenderedText.adopters.test.tsx).
  • The announcement leaves out aria-hidden text in a title: verified (the shared hook drops aria-hidden and hidden content; unit test).
  • Six catalog messages, and three label props that reword Next, Done and Skip: verified (locales/en.json; Tour.tsx:1077, :1093-1097).
  • New Core exports and the ./Tour entry point, with the standard element props on the dialog: verified (API surface comparison; host data-attribute test).
  • The CLI ships a showcase and an example block, and the release note names both packages: verified (template files; .changeset/tour-core.md).
  • The Lab Tour, TourStep and useTour are removed, and the release note's renames match the Lab props: verified (base Lab Tour.tsx and TourStep.tsx).
  • Three theme targets with data-backdrop on two, and a regenerated probe theme: verified (API surface comparison; the probe generator rewrites probeTheme.ts identically).
  • The generated and listed files follow the move, the icon-set search golden counts one more match, and the older motion audit snapshot is left as it is: verified (route-manifest and golden tests pass; motionAudit.ts untouched).
  • The shared popover, layer and focus-region edits behave as described, and the replaced-trigger test fails on main: verified (shared suites pass; the test fails on the base, where useLayer.tsx matches main).
  • No other component's public API changes: verified (API surface comparison: 14 rows, all Tour).
  • 47 unit tests and 24 browser tests: verified by count.
  • Chromium, WebKit and Firefox browser results, the axe audit, the contrast figures, the first-load size deltas, the preview build and the 5,807-test run: stated, not reproduced (this review ran 892 unit and 154 Node tests at this head).

Files:

  • .changeset/tour-core.md: clear
  • .github/a11y-audit-axe.json: clear
  • .github/playwright-leg-durations.json: clear
  • apps/docsite/src/__tests__/component-detail-resolve-elements.test.ts: clear
  • apps/sandbox/scripts/next-export-routes.json: clear
  • apps/storybook/rtl-audit/targets.json: clear
  • apps/storybook/stories/Tour.stories.tsx: clear
  • docs/architecture/react-component-runtime.md: waits on the Lab removal decision (one clause dropped)
  • docs/families/overlay-dismissal.md: waits on the Lab removal decision (member, row, FR2 gap line)
  • docs/specs/AST-038-layer-text-boundary/spec.md: waits on the Lab removal decision (Tour named in the table)
  • docs/specs/AST-116-popover-anchoring/spec.md: waits on an engineering owner (two FR12 gap-line sentences)
  • docs/specs/AST-119-tour/spec.md: waits on an engineering owner (FR6 sentences, gap lines, Platform support, Lab removal, DEC-5)
  • docs/specs/components/Tour/Tour.spec.md: waits on an engineering owner (data-backdrop paragraph, theme targets, concept stability)
  • internal/shadcn-registry/routes.lock.json: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourBackdrop.tsx: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.doc.mjs: clear
  • packages/cli/assets/templates/blocks/components/Tour/TourShowcase.tsx: clear
  • packages/cli/foundation/discovery/component-discovery.export-names.test.mjs: clear
  • packages/cli/scripts/generate-official-packages.test.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.json: clear
  • packages/cli/test/__golden__/no-icon-set/search-icon-set.txt: clear
  • packages/cli/test/swizzle-proof/samples.mjs: clear
  • packages/core/locales/en.json: clear
  • packages/core/package.json: clear
  • packages/core/src/Layer/useLayer.test.tsx: clear
  • packages/core/src/Layer/useLayer.tsx: clear
  • packages/core/src/Popover/usePopover.tsx: clear
  • packages/core/src/Tour/Tour.doc.mjs: follows the blocking finding: visualProps: ['backdrop'] at lines 212 and 214
  • packages/core/src/Tour/Tour.test.tsx: clear
  • packages/core/src/Tour/Tour.tsx: blocking: data-backdrop with no current record (lines 1116-1118, 1134-1136); the announcement now uses the shared hook (lines 988-993)
  • packages/core/src/Tour/__tests__/Tour.interaction.browser.spec.ts: clear
  • packages/core/src/Tour/index.ts: clear
  • packages/core/src/__tests__/hostDataAttributes.test.tsx: clear
  • packages/core/src/hooks/useAnnounceRenderedText.adopters.test.tsx: clear
  • packages/core/src/hooks/useFocusTrap.ts: clear
  • packages/core/src/index.ts: clear
  • packages/lab/src/Tour/Tour.doc.mjs: clear
  • packages/lab/src/Tour/Tour.test.tsx: clear
  • packages/lab/src/Tour/Tour.tsx: clear
  • packages/lab/src/Tour/TourContext.ts: clear
  • packages/lab/src/Tour/TourStep.tsx: clear
  • packages/lab/src/Tour/__tests__/TourCardTarget.interaction.browser.spec.ts: clear
  • packages/lab/src/Tour/index.ts: clear
  • packages/lab/src/Tour/useTour.ts: clear
  • packages/lab/src/index.ts: clear
  • packages/themes/probe/src/probeTheme.ts: clear
  • scripts/score-ledger.test.mjs: clear

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — 7774db37 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant