Skip to content

326 service configuration select options #1937

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ricardovdheijden
Copy link
Collaborator

#326

Adds new button to the product blocks tree to select all product blocks of a certain type

Copy link

changeset-bot bot commented May 14, 2025

🦋 Changeset detected

Latest commit: 3484bc6

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

This PR includes changesets to release 1 package
Name Type
@orchestrator-ui/orchestrator-ui-components 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

}

const { checked, data } = changedOption;
const shouldAdd = checked === 'on';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const shouldAdd = checked === 'on';
const shouldAddIds = checked === 'on';

const shouldAdd = checked === 'on';

expandAll();
return shouldAdd ? selectIds(data.ids) : deselectIds(data.ids);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return shouldAdd ? selectIds(data.ids) : deselectIds(data.ids);
return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids);

const items2Map = productBlockInstances.reduce((acc, curr) => {
const name = getFieldFromProductBlockInstanceValues(
curr.productBlockInstanceValues,
'name',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a way to use an enum here so 'name' doesn't have to be hardcode?

text={t(
'selectByNameButtonText',
)}
onClick={() => togglePopover()}
Copy link
Contributor

Choose a reason for hiding this comment

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

                                            onClick={togglePopover}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants