Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Port us away from deprecated Select variant "checkbox" #21373

Merged
merged 6 commits into from
Dec 19, 2024

Conversation

mvollmer
Copy link
Member

@mvollmer mvollmer commented Dec 2, 2024

No description provided.

@mvollmer mvollmer added no-test For doc/workflow changes, or experiments which don't need a full CI run, blocked Don't land until something else happens first (see task list) labels Dec 2, 2024
@mvollmer mvollmer force-pushed the lib-checkbox-select branch 2 times, most recently from 860f19b to 0ea56f3 Compare December 5, 2024 07:48
@mvollmer mvollmer removed the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Dec 5, 2024
@mvollmer mvollmer force-pushed the lib-checkbox-select branch from 0ea56f3 to fcab3a0 Compare December 5, 2024 08:41
@mvollmer mvollmer removed the blocked Don't land until something else happens first (see task list) label Dec 11, 2024
@mvollmer mvollmer force-pushed the lib-checkbox-select branch from fcab3a0 to fbab4c0 Compare December 11, 2024 08:20
@mvollmer mvollmer marked this pull request as ready for review December 11, 2024 08:24
@mvollmer mvollmer force-pushed the lib-checkbox-select branch 2 times, most recently from 37773f5 to b23372d Compare December 17, 2024 11:04
@mvollmer mvollmer requested a review from martinpitt December 17, 2024 11:04
@martinpitt martinpitt removed their request for review December 18, 2024 16:51
@martinpitt
Copy link
Member

@mvollmer removing from my review queue as this is still red. I rather dislike that we have to take on more and more PF code with what should be generic upstream components, but alas.. 🤷‍♂️ Thanks for working on this!

@mvollmer mvollmer force-pushed the lib-checkbox-select branch from b23372d to 27a0d5f Compare December 19, 2024 09:08
const { content, value, key, ...props } = option;
const isSelected = selected.includes(value);
return (
<SelectOption value={value} key={key !== undefined ? key : `${value}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test.

});

const onToggleClick = () => {
onToggle && onToggle(!isOpen);
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test.

selected={selected}
onSelect={_onSelect}
onOpenChange={(isOpen) => {
onToggle && onToggle(isOpen);
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test.

@mvollmer
Copy link
Member Author

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Cheers!

@martinpitt martinpitt merged commit d042abb into cockpit-project:main Dec 19, 2024
83 of 85 checks passed
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.

3 participants