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

MGMT-17473: Add scrollbar to OpenshiftVersionDropdown component #2542

Conversation

ammont82
Copy link
Contributor

@ammont82 ammont82 commented Apr 9, 2024

Related to https://issues.redhat.com/browse/MGMT-17473

Adding scrollbar to OpenshiftVersionDropdown component avoid problems about changing window layout.

Captura desde 2024-04-09 09-36-13

@ammont82 ammont82 added the OCM label Apr 9, 2024
@ammont82 ammont82 requested a review from a team as a code owner April 9, 2024 07:37
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 9, 2024

@ammont82: This pull request references MGMT-17473 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 bug to target the "4.16.0" version, but no target version was set.

In response to this:

Related to https://issues.redhat.com/browse/MGMT-17473

Adding scrollbar to OpenshiftVersionDropdown component avoid problems about changing window layout.

Captura desde 2024-04-09 09-36-13

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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 9, 2024
@openshift-ci openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 9, 2024
@ammont82 ammont82 force-pushed the MGMT-17477-openshift-version-change-layout branch from 197b298 to e1483af Compare April 9, 2024 08:37
Copy link
Contributor

@celdrake celdrake left a comment

Choose a reason for hiding this comment

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

The scrollbar works well.

However, I just noticed a small layout change. When the additional versions modal opens, the main version dropdown stays open too. But as you click on the text input to select the custom version, the main version dropdown closes on the background.

IMO, it should either stay open until the modal is closed, or it should close when the modal is open.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 9, 2024
Copy link

openshift-ci bot commented Apr 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ammont82, celdrake

The full list of commands accepted by this bot can be found 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

@jgyselov
Copy link
Collaborator

jgyselov commented Apr 9, 2024

We are using the deprecated version of the Dropdown component. (See dropdown/react-deprecated vs dropdown.)

The newer version supports a flip behavior - if the dropdown doesn't have enough space bellow the toggle, it tries to render it above.

Maybe this is a good opportunity to migrate?

@jgyselov
Copy link
Collaborator

jgyselov commented Apr 9, 2024

Also, I noticed that when we limit the height of the dropdown, the "Show all available versions" button is hidden at the bottom. I find that a bit unfortunate.

@ammont82
Copy link
Contributor Author

ammont82 commented Apr 9, 2024

We are using the deprecated version of the Dropdown component. (See dropdown/react-deprecated vs dropdown.)

The newer version supports a flip behavior - if the dropdown doesn't have enough space bellow the toggle, it tries to render it above.

Maybe this is a good opportunity to migrate?

@jgyselov is not so easy migrate to new Dropdown version. It implies a lot of changes and we need to take a look carefully. I'll open a task to do in the future.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 10, 2024
Copy link

openshift-ci bot commented Apr 10, 2024

New changes are detected. LGTM label has been removed.

@ammont82 ammont82 merged commit 2ca7e36 into openshift-assisted:master Apr 10, 2024
7 checks passed
ammont82 added a commit to ammont82/assisted-installer-ui that referenced this pull request Apr 10, 2024
ammont82 added a commit to ammont82/assisted-installer-ui that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. OCM size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants