Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Use PF4 graphs #351

Merged
merged 1 commit into from
Apr 16, 2019
Merged

Use PF4 graphs #351

merged 1 commit into from
Apr 16, 2019

Conversation

rawagner
Copy link
Contributor

No description provided.

@kubevirt-bot kubevirt-bot added do-not-merge/work-in-progress needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL labels Apr 12, 2019
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 12, 2019
@coveralls
Copy link

coveralls commented Apr 12, 2019

Pull Request Test Coverage Report for Build 1261

  • 16 of 17 (94.12%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 87.311%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Dashboard/Utilization/UtilizationItem.js 2 3 66.67%
Totals Coverage Status
Change from base Build 1257: 0.009%
Covered Lines: 3417
Relevant Lines: 3750

💛 - Coveralls

@rawagner rawagner force-pushed the pf4_victory branch 2 times, most recently from a314312 to 3d26423 Compare April 12, 2019 20:41
@rawagner rawagner changed the title [WIP] Use PF4 graphs Use PF4 graphs Apr 15, 2019
@@ -1,13 +1,16 @@
.kubevirt-capacity__items {
display: flex;
justify-content: space-between;
justify-content: space-evenly;
flex-wrap: wrap;
}

.kubevirt-capacity__item {
Copy link
Contributor

Choose a reason for hiding this comment

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

the donuts are overflowing outside the card

Copy link
Contributor

Choose a reason for hiding this comment

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

and the items are all jumbled together on smaller devices

Copy link
Contributor

Choose a reason for hiding this comment

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

+ the graphs of all items should be centered similarly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The issue is happening in cosmos playground - i think that we need to import base.css from patternfly-react but them Im facing issue with webpack not being able to load fonts..

Copy link
Contributor

Choose a reason for hiding this comment

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

can we fix it so it doesn't break without that css?

border-left-width: 1px;
border-left-style: solid;
border-left-color: rgb(209, 209, 209);
padding-right: 20px;
Copy link
Contributor

Choose a reason for hiding this comment

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

rem/em?

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 actually removed the padding in latest patch as it seems to be not necessary

}}
/>
<div id={prefixedId('donut-chart', id)} className="kubevirt-capacity__graph">
<svg viewBox="0 0 200 200">
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make variables out of the height and the width?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

created constants out of width and height

standalone={false}
/>
<ChartLabel textAnchor="middle" style={{ fontSize: 25 }} x={100} y={85} text={primaryTitle} />
<ChartLabel textAnchor="middle" style={{ fontSize: 15 }} x={100} y={110} text={secondaryTitle} />
Copy link
Contributor

@atiratree atiratree Apr 15, 2019

Choose a reason for hiding this comment

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

and derive these from the variables?

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

id={id}
height={60}
width={300}
containerComponent={<ChartVoronoiContainer labels={datum => `${datum.y} ${unit}`} />}
Copy link
Contributor

Choose a reason for hiding this comment

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

the label is huge! Can something be done about that? On the other hand the pies' labels are quite small.

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 tried to make the tooltips similar, but it will need more work in the future

@rawagner rawagner force-pushed the pf4_victory branch 5 times, most recently from 7f92fd7 to 4cd21a4 Compare April 15, 2019 14:37
textAnchor="middle"
style={{ fontSize: 15 }}
x={CHART_WIDTH / 2}
y={CHART_HEIGHT / 1.8}
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this reather be CHART_HEIGHT / 2 - SOME_CONSTANT ? and the x one also?

@@ -1,13 +1,16 @@
.kubevirt-capacity__items {
display: flex;
justify-content: space-between;
justify-content: space-evenly;
flex-wrap: wrap;
}

.kubevirt-capacity__item {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we fix it so it doesn't break without that css?

@mareklibra
Copy link
Contributor

Let's fix styling in cosmos in a follow-up. Full build works fine and fix is required asap.

@mareklibra mareklibra merged commit 618a095 into kubevirt:master Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants