Skip to content

Implement reviewed Flex desktop component waves - #4528

Draft
Jason Morse (JasonVMo) wants to merge 10 commits into
mainfrom
user/jasonvmo/missing-flex-components
Draft

Jason Morse (JasonVMo) wants to merge 10 commits into
mainfrom
user/jasonvmo/missing-flex-components

Conversation

@JasonVMo

@JasonVMo Jason Morse (JasonVMo) commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

First batch from the Flex catalog contracts in #4527: spread-only AvatarGroup, CompoundButton, DestructiveButton,
and RatingDisplay with an internal RatingItem. Each implementation received an Opus 5.5 source review, followed by
an update to the authoring guidance. Native verification exposed a missing assistive activation path on the two
commands; both now invoke the same callback once through native accessibility tap without fabricating a gesture event.

The second batch adds PresenceBadge, Persona, Label, Swatch, InteractionTag, SplitButton, Textarea, MessageBar,
TeachingPopover, and inline Drawer. Each received a separate Opus 5.5 source review before runtime validation.
The authoring guidance now distinguishes native captions from labeling relationships, verifies segmented focus geometry,
and requires rejection-path tests for controlled focus and announcement behavior.

The third batch adds Breadcrumb, Field, InfoLabel, standalone Link, NavItem, RadioGroup, native-owner Scrollbar,
SearchBox, SwatchPicker, and Toolbar. Each received a separate Opus 5.5 source review. Native inspection exposed
clipped popup content, a missing leading SearchBox glyph, and misaligned secondary actions. The fixes give compact
anchors independent surface sizing, resolve Input's structural props before its first phase, and center sibling actions.

The PR remains a draft for Windows and Win32 qualification; more components can follow in this PR. Combobox,
editable Rating, AvatarGroup stack masking, and overlay Drawer are out of scope.

Verification

Third batch

  • Passed (components workspace): yarn test 'src/(index\.test|components/(breadcrumb|field|info-label|link|nav-item|popover|radio-group|scrollbar|search-box|swatch|swatch-picker|toolbar)/)' (66 tests); yarn lint, yarn build, yarn check:token-icons, and yarn check:spec-contracts (67 contracts).
  • Passed: yarn change:check; node scripts/agent-content/build.mts followed by yarn lint and yarn test in packages/agentic/skills (five installer tests).
  • Passed: yarn clean-lage-cache followed by CI=true FURN_JEST_MAX_WORKERS=1 FURN_TEST_TIMEOUT_SCALE=2 yarn lage buildci --concurrency 2 (186 tasks, run separately after native smoke).
  • Passed (Fabric owned smoke): STORYBOOK_SMOKE_TAG=flex-third-wave yarn storybook smoke --macos --mode stories-and-tests --input accessible
    and --input physical: 10/10 and 18/18 authored cases. Re-ran SearchBox with
    STORYBOOK_SMOKE_STORY=components-searchbox--project-search in the accessible lane after restoring the glyph,
    and in the physical lane after centering the clear target. Each owned run traversed 275 stories.
  • Passed (Paper owned smoke): STORYBOOK_SMOKE_TAG=flex-third-wave yarn storybook smoke --macos --paper --mode stories-and-tests --input accessible
    and --input physical: 10/10 and 18/18 authored cases. Both runs traversed 275 stories.
  • Visually inspected: target-window captures for all ten on macOS 27.2.1 / React Native macOS 0.81.9 Fabric
    and Paper, in Flex light/standard contrast at 2×: wrapped and disabled labels, full popup destinations, separate
    navigation actions, rounded and square selection chrome, the scroll thumb in motion, and the independent clear target.
  • Passed (discovery and bundles): yarn storybook test --windows --list --tag flex-third-wave --input accessible
    and its --win32 equivalent (10 cases each); --input physical on both endpoints discovered 17 cases each.
    yarn storybook bundle --windows and yarn storybook bundle --win32 passed. Native Windows and Win32 are not
    qualified by these checks. VoiceOver/Narrator speech, native form relations, IME composition, and popup boundary
    continuation remain separate gates.

