Skip to content

ref(issues) cmdk actions#112564

Closed
JonasBa wants to merge 7 commits intojb/cmdk/jsx-pocfrom
jb/cmdk/issues-cmdk
Closed

ref(issues) cmdk actions#112564
JonasBa wants to merge 7 commits intojb/cmdk/jsx-pocfrom
jb/cmdk/issues-cmdk

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented Apr 9, 2026

Superseded by split PRs based on jb/cmdk/jsx-poc:

Closing this PR to make review easier and keep the remaining changes focused.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2026
JonasBa and others added 2 commits April 9, 2026 06:56
Previously, SlotConsumer fell back to rendering children in-place when
no outlet element was registered. This caused two problems: a flash of
content at the wrong DOM position before the portal teleported it to
the outlet, and a React subtree remount (in-place ReactNode vs
ReactPortal are different element types) that reset useId() keys on
every outlet mount/unmount cycle.

Render null instead, so content only appears once the outlet is ready
and component identity is preserved across outlet lifecycle changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If allInQuerySelected is already true, calling toggleSelectAllVisible()
followed by setAllInQuerySelected(true) would deselect everything then
immediately re-select it — two unnecessary state updates. Guard the
action so it is a no-op when the full query is already selected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
JonasBa and others added 3 commits April 9, 2026 07:31
Register CMDK actions for the issues feed: select all + bulk actions
(resolve, archive, set priority, merge) and individual issue actions
for each visible issue in the list.
Co-Authored-By: Claude <noreply@anthropic.com>
Move ErrorLevel indicator into the label alongside the title, drop the
separate level text from details, shrink title to sm and details to xs,
add paddingBottom to the label for breathing room, and use getTextValue
when pushing nav-stack entries so rich ReactNode labels produce correct
placeholder text.
Co-Authored-By: Claude <noreply@anthropic.com>
@JonasBa
Copy link
Copy Markdown
Member Author

JonasBa commented Apr 9, 2026

Superseded by #112568 and #112567.

@JonasBa JonasBa closed this Apr 9, 2026
JonasBa added a commit that referenced this pull request Apr 9, 2026
Render slot consumer content only after an outlet element is available.

Previously the slot consumer rendered its children in place until the
outlet mounted, then switched over to a portal. That caused a flash of
content at the wrong DOM position and changed the rendered element type
under React, which reset component identity across outlet lifecycle
changes.

This makes the consumer return `null` until the outlet is ready and
updates the slot tests to match that behavior.

Refs GH-112564

Co-authored-by: OpenAI Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant