Skip to content

[SelectPanel 6/8] Isolate optional native command invokers - #8845

Draft
TylerJDev wants to merge 1 commit into
tylerjdev/selectpanel-stack-05-nativefrom
tylerjdev/selectpanel-stack-06-invokers
Draft

TylerJDev wants to merge 1 commit into
tylerjdev/selectpanel-stack-05-nativefrom
tylerjdev/selectpanel-stack-06-invokers

Conversation

@TylerJDev

@TylerJDev TylerJDev commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Layer optional browser command invokers onto the validated native hosts. Hosting itself remains command-agnostic, and JavaScript activation stays available when enhancement is disabled or unsupported.

Stack

Part 6/8 of the SelectPanel split. Review this PR against its selected base, #8844, rather than against main.

Part PR Base
1 #8840 main
2 #8841 #8840
3 #8842 #8841
4 #8843 #8842
5 #8844 #8843
6 #8845 #8844
7 #8846 #8842
8 #8847 #8842

The complete integration branch retains all slices for testing; it is not the base of any focused PR. Related independent AnchoredOverlay ID fix: #8837. This split does not close #7287.

Changelog

New

The default-off primer_react_select_panel_native_invokers flag, isolated invoker reconciliation, command props, and cancellation/fallback coverage.

Changed

Trigger and close controls can use supported browser commands while preserving controlled React state. Reconciliation waits for native default actions and consumer cancellation; non-button configured anchors retain JavaScript activation.

Removed

None.

Rollout strategy

  • No changes needed in github/github-ui
  • Ships with feature flag(s)

primer_react_select_panel_native_invokers defaults to false and requires native hosting plus browser support. Disable only this flag to retain native hosting with JavaScript controls. Includes a minor changeset.

Testing & Reviewing

Compare native hosting with invokers disabled/enabled, exercise command cancellation and rejected controlled transitions, and verify modal versus anchored commands, close-button wiring, non-button anchors, and the React 18/19 command-attribute spelling. The Invokers story demonstrates the enhancement.

Keep command reconciliation in an internal enhancement and the host lifecycle command-agnostic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e20c9cd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

This branch was successfully deployed

2 active deployments
storybook-preview-8845 — e20c9cd1 Deployed Nov 25, 2026 by github-actions[bot]
github-pages — e20c9cd1 Deployed Nov 25, 2026 by TylerJDev via deploy-preview #34547
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant