-
Notifications
You must be signed in to change notification settings - Fork 30
Do not map vm status off to status ok #340
Do not map vm status off to status ok #340
Conversation
Pull Request Test Coverage Report for Build 1133
💛 - Coveralls |
Pull Request Test Coverage Report for Build 1161
💛 - Coveralls |
@suomiy @rawagner hi, We currently have this statuses: Do you think warning is the right option ? should it be error ? should we create a 5'th status icon for off ? do we have state off somewhere else, do we have a mockup for off state ? |
|
can you do a bit more renaming?
this needs to be also changed in web-ui |
@matthewcarleton hi, We have vm state off, but we do not have an inventory item state off, shoudl we add it ? Attached is a demo of inventory state off for VMs: Does this make sense to you ? |
FYI @andybraren |
@suomiy I will do this a 2 new PR's that we can merge the same time in web-ui and web-ui-components, does that make sense to you ? |
It is up to you. I would put it here as it is a small change and a bit relevant to this PR. |
+ also |
Yes, we should have an We'd like for the Inventory card's statuses to be as close as possible to what a user would see if they looked at the VM List page. For that reason, I would prefer to use the same status icon in the Inventory card that |
I added the new inventory "off" state looking like the vm "off", only bigger because all the other icons in inventory are big. @suomiy @rawagner |
@andybraren hi, for example the word "Off" when hovering over the "off" icon ? @suomiy @rawagner ? |
There is not so much space to show an icon for every state we have, like |
@suomiy is there a "correct" way to make the off icon size bigger ? |
patternfly icon is just a switch between PatternflyIcon and FontAwesomeIcon components. Only the FontAwesomeIcon component supports size property, so your only option after that is the css. Can you please also remove the size property on inProgress icon and apply the css? |
Sure 🍽️ |
@@ -43,3 +43,7 @@ | |||
.kubevirt-inventory__row-status-item-icon--warn { | |||
color: goldenrod; | |||
} | |||
|
|||
.kubevirt-inventory__row-status-item-icon--off { | |||
font-size: 1.5em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it in cosmos and maybe it could be a tad bigger
@@ -42,13 +42,23 @@ const InProgressStatus = ({ count }) => ( | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InProgressStatus is also type="pf"
component. Please try the sizes.
const Status = ({ Component, count, ...props }) => count > 0 && <Component count={count} {...props} />; | ||
|
||
export const InventoryItemStatus = ({ ok, warn, error, inProgress }) => ( | ||
export const InventoryItemStatus = ({ ok, warn, error, inProgress, off }) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please showcase this in the fixture
349f0e0
to
61f7b23
Compare
build failing.. |
@suomiy I do not understand why I get |
@suomiy not sure we can merge this ... something is wrong with the |
it was merged recently. Please rebase on the recent master |
@suomiy I'm rebased on master and get |
Yes you have it correct. The build is failing on master. |
we merged wrong snapshots before ^^ |
Acknowledged - this is something we're working on, and likely involves a deeper dive on our end into all of the possible statuses, how to prioritize them, when to show which, etc. In the short term we will very likely propose removing the green "okay" status from the Inventory card entirely (for this and other reasons). We'll share that design proposal soon. |
oki
Are you okay with showing no status if okay part is removed? Because I am not sure we have much else to show for example in PVCs. Only pending icon when the pvc is pending. |
Yes, that's totally fine. 👍 |
Currently we map
[VM_STATUS_OFF, VM_STATUS_UNKNOWN]
toSTATUS_RESULT_OK
.This PR adds mapping for missing statuses to off and warning icon states.
Ref: https://jira.coreos.com/browse/CNV-1466
Screenshot: