Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: move <LicenseBannerView /> to generic collapse - #28831

Merged
jakehwll merged 1 commit into
mainfrom
jakehwll/collapsible-cleanup
Sep 1, 2026
Merged

fix: move <LicenseBannerView /> to generic collapse#28831
jakehwll merged 1 commit into
mainfrom
jakehwll/collapsible-cleanup

Conversation

@jakehwll

@jakehwll jakehwll commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pull-request previously used <Expander /> and was the only calling spot for it. Looks like a really easy way to remove a bespoke component if its the only use-case of <Expander />

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T09:17:02.011514Z 3f1a847 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f1a847678

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +146 to +147
<CollapsibleTrigger className="text-xs mt-0.5">
<Button

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Make the Button the collapsible trigger

When the banner has at least three messages, this renders nested <button> elements because CollapsibleTrigger defaults to a button and Button renders another button. This creates invalid markup and two keyboard focus stops for one action, and can make the semantic button lookup in the ThreeWarnings story ambiguous. Set asChild on CollapsibleTrigger, as the other Button-backed collapsible triggers do, so the Button itself becomes the single trigger.

AGENTS.md reference: site/AGENTS.md:L12-L12

Useful? React with 👍 / 👎.

@jakehwll
jakehwll merged commit e03ff42 into main Sep 1, 2026
48 of 49 checks passed
@jakehwll
jakehwll deleted the jakehwll/collapsible-cleanup branch September 1, 2026 10:19
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants