Skip to content
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

M3-2287: add transfer stats to Linode summary panel #4574

Merged

Conversation

rulikrulit
Copy link
Contributor

Type of Change

  • Add Transfer Stats to Linode summary panel

@rulikrulit rulikrulit self-assigned this Feb 27, 2019
@rulikrulit rulikrulit requested a review from alioso February 27, 2019 19:31
Copy link
Contributor

@nwisnewski nwisnewski 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!

return (
<Notice
text={
"Couldn't load Linode's network summary. Please, refresh the page to try loading it again."
Copy link
Contributor

@Jskobos Jskobos Feb 28, 2019

Choose a reason for hiding this comment

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

In some cases (a Linode without an image, or one that is v. new), this request will fail and reloading the page won't help. imo we should just not show this panel if the request fails, rather than have an error state for it, but if we do want to show it, we should:

  1. Change the error message to Network transfer information for this Linode is currently unavailable..
  2. Duplicate the logic used in the stats panels elsewhere on LinodeDetail, so that within 24 hours of creation we show a default non-error message.

Copy link
Contributor

@alioso alioso Feb 28, 2019

Choose a reason for hiding this comment

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

took care of # 1 , @rulikrulit # 2 is the only feedback remaining

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2 is fixed too

<Typography align="center" variant="h2" className={classes.title}>
Monthly Network Transfer
</Typography>
<CircleProgress />
Copy link
Contributor

Choose a reason for hiding this comment

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

Should add the mini prop here

Copy link
Contributor

Choose a reason for hiding this comment

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

donzzz

Copy link
Contributor

@alioso alioso left a comment

Choose a reason for hiding this comment

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

Approved pending Jared feedback for 24h logic

@rulikrulit rulikrulit merged commit 7ff5b26 into linode:develop Mar 5, 2019
@rulikrulit rulikrulit deleted the feature/M3-2287-transfer-stats branch March 5, 2019 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants