Skip to content

Card Demos: Aggregate Status, Status Tabbed, Status#6206

Merged
nicolethoen merged 11 commits intopatternfly:mainfrom
CooperRedhat:cooper-card-demo
Sep 13, 2021
Merged

Card Demos: Aggregate Status, Status Tabbed, Status#6206
nicolethoen merged 11 commits intopatternfly:mainfrom
CooperRedhat:cooper-card-demo

Conversation

@CooperRedhat
Copy link
Contributor

@CooperRedhat CooperRedhat commented Aug 20, 2021

What: Closes #6189
Closes #6207
Closes #6217
Closes #6219
Closes #6220

  • Not directly related to this issue, but NotificationDrawerGroup was updated to handle more than a string title in order to follow examples in core

@patternfly-build
Copy link
Collaborator

patternfly-build commented Aug 20, 2021

@CooperRedhat CooperRedhat changed the title demos(Card): add aggregate status card Card Demos: Aggregate Status, Status Tabbed Aug 20, 2021
@tlabaj tlabaj linked an issue Aug 25, 2021 that may be closed by this pull request
@CooperRedhat CooperRedhat changed the title Card Demos: Aggregate Status, Status Tabbed Card Demos: Aggregate Status, Status Tabbed, Status Aug 25, 2021
This was linked to issues Aug 25, 2021
Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

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

This looks good @CooperRedhat but I just had some questions about the tabbed status card demo. I'm see some alignment that does not feel quite right when I compare with core version.

Screen Shot 2021-08-30 at 1 53 12 PM

Note that the text "Ready" seems misaligned.

I also wonder about this example, @mattnolting do you remember where it came from? I know that this is only a demo, but using the (!) icon which a label that reads Ready seems contradictory. Maybe we should be using the green check (success) icon here?

@CooperRedhat
Copy link
Contributor Author

This looks good @CooperRedhat but I just had some questions about the tabbed status card demo. I'm see some alignment that does not feel quite right when I compare with core version.

Screen Shot 2021-08-30 at 1 53 12 PM

Note that the text "Ready" seems misaligned.

I also wonder about this example, @mattnolting do you remember where it came from? I know that this is only a demo, but using the (!) icon which a label that reads Ready seems contradictory. Maybe we should be using the green check (success) icon here?

@mcarrano: @nicolethoen noticed the same issue and we're addressing it, thanks!

@mcoker
Copy link
Contributor

mcoker commented Sep 1, 2021

@mcarrano: @nicolethoen noticed the same issue and we're addressing it, thanks!

FWIW, it looks like vertical-align: -0.125em; fixes it. I see that applied to a lot of icons we use (for example in the alert component).

@CooperRedhat
Copy link
Contributor Author

@mcarrano: @nicolethoen noticed the same issue and we're addressing it, thanks!

FWIW, it looks like vertical-align: -0.125em; fixes it. I see that applied to a lot of icons we use (for example in the alert component).

FYI (and my own clarity) I think there are two issues here, @mcarrano was talking about Ready and Running being misaligned, which I pushed a fix for.

@mcoker You are referring to something else, which is text/icon alignment, correct?

@mcoker
Copy link
Contributor

mcoker commented Sep 1, 2021

@mcoker You are referring to something else, which is text/icon alignment, correct?

@CooperRedhat oh yep, sorry. This for example - I applied vertical-align to the icon on the left but not on the right

Screen Shot 2021-09-01 at 2 32 37 PM

Copy link
Contributor

@mattnolting mattnolting left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few updates.

status: 'Running',
resourceName: 'Resource name that is long and can wrap',
detail: '121 Systems',
icon: <Spinner size='md' aria-valuetext='Loading...'></Spinner>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's replace this with a check icon

Copy link
Contributor

Choose a reason for hiding this comment

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

They core demo has spinners. Will that be updated as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the spinners to checks, leaving this conversation open for @tlabaj's comment.

status: 'Running',
resourceName: 'Resource name that is long and can wrap',
detail: '122 Systems',
icon: <Spinner size='md' aria-valuetext='Loading...'></Spinner>
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace this with a check icon

tlabaj
tlabaj previously approved these changes Sep 9, 2021
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

Looks great!

mattnolting
mattnolting previously approved these changes Sep 10, 2021
Copy link
Contributor

@mattnolting mattnolting left a comment

Choose a reason for hiding this comment

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

LPTM 👍

<a href="#">Image Vulnerabilities</a>
</FlexItem>
<FlexItem>
<span style={{ color: '#8a8d90' }}>0 vulnerabilities</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this one also need to use a var?

Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

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

Looks much better. Thanks @CooperRedhat !

@nicolethoen nicolethoen merged commit 4f39159 into patternfly:main Sep 13, 2021
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@4.12.65
  • @patternfly/react-code-editor@4.3.52
  • @patternfly/react-console@4.11.33
  • @patternfly/react-core@4.155.2
  • @patternfly/react-docs@5.21.31
  • @patternfly/react-inline-edit-extension@4.7.75
  • demo-app-ts@4.120.2
  • @patternfly/react-log-viewer@4.6.5
  • @patternfly/react-table@4.29.68
  • @patternfly/react-topology@4.9.71
  • @patternfly/react-virtualized-extension@4.9.40

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

8 participants