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

Update AcmDropdown to use PatternFly v5 Menu Components - Policy Bulk actions menu #4316

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

Conversation

vishsanghishetty
Copy link
Contributor

@vishsanghishetty vishsanghishetty commented Mar 5, 2025

Description

Migrate to PatternFly v5 Menu Components - This PR is for ticket

This PR updates our dropdown components to use PatternFly v5's new menu system, replacing the deprecated dropdown components. The changes include support for nested menus (flyout) and proper separator handling.

What's Changed

  • Migrated from PatternFly v4 Dropdown to v5 Menu components
  • Updated AcmDropdown to use PatternFly v5 Menu MenuToggle and Popper components
  • Added support for nested menus in PolicyActionDropdown
  • Added support for nested menus in PoliciesPage, bulk actions menu in the toolbar
  • Implemented menu separators for action grouping

Signed-off-by: vsanghishetty <[email protected]>
Copy link

openshift-ci bot commented Mar 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vishsanghishetty

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

The pull request process is described here

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 label Mar 5, 2025
@vishsanghishetty vishsanghishetty marked this pull request as draft March 5, 2025 22:48
@vishsanghishetty vishsanghishetty changed the title wip bulk action menu WIP Policy Bulk actions menu Mar 6, 2025
Signed-off-by: vsanghishetty <[email protected]>
Signed-off-by: vsanghishetty <[email protected]>
@vishsanghishetty vishsanghishetty marked this pull request as ready for review March 6, 2025 21:00
@vishsanghishetty vishsanghishetty changed the title WIP Policy Bulk actions menu Policy Bulk actions menu Mar 6, 2025
@vishsanghishetty vishsanghishetty changed the title Policy Bulk actions menu Update AcmDropdown to use PatternFly v5 Menu Components - Policy Bulk actions menu Mar 6, 2025
vishsanghishetty and others added 5 commits March 6, 2025 17:31
Signed-off-by: vsanghishetty <[email protected]>
- Reduce type repetition
- Disable items that will do nothing
- Restore deleted comments
- Remove 'dropdown-action' type which was unused and almost indistinguishable from 'bulk-action'
- Move subactions to 'action-group' instead of adding flyoutMenu to 'bulk-action'
- Fix separators on AcmDropdown
- Simplify conversion for TableActionsDropdown to AcmDropdown

Signed-off-by: Kevin Cormier <[email protected]>
Signed-off-by: Kevin Cormier <[email protected]>
Copy link

openshift-ci bot commented Mar 7, 2025

@vishsanghishetty: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit-tests-sonarcloud b3f47e0 link true /test unit-tests-sonarcloud

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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

Successfully merging this pull request may close these issues.

2 participants