Skip to content

Implement reviewed Flex desktop component waves - #4528

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

Jason Morse (JasonVMo) wants to merge 9 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 <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5316a48e-4ec4-4d0e-b737-bd9b71c823ca
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b2a9c8a2-7065-41f0-850e-f3627ca65cad
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 521 (+294) 513 (+285) 393.79k (+164.48k) 392.36k (+163.12k)
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 <223556219+Copilot@users.noreply.github.com>
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 <223556219+Copilot@users.noreply.github.com>
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 <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3a664b44-e9a8-4958-bb22-a691a5a00f3b
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