Second batch

  • Passed: yarn workspace @fluentui-react-native/components test 'src/(index\.test|components/(presence-badge|persona|label|swatch|interaction-tag|split-button|textarea|message-bar|teaching-popover|drawer|menu-button)/)' (66 tests).
  • Passed: yarn clean-lage-cache followed by CI=true FURN_JEST_MAX_WORKERS=1 FURN_TEST_TIMEOUT_SCALE=2 yarn lage buildci --concurrency 2;
    yarn change:check.
  • Passed (Paper owned smoke): STORYBOOK_SMOKE_TAG=flex-second-wave yarn storybook smoke --macos --paper --mode stories-and-tests --input accessible
    and --input physical: 14/14 and 19/19 authored cases, respectively; 255 stories traversed per run. Re-ran the
    updated Textarea cases with STORYBOOK_SMOKE_STORY=components-textarea--comments and --input physical.
  • Passed (Fabric owned smoke): STORYBOOK_SMOKE_TAG=flex-second-wave yarn storybook smoke --macos --mode stories-and-tests --input accessible
    (14 passed) and STORYBOOK_SMOKE_STORY=components-textarea--comments yarn storybook smoke --macos --mode stories-and-tests --input physical
    (2 passed). The other 17 physical cases had already passed yarn storybook test --macos --tag flex-second-wave --input physical.
    The owned smoke runs each traversed 255 stories. The Textarea AX name case is explicitly unsupported on macOS Fabric;
    the separate native value and newline cases passed.
  • Visually inspected: ten owned-window captures per macOS renderer in Flex light/standard contrast. Checked
    status marks, overflow and text layout, the SplitButton seam, Textarea line breaks, and inline vs. anchored panels.
  • Passed (discovery and bundles): yarn storybook test --windows --list --tag flex-second-wave --input accessible
    and its --win32 equivalent (15 cases each); yarn storybook bundle --windows and yarn storybook bundle --win32.
    The second-wave hosted run passed the
    Windows and Win32 app jobs. Windows Fabric Storybook failed a PresenceBadge test that treated raw automation ID lookup
    as accessible traversal; the third wave updates the assertion to use the exposed accessibility tree. Both Win32
    Storybook lanes stopped at the Textarea Comments preview before reaching authored cases. Screen-reader speech, high
    contrast, native label relationships, and full popup Tab continuation are separate gates, not claimed by these runs.

First batch

  • Passed: yarn clean-lage-cache and CI=true FURN_JEST_MAX_WORKERS=1 FURN_TEST_TIMEOUT_SCALE=2 yarn lage buildci --concurrency 2;
    yarn change:check.
  • Passed: STORYBOOK_SMOKE_TAG=flex-first-wave yarn storybook smoke --macos --mode stories-and-tests --input accessible
    and the same command with --input physical: 10/10 and 13/13 authored cases, respectively, and 234 stories rendered per run.
  • Passed: STORYBOOK_SMOKE_TAG=flex-first-wave yarn storybook smoke --macos --paper --mode stories-and-tests --input accessible
    and the same command with --input physical: 10/10 and 13/13 authored cases, respectively, and 234 stories rendered per run.
    The first accessible Paper attempt stopped before any cases in the app launch/cleanup path; the retry passed.
  • Passed: native visual inspection on macOS 27.2.1 / React Native macOS 0.81.9, Fabric and Paper, Flex light and standard
    contrast at 2× backing scale. AX naming, native actions and physical keyboard were checked separately; VoiceOver/Narrator
    speech, high contrast and fractional backing scales were not run.
  • Passed (discovery only): yarn storybook test --windows --list --tag flex-first-wave --input accessible and its --win32
    equivalent select eight cases each. Passed (JS bundles): yarn storybook bundle --windows and yarn storybook bundle --win32.
    The first-batch Windows and Win32 jobs all passed.
Before After
The five contracts had no native component implementation. AvatarGroup shows five members or four plus a count; the rating previews preserve the exact numeric score and fill half-stars from logical start; the enlarged compound command wraps without clipping and measures 140 points against its 60-point minimum; the destructive command distinguishes subtle, primary, disabled, and named icon-only states.
The next ten contracts had no runtime implementation. Storybook shows passive presence and identity layouts, a named nonfocusable form caption, a multiline editor, independent command and removal targets, four status banners, a two-step anchored lesson, and an inline inspector that leaves the page operable.
Ten more contracts had no runtime implementation. Storybook shows a collapsed breadcrumb with operable links, form feedback and independent help, destination and disclosure rows, keyboard-managed choices and commands, a native scroll viewport, and a named search editor with separate clear.

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <[email protected]>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
Co-authored-by: Copilot <[email protected]>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
Co-authored-by: Copilot <[email protected]>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size report

Tree-shaken, minified production esbuild bundles with React and React Native runtimes externalized.

Scenario Modules-Mac (Δ) Modules-Win (Δ) Size-Mac (Δ) Size-Win (Δ)
components-button 81 (+3) 82 (+3) 77.87k (+4.25k) 77.80k (+4.25k)
components-catalog 522 (+295) 517 (+289) 394.21k (+164.90k) 393.15k (+163.91k)
design-themed-root 55 (+4) 56 (+4) 56.69k (+1.43k) 56.61k (+1.43k)
design-color-lib 6 (+0) 6 (+0) 6.27k (+0b) 6.27k (+0b)
design-theme-state-legacy-source 49 (+1) 50 (+1) 53.04k (-760b) 52.97k (-760b)
design-legacy-theme 42 (+0) 42 (+0) 39.11k (+0b) 42.91k (+0b)
design-legacy-theme-from-flex 58 (+4) 58 (+4) 61.05k (+1.17k) 64.86k (+1.17k)
design-fluent-light-theme 7 (+0) 7 (+0) 18.74k (+0b) 22.59k (+0b)
design-fluent-theme 35 (+0) 35 (+0) 27.46k (+4b) 31.25k (-1b)
design-fluent-hc-theme 32 (+0) 32 (+0) 27.34k (+0b) 31.13k (+0b)
design-flex-theme 29 (-4) 29 (-4) 14.30k (-9.07k) 14.29k (-9.07k)
design-flex-cool-theme 26 (New) 26 (New) 12.51k (New) 12.50k (New)
design-flex-warm-theme 26 (-7) 26 (-7) 12.28k (-11.15k) 12.27k (-11.15k)

The job is advisory: size changes are reported but do not fail the pull request. Bundle or analysis errors still fail.


View bundle-size workflow run

Co-authored-by: Copilot <[email protected]>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
@JasonVMo Jason Morse (JasonVMo) changed the title Implement the first wave of Flex desktop components Implement reviewed Flex desktop component waves Nov 24, 2026
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 3a664b44-e9a8-4958-bb22-a691a5a00f3b
Add mounted collection and navigation components and AppKit-backed dialog, picker, and numeric controls. Keep Windows-only native registrations and editable tag entry gated until those providers exist.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 3a664b44-e9a8-4958-bb22-a691a5a00f3b
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 74789a3e-a45d-43f9-a3f5-4e106cc6755c
@JasonVMo

Copy link
Copy Markdown
Contributor Author

Fourth Flex wave: Windows continuation

Verified that user/jasonvmo/missing-flex-components and this draft contained 715184c75 before work. Pushed the verified continuation as 57190a937; the PR remains open and draft. The macOS implementations, Win32 feature gates, and default Storybook exclusions were preserved. Neither endpoint has a full smoke pass.

Windows Fabric (RNW 0.81.38). Native-core /windows now registers a writable RangeValue peer for Rating and Slider. The driver invokes real UIA SetValue(double) and reads the committed prop independently. Rating accepted nonadjacent fractions and distinguished unset from zero. The two Slider thumbs had different names and committed independent writes; crossing writes were refused and left both readbacks unchanged. The focused run also passed Tree's native Expand and level/position/set-size checks and inline navigation. The earlier hosted =Pin collision was replaced with the intended secondary action's test ID and passed with actual UIA activation.

Office Win32 (RN Win32 0.81.9 / REX 0.81.1, Paper). Focused runs passed inline Nav/SimpleNav, Tree keyboard expansion, TreeItem selected state, and native Expand/Toggle with checked/mixed readback. The physical lane verified select-only TagPicker commits a second tag, preserves the first, and leaves options available. Target-window screenshots were inspected for Nav, SimpleNav, Tree/TreeItem, and TagPicker. The Tree fix avoids the opaque fill produced by zero-alpha Flex backgrounds in this host. REX did not expose UIA Level on the branch; that check is explicitly unsupported. No new native adapter or compiled functionality was added to REX. The actual picker/editor/modal registrations and missing contracts are recorded in #4384.

Gates retained. Fabric physical input became unavailable after the RDP session disconnected, and Windows Graphics Capture did not yield target frames. The public higher-order Rating/Slider Windows previews and default exclusions remain gated. The Fabric WinUI Select prototype rendered and exposed native disabled options, but mirrored/stale UIA option references prevented selection qualification. The SpinEditor prototype failed fast on first mount (0xc0000409); neither prototype is included. Dialog and Nav/SimpleNav overlays remain gated on owner-bound modal isolation (#4379), not Callout or a focus loop. IME and Narrator speech were not run. Editable TagPicker remains gated.

Commands and evidence

Commands below ran in apps/storybook unless noted. For smoke, $env:STORYBOOK_SMOKE_TAG='flex-fourth-wave'. The --config desktop.fourth-wave.local.mts commands used a temporary, matching CLI/runtime catalog (restored after diagnosis); the attach cohort is not a full traversal.

Commands Result
yarn storybook build-driver --windows; yarn storybook build-driver --win32; yarn storybook prep --windows; yarn storybook build --windows Passed. The final Windows native build from this checkout is fda9d484-aaaa-4376-9ed6-3639259daad0. Win32 used the bundled JS and the installed host; a Win32 native build is unsupported.
yarn storybook test --windows --list --input accessible --tag flex-fourth-wave; same with --input physical and both --win32 variants Passed discovery on both targets and lanes, with existing exclusions. Discovery is not native qualification.
yarn storybook smoke --windows --mode stories-and-tests --input accessible; same with --input physical Baseline failed: accessible hit duplicate AppX development registration (0x80073CFB). After exact-location registration reuse, physical traversed 106 stories then timed out at RatingItem, before authored cases (b36b34c0-ec5f-4300-93ea-ba11b7ca94e1).
yarn storybook smoke --win32 --mode stories-and-tests --input accessible; same with --input physical Both reproduced the separate Textarea Comments traversal stop after 40 passes, before any authored cases (3b935dca-8c6c-403a-ae91-a8a4e5438239, e06f25a8-7675-4e25-8d99-410b76b05fb5). The physical retry included the read-only capability probe in the catalog; no exclusions changed.
yarn storybook --config desktop.fourth-wave.local.mts smoke --windows --mode stories-and-tests --input accessible; same with --input physical Isolated prototype runs passed the first seven Rating/Slider/Select renders, then SpinButton terminated the app. No authored cases ran (6ef0ff79-6126-4e49-8b39-d3e71cbd5c94, 247ec60f-5451-4692-bf2d-69d633be6081).
yarn storybook --config desktop.fourth-wave.local.mts driver --windows --agent --input accessible; yarn storybook --config desktop.fourth-wave.local.mts test --windows --attach-agent --input accessible --tag flex-fourth-wave Six authored passes with actual native actions; one unqualified Select prototype case failed and was removed (a6a71b4d-0e56-473a-8a08-149eb8c0d38a). Same attach command with --tag flex-third-wave --story components-navitem--project-routes passed the stable Pin selector (52e93042-6b43-4be8-bbef-e01410e758f0). A separate capture run failed to receive WGC frames.
Same two Windows attach commands with --input physical One read-only case passed; seven input cases were unsupported because the Windows session had no interactive foreground desktop (2a6a7e32-b4a8-469c-a8a1-b5bd20c12b59). Not counted as input qualification.
yarn storybook --config desktop.fourth-wave.local.mts driver --win32 --agent --input accessible; yarn storybook --config desktop.fourth-wave.local.mts test --win32 --attach-agent --input accessible --tag flex-fourth-wave; separate commands with --input physical Accessible: five passed, one declared hierarchy gap (061606b1-2a68-4b73-86f2-43477927e02f). Physical: six passed on the active desktop (cc41044f-0df2-4fe4-bc16-4296df3e03e5). These counts include the registration probe.
yarn storybook --config desktop.fourth-wave.local.mts smoke --win32 --mode stories-and-tests --input accessible with the isolated List fixture Both minimal previews and all three required Callout stories rendered. The interactive child did not expose its expected native name; the previous fail-fast did not reproduce in this fixture. Interactive List stays gated (#4344). The separate test --win32 --attach-agent --input accessible --tag flex-fourth-wave --story native-rex-list-host-probe--passive case passed (5e413ec1-276c-4be6-a43a-d1238f36894b).

Focused supervisors settled and released their app incarnations and claims. After failed runs, only the matching exited claims/leases were reconciled; Fabric's durable quarantine was lifted through the trusted recoverTarget API only after native proof of exit for the exact recorded incarnation. No owned listener or active claim remained before repository validation.

Repository validation: yarn workspace @fluentui-react-native/<workspace> format, build, lint, and test passed for components, native-core, desktop-driver, and storybook-desktop (components build passed on rerun after fixing a test's required props, with yarn workspace @fluentui-react-native/components test tree-item also passing). The app's declared format and lint passed. The desktop-driver package test reported 1,307 passed / 93 skipped and storybook-desktop reported 492 passed / 5 skipped; those skips are not native qualification. yarn workspace @fluentui-react-native/native-core codegen:windows --check, yarn change:check, yarn oxfmt --check, and the targeted yarn markdown-link-check -q -c .github/markdown-link-check-config.json <changed-file> checks passed.

After all native runs settled, yarn clean-lage-cache passed. CI=true FURN_JEST_MAX_WORKERS=1 FURN_TEST_TIMEOUT_SCALE=2 yarn lage buildci --concurrency 2 first failed from a Lage worker heap error after skills lint verified its sources. Retrying with the same CI settings plus NODE_OPTIONS=--max-old-space-size=4096 and yarn lage buildci --concurrency 1 passed with 89 executed successes, 97 cache hits, and zero failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant