-
Notifications
You must be signed in to change notification settings - Fork 835
Task health pie chart in application list view #914
Conversation
sttts
commented
Dec 26, 2014
30c8734 to
67ce7ba
Compare
f21f0db to
392cd0d
Compare
|
I took a quick look today - for one thing we need to get the
Here's a guide on getting jshint set up with Sublime, https://github.com/mlunoe/react-bb-broccoli#development-setup-sublime-text |
|
Fixed the js style, at least what jsxhint showed me. Let me know if there is anything left. Where is 4 space indention used? |
|
I think the latest commit broke PieComponent.jsx, throwing an error on line 68. If you've verified all indents are 2 spaces we're good on that item. |
|
Fixed. Thanks for reporting. Mixed up Scala and JS syntax... |
|
Rebased to latest master branch. |
|
Hi there, Love this PR small issue though. It forever appends new elements until the browser becomes responsive. I fixed this by removing the old element before appending a new one. not sure if this is correct but seems to work :-) cheers! |
|
Had noticed the ui getting slower over time. Can you attach the patch so I can add it to the pr? |
|
Sure: |
|
Hi @sttts, Thank you for putting together all this work! We'd love for this feature to enter marathon, but we do have some requirements to the UI and coding style, so I've put together a couple of comments for you in the pull request. But first here some general comments: We like simple UI that communicates well. We would love to see this feature implemented, but with a simple stacked progress bar would make it very clear what's going on and that way we don't need the d3.js dependency, which needs some tweaking in order to play well with React. We rely on bootstrap styles, so you can use their stacked progress bar: http://getbootstrap.com/components/#progress-stacked. And here's some general styles that should make it a bit slimmer: .progress { .progress-bar { Thank you again! |
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.
This shouldn't be needed anymore
|
It was due to rounding errors. In Safari's inspector I saw e.g. 16.66666666668% in case of taskSum=6. Of course this does not add up to 100%. I added a workaround to cut off digits after the 3rd decimal. |
867e8d0 to
700541a
Compare
|
@mlunoe We need a restriction for the black line. Otherwise, we see this: |
700541a to
8f24356
Compare
|
Rebased and added a workaround for the black-line logic: CSS seems not to be expressive enough to put a black bar between the colors |
|
Please also fix the jshint/jscs errors reported in the build: |
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 make this work on small screens as well with a max-witdh?
width: 100%;
max-width: 140px;
|
Other than that I think this is looking great! Awesome work @sttts! |
Two new attributes are added to the /v2/apps JSON: tasksHealthy, tasksUnhealthy These numbers are calculated in the MarathonHealthCheckManager by counting the aggregated health check results of all tasks of an app.
Without this patch rounding errors will lead to a total width >100% in the stacked health bar. This patch cuts of the digits after the 3rd decimal to avoid that.
CSS seems not to be expressive enough to put a black bar between the colors in the health-bar, while keeping the 0% colors for correct animation. Hence, the component has now some code to set the health-bar-inner class which adds the black line between the colors.
- use classSet to compose CSS classes of the individual bars - split render function - remove unnecessary loop
8f24356 to
00ee4ba
Compare
|
💯 This is an amazing improvement to the UI. Thank you so much for contributing @sttts !! |
Task health pie chart in application list view
|
Cool! Thanks for merging and thanks for all the reviews. |
|
Awesome! 🎆 |
|
This is great stuff! Thanks a lot. |
|
👍, major kudos for your perserverance @sttts. Nice result. |



