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

Move disk explanations to popovers #5939

Conversation

pcbailey
Copy link
Contributor

@pcbailey pcbailey commented Jul 9, 2020

This PR moves the explanations for Disk and File Systems in the Disks tab to popovers to remove the visual clutter from the page.

Popover not activated:
Selection_670

Popover activated:
Selection_671

@openshift-ci-robot openshift-ci-robot added the component/kubevirt Related to kubevirt-plugin label Jul 9, 2020
@pcbailey
Copy link
Contributor Author

pcbailey commented Jul 9, 2020

@suomiy @yaacov @matthewcarleton Please take a look. Thanks!

Copy link
Contributor

@matthewcarleton matthewcarleton left a comment

Choose a reason for hiding this comment

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

it looks so much better with the text in the popover :)
Just a few small things - thanks for doing this!

@@ -3,3 +3,7 @@
padding-right: 30px;
margin-top: 20px;
}

button#kubevirt-vm-details__file-systems--info-icon {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd remove this padding and just use the default spacing from PF. It's better accessibility with a larger touch area.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I remove the padding, there is no space between the icon and the header text.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you switch it to a plain modifier and drop the inline variant you should get the proper spacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -3,3 +3,7 @@
padding-right: 30px;
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use PF spacer variables here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should be able to. I'll take a look at it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

position="top"
bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>}
>
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline>
Copy link
Contributor

Choose a reason for hiding this comment

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

is this ID needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed it to override the PF settings that set the padding to 0px.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed!

@@ -0,0 +1,3 @@
button#kubevirt-vm-details__disks--info-icon {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this one too :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

position="top"
bodyContent={<>{VM_DISKS_DESCRIPTION}</>}
>
<Button variant="link" id="kubevirt-vm-details__disks--info-icon" isInline>
Copy link
Contributor

Choose a reason for hiding this comment

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

variant should be plain

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

position="top"
bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>}
>
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline>
Copy link
Contributor

Choose a reason for hiding this comment

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

does it need isInline?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed!

bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>}
>
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline>
<BlueInfoCircleIcon />
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be a grey (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can change it. The only concern I have is that this came out of the console-shared package and there is no grey info icon that I can find there. The only place the blue one is used is for the guest agent missing message, but it doesn't appear that it was added for that purpose since it was there before that PR was created.

Do you know if we have a standard for the colors of these icons or somewhere else in console where they're used?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was looking at the Deployments>environment tab and I see the proper icon there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Icon updated!

@pcbailey pcbailey force-pushed the move-disk-explanations-to-popovers branch from 96ac1d3 to 53fa28c Compare July 10, 2020 20:00
@atiratree
Copy link
Member

looks great!
/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 13, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 54c1441 into openshift:master Jul 13, 2020
@spadgett spadgett added this to the v4.6 milestone Jul 14, 2020
@pcbailey pcbailey deleted the move-disk-explanations-to-popovers branch October 26, 2022 12:31
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. component/kubevirt Related to kubevirt-plugin lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants