Skip to content

MGMT-20404: Refactor dropdown component import package#2941

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-assisted:masterfrom
ElayAharoni:Refactor-Dropdown-component-import-package
May 30, 2025
Merged

MGMT-20404: Refactor dropdown component import package#2941
openshift-merge-bot[bot] merged 1 commit intoopenshift-assisted:masterfrom
ElayAharoni:Refactor-Dropdown-component-import-package

Conversation

@ElayAharoni
Copy link
Contributor

@ElayAharoni ElayAharoni commented Apr 29, 2025

https://issues.redhat.com/browse/MGMT-20404

changed all the dropdown component usages to use the patternfly v5 component and not hte deprecated one

Summary by CodeRabbit

  • New Features
    • Utilities from the common library are now available for import, expanding the public API.
  • Refactor
    • All dropdown components have been updated to use the latest PatternFly UI elements, providing a more consistent and modern user experience.
    • Dropdown toggles and menus now use explicit open state controls and improved event handling.
    • Informational tooltips and dropdown groupings have been enhanced for clarity and usability.
    • Dropdown interaction patterns in tests have been standardized and selectors updated to match UI changes.
    • Test selectors and interaction methods for dropdown fields have been refined for more precise and reliable UI testing.
  • Style
    • Layout and spacing of dropdowns have been refined for better alignment and appearance.
    • Removed obsolete CSS styling for OpenShift version dropdown to streamline UI presentation.

@openshift-ci openshift-ci bot requested review from ammont82 and celdrake April 29, 2025 13:27
@coderabbitai
Copy link

coderabbitai bot commented Apr 29, 2025

"""

Walkthrough

This update systematically refactors dropdown components across multiple files to replace deprecated PatternFly components with their modern equivalents. The changes include swapping out DropdownToggle for MenuToggle, updating event handling for dropdown open state and selection, and restructuring dropdown items to be rendered as children rather than via the dropdownItems prop. In some components, tooltip and popover implementations are modernized, and imports are consolidated. Additionally, the public API of the common library is expanded by re-exporting utilities. Test code is updated to improve selector accuracy and interaction consistency. No exported entity signatures are changed, except for the addition of the new export and a minor prop type update.

Changes

File(s) Change Summary
libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx Wrapped AddHostDropdown in a GridItem with a column span for layout alignment; no logic changes.
libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
libs/ui-lib/lib/common/components/hosts/DiskRole.tsx
libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx
Refactored to use current PatternFly dropdown components (MenuToggle, DropdownList, Divider, etc.), updated event handling signatures, and changed dropdown items to be rendered as children. Updated imports and removed deprecated components. Adjusted toggle logic and tooltip/popover usage where relevant. No changes to exported entity signatures.
libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
Changed DropdownItem import from deprecated to current PatternFly module; no logic changes.
libs/ui-lib/lib/common/index.ts Added export: export * from './utils' to extend the public API.
libs/ui-lib-tests/cypress/views/clusterDetails.ts Updated dropdown interaction patterns for OpenShift version, CPU architecture, and control plane nodes fields by clicking container elements directly. Updated CSS selectors for dropdown menus and selected text. Added getter and selection methods for CPU architecture and control plane nodes fields and dropdowns.
libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx Added explicit id attributes to FormGroup, Dropdown, and MenuToggle components for improved accessibility and consistency; added onOpenChange handler.
libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts Updated selector for hostname change menu items from [role="menuitem"] to .pf-v5-c-menu__item-text to reflect markup changes; no other logic changes.
libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts Removed explicit dropdown open call before selecting control plane nodes; no other test logic changed.
libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts Removed explicit CPU architecture dropdown open call and capitalized architecture string argument; no other changes.
libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts Added explicit dropdown open calls before CPU architecture selection, fixed element targeting in assertions, and standardized capitalization for ARM64 architecture string.
libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts Corrected element selectors and attribute checks for external partner integrations dropdown items; replaced some method calls for more accurate element targeting.
libs/ui-lib-tests/cypress/views/common.ts Increased timeout from 2000ms to 3000ms in verifyIsAtStep method for more robust step verification.
libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts Added method to find control plane node field element; updated dropdown selection to click on field element instead of dropdown container.
libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts Split field and dropdown selectors into separate methods; updated selection to click field then select option from dropdown.
libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts Renamed and split dropdown selectors for field and dropdown menu; updated all calls to use appropriate selectors for opening dropdown and selecting items.
libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts Added method to find OpenShift version field element; updated selection to click field before selecting version from dropdown.
libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts Added constant arm64Text = 'Arm64' for CPU architecture string consistency in tests.
libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css Deleted CSS file controlling dropdown menu max height and styling for OpenShift version dropdown.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DropdownComponent
    participant MenuToggle
    participant DropdownList

    User->>MenuToggle: Clicks toggle
    MenuToggle->>DropdownComponent: Toggle open state
    DropdownComponent->>DropdownList: Render dropdown items (children)
    User->>DropdownList: Selects item
    DropdownList->>DropdownComponent: onSelect event
    DropdownComponent->>MenuToggle: Update toggle label/state
Loading

Suggested labels

lgtm, approved, size/L

Suggested reviewers

  • batzionb
  • celdrake
  • rawagner
  • ammont82
  • jgyselov

Poem

In fields of code where dropdowns bloom,
The rabbits hopped and swept the room.
Out with the old, in with the new,
PatternFly shines in every view!
Toggles now gleam, events are tight—
Utilities exported, oh what delight!
🐇✨ Dropdowns modern, future bright.
"""

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the config "@openshift-assisted/eslint-config" to extend from. Please check that the name of the config is correct.

The config "@openshift-assisted/eslint-config" was referenced from the config file in "/libs/ui-lib/.eslintrc.cjs".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the config "@openshift-assisted/eslint-config" to extend from. Please check that the name of the config is correct.

The config "@openshift-assisted/eslint-config" was referenced from the config file in "/libs/ui-lib/.eslintrc.cjs".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the config "@openshift-assisted/eslint-config" to extend from. Please check that the name of the config is correct.

The config "@openshift-assisted/eslint-config" was referenced from the config file in "/libs/ui-lib/.eslintrc.cjs".

If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.

  • 18 others

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9a2bbfd and 2acfea9.

📒 Files selected for processing (35)
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts (0 hunks)
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/bareMetalDiscoveryIsoModal.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts (3 hunks)
  • libs/ui-lib-tests/cypress/views/common.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css (0 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (6 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
💤 Files with no reviewable changes (2)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css
🚧 Files skipped from review as they are similar to previous changes (33)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
  • libs/ui-lib/lib/common/index.ts
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts
  • libs/ui-lib-tests/cypress/views/bareMetalDiscoveryIsoModal.ts
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts
  • libs/ui-lib-tests/cypress/views/common.ts
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: circular-deps
  • GitHub Check: translation-files
  • GitHub Check: format
  • GitHub Check: lint
  • GitHub Check: tests
  • GitHub Check: unit-tests
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ElayAharoni ElayAharoni requested review from ammont82, jgyselov and rawagner and removed request for ammont82, celdrake, jgyselov and rawagner April 29, 2025 13:28
@openshift-ci openshift-ci bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Apr 29, 2025
@ElayAharoni ElayAharoni requested a review from ammont82 April 29, 2025 13:28
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🧹 Nitpick comments (3)
libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (1)

36-40: Remove unused dependency to avoid unnecessary renders

useEffect includes t in its dependency list but does not use it in the callback body, causing avoidable re-executions whenever the translation function instance changes.

-}, [filteredImages.length, setValue, t, value]);
+}, [filteredImages.length, setValue, value]);
libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (1)

61-79: Unify children into a DropdownList for better a11y & consistency (optional)

The first two items (With Discovery ISO, With iPXE) are rendered directly under <Dropdown> while the BMC items sit inside a DropdownList.
PatternFly 5 guidelines recommend wrapping all items in one or more DropdownList elements for screen-reader compatibility.

Consider:

-      <Dropdown
-        ...
-      >
-        {[
-          <DropdownItem ... />,
-          ...
-        ]}
+      <Dropdown ...>
+        <DropdownList>
+          <DropdownItem ... />
+          ...
+        </DropdownList>
+        <Divider component="li" />
+        <DropdownList id="discovery-bmc" className="ai-discovery-bmc__group">
+          ...
+        </DropdownList>
       </Dropdown>
libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (1)

117-125: Guard against clicks on non-item content

Using event.currentTarget.textContent assumes the clicked element is the DropdownItem.
If you later nest extra markup (e.g., icons) the text may include unwanted whitespace or be undefined.
Consider taking label directly from a data attribute or the second parameter PatternFly already gives you (val).

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4bc6a50 and a1c13c5.

📒 Files selected for processing (19)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (5 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (2)
libs/types/assisted-installer-service.d.ts (1)
  • PlatformType (2418-2418)
libs/ui-lib-tests/cypress/fixtures/cluster/external-platform-types.ts (1)
  • externalPlatformTypes (1-23)
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: lint
  • GitHub Check: unit-tests
  • GitHub Check: tests
  • GitHub Check: circular-deps
  • GitHub Check: translation-files
  • GitHub Check: format
🔇 Additional comments (49)
libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1)

2-2: Import updated to use non-deprecated PatternFly component.

The import for DropdownItem has been correctly updated to use the current @patternfly/react-core package instead of the deprecated version.

libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1)

2-2: Import updated to use non-deprecated PatternFly component.

The import for DropdownItem has been correctly updated to use the current @patternfly/react-core package instead of the deprecated version.

libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1)

3-3: Import updated to use non-deprecated PatternFly component.

The import for DropdownItem has been correctly updated to use the current @patternfly/react-core package instead of the deprecated version.

libs/ui-lib/lib/common/index.ts (1)

9-9: New utils export added to support dropdown component refactoring.

This new export makes utility functions available through the common library's public API, which is necessary to support the PatternFly v5 dropdown component refactoring across the codebase.

libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1)

85-92: Good layout restructuring for the AddHostDropdown component.

Wrapping the AddHostDropdown component inside a GridItem with a specific span improves the layout consistency within the grid system. This change maintains the component's behavior while ensuring it fits properly within the grid layout.

libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2)

3-13: Appropriate consolidation of PatternFly imports.

The updated imports correctly include the modern PatternFly v5 components needed for dropdown functionality, replacing deprecated components.


133-156: Successfully modernized dropdown implementation.

The dropdown has been properly refactored to use PatternFly v5 components:

  • Replaced deprecated toggle with MenuToggle
  • Updated event handling with onOpenChange and explicit onClick
  • Changed from dropdownItems prop to rendering children inside DropdownList

This implementation follows the current PatternFly best practices for dropdown components.

libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (4)

8-12: Correctly updated PatternFly imports.

The import statements have been properly updated to include the modern MenuToggle and MenuToggleElement components.


67-79: Well-implemented dropdown toggle refactoring.

The dropdown toggle has been successfully converted from the deprecated approach to use the modern MenuToggle component with proper event handling and expanded state management.


85-85: Improved type safety for event handler.

The event type for onSelect has been appropriately refined from a generic synthetic event to a more specific mouse event, improving type safety.


119-121: Properly updated dropdown items rendering.

Changed from passing dropdown items via the deprecated dropdownItems prop to rendering them as children, which follows current PatternFly patterns.

libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (4)

2-9: Correctly updated PatternFly imports.

The import statements have been properly updated to include the modern PatternFly v5 components.


48-51: Simplified and improved onSelect handler.

The event handler has been simplified while maintaining functionality and improving type safety by using a more specific mouse event type.


53-62: Well-implemented modern toggle component.

The toggle implementation has been successfully updated to use MenuToggle with proper ref handling, click events, and expanded state management.


66-68: Properly updated dropdown rendering.

The dropdown now correctly renders items as children rather than using the deprecated dropdownItems prop.

libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4)

2-10: Correctly updated the imports to use PatternFly v5 components.

The imports have been properly updated to include the new MenuToggle, MenuToggleElement, and DropdownList components from PatternFly v5.


65-71: New event handler signature correctly handles both mouse events and values.

The updated event handler now properly accepts optional parameters for both the event and value, which aligns with PatternFly v5's event handling pattern.


73-73: Good separation of toggle handling logic.

Creating a dedicated function for toggle handling improves code readability and follows best practices for state management.


78-96: Correctly implemented PatternFly v5 dropdown structure.

The dropdown implementation has been properly modernized with:

  • Using MenuToggle instead of deprecated DropdownToggle
  • Adding onOpenChange handler for state management
  • Setting shouldFocusToggleOnSelect for better accessibility
  • Wrapping dropdown items in DropdownList as children instead of using the deprecated dropdownItems prop

This implementation follows PatternFly v5 best practices.

libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4)

2-9: Imports correctly updated to use PatternFly v5 components.

The imports have been properly modernized to include MenuToggle and MenuToggleElement from PatternFly v5.


100-104: Event handler type correctly refined.

The onSelect event handler type has been properly refined to use a more specific React.MouseEvent<Element, MouseEvent> type, which matches PatternFly v5's expected event types.


117-121: MenuToggle implementation follows PatternFly v5 patterns.

The toggle is now correctly implemented as a function that returns a MenuToggle component with appropriate props for handling click events and showing the expanded state.


130-132: Dropdown structure correctly updated.

The dropdown items are now properly passed as children rather than using the deprecated dropdownItems prop, aligning with PatternFly v5 patterns.

libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3)

2-2: Imports correctly updated to use PatternFly v5 components.

The imports have been properly modernized to include MenuToggle and MenuToggleElement directly from @patternfly/react-core.


84-97: Event handler type correctly refined.

The onSelect event handler type has been properly refined to use a more specific React.MouseEvent<Element, MouseEvent> type, aligning with PatternFly v5 patterns.


100-111: MenuToggle implementation follows PatternFly v5 best practices.

The toggle is now correctly implemented as a function that returns a MenuToggle component with appropriate props for handling click events, expanded state, and disabled state. The added className ensures consistent styling.

libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4)

8-13: Imports correctly updated to use PatternFly v5 components.

The imports have been properly modernized to include MenuToggle and MenuToggleElement from PatternFly v5.


204-209: DropdownItem correctly updated with value prop.

The value prop has been added to the DropdownItem components, which aligns with PatternFly v5 expectations for improved selection handling.


244-249: Event handler simplified and properly typed.

The event handler has been simplified and now uses the correct MouseEvent<Element, MouseEvent> type, which matches PatternFly v5's expected event types.


251-261: MenuToggle implementation follows PatternFly v5 patterns.

The toggle is now correctly implemented as a function that returns a MenuToggle component with appropriate props for handling click events, expanded state, and disabled state.

libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (4)

2-11: Clean up of PatternFly imports looks good

The consolidated imports from @patternfly/react-core and removal of deprecated components aligns with modern PatternFly v5 practices.


128-137: Event handler type refinement is appropriate

The onSelect callback now uses a more specific React.MouseEvent<Element, MouseEvent> type instead of a generic event, which improves type safety.

🧰 Tools
🪛 Biome (1.9.4)

[error] 134-134: Change to an optional chain.

Unsafe fix: Change to an optional chain.

(lint/complexity/useOptionalChain)


156-165: Correct implementation of MenuToggle

The toggle implementation has been properly updated to use MenuToggle instead of the deprecated DropdownToggle, with appropriate handling of expanded state and onClick events.


169-178: Dropdown children pattern correctly implemented

