This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Do not map vm status off to status ok #340
Merged
atiratree
merged 8 commits into
kubevirt:master
from
yaacov:do-not-map-vm_status_off-to-ok
Apr 11, 2019
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4eb0b50
Do not map vm status off to status ok
yaacov 3fc2d36
Add off inventory status icon
yaacov d6f776f
rename status group consts to diferentiate from status
yaacov 2615dcc
reorder icons off before ok
yaacov 0236c4d
Group syntetic statuses together
yaacov 61f7b23
size using css for icons type pf
yaacov 1b11c1f
status icon resize to look more same size with other icons
yaacov d992ede
update snaps
yaacov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,20 +35,30 @@ ErrorStatus.propTypes = StatusPropTypes; | |
|
||
const InProgressStatus = ({ count }) => ( | ||
<div className="kubevirt-inventory__row-status-item"> | ||
<Icon type="pf" name="in-progress" size="2x" /> | ||
<Icon type="pf" name="in-progress" className="kubevirt-inventory__row-status-item-icon--in-progress" /> | ||
<span className="kubevirt-inventory__row-status-item-text">{count}</span> | ||
</div> | ||
); | ||
|
||
InProgressStatus.propTypes = StatusPropTypes; | ||
|
||
const OffStatus = ({ count }) => ( | ||
<div className="kubevirt-inventory__row-status-item"> | ||
<Icon type="pf" name="off" className="kubevirt-inventory__row-status-item-icon--off" /> | ||
<span className="kubevirt-inventory__row-status-item-text">{count}</span> | ||
</div> | ||
); | ||
|
||
OffStatus.propTypes = StatusPropTypes; | ||
|
||
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 commentThe reason will be displayed to describe this comment to others. Learn more. please showcase this in the fixture |
||
<div className="kubevirt-inventory__row-status"> | ||
<Status Component={InProgressStatus} count={inProgress} /> | ||
<Status Component={ErrorStatus} count={error} /> | ||
<Status Component={WarnStatus} count={warn} /> | ||
<Status Component={OffStatus} count={off} /> | ||
yaacov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<Status Component={OkStatus} count={ok} /> | ||
</div> | ||
); | ||
|
@@ -58,11 +68,13 @@ InventoryItemStatus.defaultProps = { | |
warn: 0, | ||
error: 0, | ||
inProgress: 0, | ||
off: 0, | ||
}; | ||
|
||
InventoryItemStatus.propTypes = { | ||
ok: PropTypes.number, | ||
warn: PropTypes.number, | ||
error: PropTypes.number, | ||
inProgress: PropTypes.number, | ||
off: PropTypes.number, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.