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

CNV-33133: Make buttons in VMs and MigrationPolicies pages not blink #1562

Merged

Conversation

hstastna
Copy link

@hstastna hstastna commented Sep 22, 2023

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33133

Make empty state related buttons for VirtualMachines list and MigrationPolicies list pages not blink, when entering those pages for the first time.

Note that the problem this PR is fixing, is not so easy to reproduce and not always reproducible, you must try couple of times to see the issue there.

🎥 Demo

Before:
VirtualMachines list page (see how the buttons blink once or twice when entering the page):

flicker_before.mp4

MigrationPolicies list page (see how the buttons blink once or twice when entering the page):

mps_before.mp4

After:
VirtualMachines list page (no any blinking anymore):

flicker_after.mp4

MigrationPolicies list page (no any blinking anymore):

mps_after.mp4

Comparing the behavior of the two implementations of empty state screen (within the one screen):
VirtualMachines list page:

vms_emptystate_comparing.mp4

MigrationPolicies list page:

mps_emptystate_comparing.mp4

Make empty state related buttons for VirtualMachines list and
MigrationPolicies list pages not blink, when entering those pages for
the first time.

Fixes https://issues.redhat.com/browse/CNV-33133
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Sep 22, 2023

@hstastna: This pull request references CNV-33133 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.15.0" version, but no target version was set.

In response to this:

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33133

Make empty state related buttons for VirtualMachines list and MigrationPolicies list pages not blink, when entering those pages for the first time.

🎥 Demo

Before:
VirtualMachines list page:

flicker_before.mp4

MigrationPolicies list page:

mps_before.mp4

After:
VirtualMachines list page:

flicker_after.mp4

MigrationPolicies list page:

mps_after.mp4

Comparing the behavior of the two implementations of empty state screen (within the one screen):
VirtualMachines list page:

vms_emptystate_comparing.mp4

MigrationPolicies list page:

mps_emptystate_comparing.mp4

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/test-infra repository.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Sep 22, 2023
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Sep 22, 2023

@hstastna: This pull request references CNV-33133 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.15.0" version, but no target version was set.

In response to this:

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33133

Make empty state related buttons for VirtualMachines list and MigrationPolicies list pages not blink, when entering those pages for the first time.

🎥 Demo

Before:
VirtualMachines list page (see how the buttons blink once or twice when entering the page):

flicker_before.mp4

MigrationPolicies list page (see how the buttons blink once or twice when entering the page):

mps_before.mp4

After:
VirtualMachines list page:

flicker_after.mp4

MigrationPolicies list page:

mps_after.mp4

Comparing the behavior of the two implementations of empty state screen (within the one screen):
VirtualMachines list page:

vms_emptystate_comparing.mp4

MigrationPolicies list page:

mps_emptystate_comparing.mp4

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/test-infra repository.

@hstastna
Copy link
Author

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Sep 22, 2023

@hstastna: This pull request references CNV-33133 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.15.0" version, but no target version was set.

In response to this:

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33133

Make empty state related buttons for VirtualMachines list and MigrationPolicies list pages not blink, when entering those pages for the first time.

Note that the problem this PR is fixing, is not so easy to reproduce and not always reproducible, you must try couple of times to see the issue there.

🎥 Demo

Before:
VirtualMachines list page (see how the buttons blink once or twice when entering the page):

flicker_before.mp4

MigrationPolicies list page (see how the buttons blink once or twice when entering the page):

mps_before.mp4

After:
VirtualMachines list page (no any blinking anymore):

flicker_after.mp4

MigrationPolicies list page (no any blinking anymore):

mps_after.mp4

Comparing the behavior of the two implementations of empty state screen (within the one screen):
VirtualMachines list page:

vms_emptystate_comparing.mp4

MigrationPolicies list page:

mps_emptystate_comparing.mp4

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/test-infra repository.

@pcbailey
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Sep 22, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hstastna, pcbailey

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

@metalice
Copy link
Member

Hey
how it works with filtering with no results? No issues in this case of simple empty page?

@openshift-merge-robot openshift-merge-robot merged commit 2fa1ad8 into kubevirt-ui:main Sep 22, 2023
4 checks passed
@hstastna
Copy link
Author

Hey how it works with filtering with no results? No issues in this case of simple empty page?

Filtering with no results works as it worked before this change. I was not changing this behavior.

@metalice
Copy link
Member

Hey how it works with filtering with no results? No issues in this case of simple empty page?

Filtering with no results works as it worked before this change. I was not changing this behavior.

cool, so I think the prop NoDataEmptyMsg and EmptyMsg can be removed instead of sending a fragment, I belive they aren't mandatory.

@hstastna
Copy link
Author

Hey how it works with filtering with no results? No issues in this case of simple empty page?

Filtering with no results works as it worked before this change. I was not changing this behavior.

cool, so I think the prop NoDataEmptyMsg and EmptyMsg can be removed instead of sending a fragment, I belive they aren't mandatory.

No, if those are totally missing, it renders extra "Not found". Everything in this PR, every change has its good purpose.

@gouyang
Copy link
Member

gouyang commented Nov 6, 2023

/cherry-pick release-4.14

@openshift-cherrypick-robot
Copy link
Collaborator

@gouyang: new pull request created: #1597

In response to this:

/cherry-pick release-4.14

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants