-
Notifications
You must be signed in to change notification settings - Fork 667
Dashboard Utilization card #1732
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
Dashboard Utilization card #1732
Conversation
|
Hi @rawagner. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
a4dbf6f to
30696b4
Compare
30696b4 to
b085840
Compare
1f50ada to
e1858f5
Compare
e1858f5 to
ba754e6
Compare
741a5e5 to
a57a8cc
Compare
|
/ok-to-test |
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.
Maybe PF-React also provides such media size breakpoints, so we can reuse them?
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 couldnt find those breakpoints anywhere in PF :/
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.
They are in the @patternfly/react-tokens package.
| CSS Variable | React Token | Value |
|---|---|---|
| --pf-global--breakpoint--xs | global_breakpoint_xs | 0 |
| --pf-global--breakpoint--sm | global_breakpoint_sm | 576px |
| --pf-global--breakpoint--md | global_breakpoint_md | 768px |
| --pf-global--breakpoint--lg | global_breakpoint_lg | 992px |
| --pf-global--breakpoint--xl | global_breakpoint_xl | 1200px |
| --pf-global--breakpoint--2xl | global_breakpoint_2xl | 1450px |
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.
@TheRealJon thanks, im using global_breakpoints from PF in latest update
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.
Nit: cq => pluginQuery
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.
renamed
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.
Can we extract this into public/components/dashboards-page/overview-dashboard/queries.ts as utilizationQueries?
In other words, we should put all queries in one place for easier maintenance and consistency.
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.
ok, I put those into public/components/dashboards-page/overview-dashboard/queries.ts as utilizationQueries
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.
Nit: unnatural newline, I'd remove it or add one after both const declarations.
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.
removed
a57a8cc to
c649911
Compare
|
@vojtechszocs addressed all your comments |
|
@TheRealJon Thank you! I will take a look at that date formatting in a follow-on |
|
/approve |
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.
Looking at node_modules/@patternfly/react-tokens/dist/js/index.js the exported objects looks like
{"name":"--pf-global--breakpoint--lg","value":"992px","var":"var(--pf-global--breakpoint--lg)"}so if value changes its CSS unit from px to something else our layout will probably break.. (not sure we can do anything to prevent that)
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 was looking at this too. One (small) problem I have with using these breakpoint vars is that we are using breakpoints against the width of an element (instead of the viewport). Seems a bit arbitrary, and maybe a bit confusing since it will cause reflow at different viewport widths than everything else. I don't think it's a huge deal, which is why I didn't leave a comment originally, but since it came up 😆
|
/lgtm |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
37837b6 to
ac0d0e7
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rawagner, spadgett, suomiy, TheRealJon, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
@TheRealJon I've extracted Area chart component which is not using prometheus hook so it can be reused by Dashboard too. Same as I did in #1723 for Gauge.