The Dropdown component now correctly renders dropdown items as children rather than through the deprecated dropdownItems prop, following current PatternFly patterns.

libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (5)

2-8: Import statements updated appropriately

The imports have been properly updated to include MenuToggle, MenuToggleElement, and DropdownPopperProps from @patternfly/react-core, aligning with PatternFly v5 standards.


19-19: Type refinement for menuAppendTo is correct

The prop type has been properly updated to use the PatternFly v5 DropdownPopperProps['appendTo'] type.


38-44: Event handler signature updated correctly

The onSelect callback now uses a more specific React.MouseEvent<Element, MouseEvent> type, improving type safety.


46-58: MenuToggle implementation is complete

The toggle implementation has been properly updated to use MenuToggle with the correct props for handling state, including isFullWidth, onClick, isDisabled, and isExpanded.


61-70: Dropdown popperProps and children correctly implemented

The Dropdown component now correctly uses popperProps to set the appendTo property and renders dropdown items as children, following current PatternFly patterns.

libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (5)

2-2: PatternFly import consolidation is clean

The imports have been properly updated to include all necessary components from @patternfly/react-core, removing deprecated imports.


66-66: Added value prop to DropdownItem

The value prop has been correctly added to the DropdownItem component, which helps with type safety and selection management.


71-78: Expanded event handler implementation

The onSelect handler has been updated to take both an event and value parameter, with appropriate type safety. The function now explicitly sets the display value from the passed value and the form value from the event target's id.


80-89: MenuToggle implementation is correct

The toggle implementation has been properly updated to use MenuToggle with appropriate props, including onClick for toggling state and isExpanded to reflect open state.


92-94: Dropdown children pattern correctly applied

The Dropdown component now correctly renders dropdown items as children rather than using the deprecated dropdownItems prop, and the redundant name prop has been removed.

libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (5)

2-20: Import statements updated appropriately

The imports have been properly updated to include MenuToggle, MenuToggleElement, DropdownList, and Checkbox from @patternfly/react-core, supporting the updated implementation.


74-78: Actions dropdown toggle correctly implemented

The actions dropdown toggle has been properly updated to use MenuToggle with a render function receiving a ref, correctly handling expanded state with isExpanded and toggle behavior with onClick.


80-82: Dropdown children pattern correctly applied

The actions dropdown now correctly renders items as children rather than using the deprecated dropdownItems prop.


95-105: Selection dropdown toggle with checkbox is well implemented

The selection dropdown toggle has been properly updated to use MenuToggle with a Checkbox component in the badge prop, correctly handling expanded state and toggle behavior.


108-115: DropdownList wrapper correctly implemented

The dropdown items are now properly wrapped in a DropdownList component, following current PatternFly patterns for structured dropdown content.

@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch 3 times, most recently from 987b612 to 165c30d Compare April 29, 2025 16:16
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 987b612 and 165c30d.

📒 Files selected for processing (20)
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (5 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
✅ Files skipped from review due to trivial changes (1)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
🚧 Files skipped from review as they are similar to previous changes (18)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx
  • libs/ui-lib/lib/common/index.ts
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: tests

@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch 4 times, most recently from 5249b57 to b374a2a Compare April 30, 2025 13:08
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5249b57 and b374a2a.

📒 Files selected for processing (21)
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts (3 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (5 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
✅ Files skipped from review due to trivial changes (2)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx
🚧 Files skipped from review as they are similar to previous changes (18)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
  • libs/ui-lib/lib/common/index.ts
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: translation-files
  • GitHub Check: unit-tests
  • GitHub Check: tests
  • GitHub Check: circular-deps
  • GitHub Check: format
  • GitHub Check: lint
🔇 Additional comments (3)
libs/ui-lib-tests/cypress/views/clusterDetails.ts (3)

13-18: Update other dropdown getters to follow same pattern.

The dropdown interaction has been properly updated to use direct clicks on the field elements instead of nested toggle buttons, aligning with the PatternFly v5 refactoring.


64-75: Good addition of consistent getter methods.

The new getter methods for CPU architecture field elements follow a consistent pattern with the other field methods, which improves code maintainability and readability.


152-163: Good addition of consistent getter methods for control plane nodes.

These new getter methods for control plane nodes field elements maintain consistency with the pattern established for other dropdown components.

@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch 5 times, most recently from 9b1ba2c to a4c8f52 Compare April 30, 2025 14:28
@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch from 1ea857e to 2c45118 Compare May 15, 2025 14:31
@ElayAharoni ElayAharoni requested a review from jgyselov May 15, 2025 14:31
@openshift-ci openshift-ci bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 15, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (1)

46-71: ⚠️ Potential issue

DropdownItems never propagate a value – use itemId (or value) instead of id

onSelect relies on the second callback argument (value) to identify which item was chosen, yet none of the rendered DropdownItems set itemId/value. PatternFly 5 only forwards itemId (PF 4 value) – not the DOM id – so value will always be undefined, breaking the cast to DiscoveryImageType, the discoveryImageTypes[...] lookup, and the parent callback.

-<DropdownItem
-  key="full-iso"
-  id="full-iso"
+<DropdownItem
+  key="full-iso"
+  itemId="full-iso"
+  id="full-iso"           // keep if you still need a DOM id

Apply the same change to minimal-iso and discovery-image-ipxe.
Without this fix users will see an empty label, Formik will get an undefined value, and onChange will mis-report whether iPXE was chosen.

🧹 Nitpick comments (5)
libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (2)

93-103: Expose an accessible label on the MenuToggle

Screen-reader users currently hear an empty button because the toggle’s content is dynamic. Add aria-label (or aria-labelledby pointing to a static <label>):

-<MenuToggle
+<MenuToggle
+  aria-label="Select provisioning type"

This small addition satisfies WCAG 4.1.2 and avoids an aXe violation.


113-116: Use the boolean supplied by onOpenChange to avoid stale closures

onOpenChange already hands you the new expanded state; flipping !isOpen risks races when multiple state updates fire in quick succession.

- onOpenChange={() => setOpen(!isOpen)}
+ onOpenChange={(nextOpen: boolean) => setOpen(nextOpen)}

This keeps React state and PatternFly state in perfect sync.

libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts (3)

3-4: Single source of truth for the root selector

selector is #form-control__form-input-platform-field, but every helper below uses #form-input-platform-field. Divergent IDs invite brittle tests when markup changes.

Consider normalising:

-static readonly selector = '#form-control__form-input-platform-field';
+static readonly selector = '#form-input-platform-field';

and update init accordingly, or vice-versa.


18-24: Method naming: avoid confusion between “field” and “dropdown”

findExternalPartnerIntegrationsField() returns the clickable input, while findDropdown() returns the menu container. Nice separation! To keep intent crystal-clear, prefix with get/open or suffix with Input/Menu (e.g., getFieldInput, getDropdownMenu) – this is the pattern used in other field helpers.


30-38: Avoid triple-clicking the input when chaining helpers

findDropdownItems() and findDropdownItem() both call .click() before delegating to other methods that themselves click the input. This results in two clicks per selection and can intermittently close the menu on fast CI runners.

-ExternalPartnerIntegrationsField.findExternalPartnerIntegrationsField().click();
-return ExternalPartnerIntegrationsField.findDropdown().find('.pf-v5-c-menu__item');
+return ExternalPartnerIntegrationsField.findDropdown().find('.pf-v5-c-menu__item');

Apply the same to findDropdownItem.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 1ea857e and 2c45118.

📒 Files selected for processing (34)
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts (0 hunks)
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts (3 hunks)
  • libs/ui-lib-tests/cypress/views/common.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css (0 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (6 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
💤 Files with no reviewable changes (2)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css
✅ Files skipped from review due to trivial changes (1)
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts
🚧 Files skipped from review as they are similar to previous changes (29)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts
  • libs/ui-lib/lib/common/index.ts
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts
  • libs/ui-lib-tests/cypress/views/common.ts
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
🧰 Additional context used
🧬 Code Graph Analysis (1)
libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (1)
libs/ui-lib/lib/common/types/clusters.ts (1)
  • DiscoveryImageType (75-75)
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: tests
  • GitHub Check: translation-files
  • GitHub Check: circular-deps
  • GitHub Check: unit-tests
  • GitHub Check: lint
  • GitHub Check: format

@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch from 2c45118 to a5591e3 Compare May 15, 2025 15:08
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (1)

127-128: DropdownList implementation matches PatternFly v5 patterns.

The dropdown items are now correctly wrapped in a DropdownList component as suggested in the previous review comment. This structure complies with PatternFly v5 patterns.

🧹 Nitpick comments (1)
libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (1)

111-111: Potential redundant state toggling in onClick and onOpenChange.

Both the onClick handler in MenuToggle and the onOpenChange handler in Dropdown are toggling the dropdown's open state. This redundancy could potentially lead to unexpected behavior.

Consider using the onOpenChange handler exclusively to manage the open state:

  <MenuToggle
    variant="plainText"
    ref={toggleRef}
    isFullWidth
-   onClick={() => setOpen(!isOpen)}
    isExpanded={isOpen}
    isDisabled={isDisabled}
  >
    {currentRoleLabel}
  </MenuToggle>

And update the onOpenChange handler to:

  <Dropdown
-   onOpenChange={() => setOpen(!isOpen)}
+   onOpenChange={(isOpen) => setOpen(isOpen)}
    onSelect={onSelect}
    toggle={toggle}
    isOpen={isOpen}
    isPlain
  >

Also applies to: 121-121

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 2c45118 and a5591e3.

📒 Files selected for processing (34)
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts (0 hunks)
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts (1 hunks)
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts (2 hunks)
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts (3 hunks)
  • libs/ui-lib-tests/cypress/views/common.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts (1 hunks)
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx (2 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx (1 hunks)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx (1 hunks)
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx (3 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css (0 hunks)
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx (6 hunks)
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/common/index.ts (1 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx (4 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx (3 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx (2 hunks)
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx (4 hunks)
💤 Files with no reviewable changes (2)
  • libs/ui-lib-tests/cypress/integration/create-sno/0-create-cluster.cy.ts
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.css
✅ Files skipped from review due to trivial changes (1)
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
🚧 Files skipped from review as they are similar to previous changes (30)
  • libs/ui-lib/lib/cim/components/modals/MassApproveAction.tsx
  • libs/ui-lib/lib/common/components/hosts/HostToolbarActions.tsx
  • libs/ui-lib/lib/common/index.ts
  • libs/ui-lib-tests/cypress/integration/day-2/2-adding-hosts.cy.ts
  • libs/ui-lib-tests/cypress/views/bareMetalDiscovery.ts
  • libs/ui-lib-tests/cypress/views/common.ts
  • libs/ui-lib-tests/cypress/fixtures/infra-envs/openshift-versions.ts
  • libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ControlPlaneNodesField.ts
  • libs/ui-lib/lib/cim/components/common/CpuArchitectureDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/OpenShiftVersionField.ts
  • libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts
  • libs/ui-lib-tests/cypress/integration/ui-behaviour/cluster-creation.cy.ts
  • libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/common/components/hosts/TableToolbar.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx
  • libs/ui-lib/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/CpuArchitectureField.ts
  • libs/ui-lib/lib/cim/components/ClusterDeployment/LabelsSelector.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx
  • libs/ui-lib-tests/cypress/views/forms/ClusterDetails/Fields/ExternalPartnerIntegrationsField.ts
  • libs/ui-lib/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/OpenShiftVersionDropdown.tsx
  • libs/ui-lib/lib/cim/components/InfraEnv/AddHostDropdown.tsx
  • libs/ui-lib/lib/common/components/ui/SimpleDropdown.tsx
  • libs/ui-lib-tests/cypress/views/clusterDetails.ts
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: lint
  • GitHub Check: translation-files
  • GitHub Check: unit-tests
  • GitHub Check: tests
  • GitHub Check: circular-deps
  • GitHub Check: format
🔇 Additional comments (3)
libs/ui-lib/lib/common/components/hosts/DiskRole.tsx (3)

2-8: Import refactoring successfully updates to PatternFly v5 components.

The imports have been correctly updated to use the latest PatternFly v5 components, including DropdownList, MenuToggle, and MenuToggleElement. This aligns with the PR objective of updating all dropdown components to use the PatternFly v5 versions.


91-91: Event type is now properly specified.

The event parameter type in the onSelect callback has been improved from a generic event to a more specific React.MouseEvent<Element, MouseEvent>, enhancing type safety and code clarity.


106-117: Toggle implementation correctly follows PatternFly v5 patterns.

The toggle implementation has been successfully refactored to use MenuToggle instead of the deprecated DropdownToggle. The suggested variant="plainText" from the previous review has been correctly applied.

@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch from a5591e3 to 5d6a088 Compare May 18, 2025 12:47
@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch 3 times, most recently from 148def5 to 9a2bbfd Compare May 29, 2025 10:57
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 29, 2025

@ElayAharoni: This pull request references MGMT-20404 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

Details

In response to this:

https://issues.redhat.com/browse/MGMT-20404

changed all the dropdown component usages to use the patternfly v5 component and not hte deprecated one

Summary by CodeRabbit

  • New Features
    • Utilities from the common library are now available for import, expanding the public API.
  • Refactor
    • All dropdown components have been updated to use the latest PatternFly UI elements, providing a more consistent and modern user experience.
    • Dropdown toggles and menus now have improved accessibility and interaction patterns.
    • Informational tooltips and dropdown groupings have been enhanced for clarity and usability.
    • Dropdown interaction patterns in tests have been standardized and selectors updated to match UI changes.
    • Test selectors and interaction methods for dropdown fields have been refined for more precise and reliable UI testing.
  • Style
    • Layout and spacing of dropdowns have been refined for better alignment and appearance.
    • Removed obsolete CSS styling for OpenShift version dropdown to streamline UI presentation.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Signed-off-by: Elay Aharoni <elayaha@gmail.com>
@ElayAharoni ElayAharoni force-pushed the Refactor-Dropdown-component-import-package branch from 9a2bbfd to 2acfea9 Compare May 29, 2025 11:27
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 29, 2025

@ElayAharoni: This pull request references MGMT-20404 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

Details

In response to this:

https://issues.redhat.com/browse/MGMT-20404

changed all the dropdown component usages to use the patternfly v5 component and not hte deprecated one

Summary by CodeRabbit

  • New Features
    • Utilities from the common library are now available for import, expanding the public API.
  • Refactor
    • All dropdown components have been updated to use the latest PatternFly UI elements, providing a more consistent and modern user experience.
    • Dropdown toggles and menus now use explicit open state controls and improved event handling.
    • Informational tooltips and dropdown groupings have been enhanced for clarity and usability.
    • Dropdown interaction patterns in tests have been standardized and selectors updated to match UI changes.
    • Test selectors and interaction methods for dropdown fields have been refined for more precise and reliable UI testing.
  • Style
    • Layout and spacing of dropdowns have been refined for better alignment and appearance.
    • Removed obsolete CSS styling for OpenShift version dropdown to streamline UI presentation.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ElayAharoni ElayAharoni requested a review from jgyselov May 29, 2025 11:41
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 30, 2025
@openshift-ci
Copy link

openshift-ci bot commented May 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ElayAharoni, jgyselov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit a11708e into openshift-assisted:master May 30, 2025
11 checks passed
@jgyselov
Copy link
Contributor

/cherry-pick releases/v2.15-cim

@openshift-cherrypick-robot
Copy link
Contributor

@jgyselov: new pull request created: #2966

Details

In response to this:

/cherry-pick releases/v2.15-cim

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants