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

Add missing stream data component #361

Merged

Conversation

rastalamm
Copy link
Contributor

This PR addresses issue 344.

  • Adds in a Missing Data component to let users know which information is missing
  • Missing data has a Tooltip and ellipsis applied to it
  • Moves the conditional logic of displaying a loading spinner out of Monochrome (MetricCard) and into the XVIZ layer
  • Bumps up the Monochrome version to beta.4

missing_data

…files to display missing data, instead of passing the missing information as a Prop to a component in Monochrome
…ner and the missing streams into the xviz layer
Copy link

@shoshannamb shoshannamb left a comment

Choose a reason for hiding this comment

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

Overall, looks good! I think we want to move the missing data calculation to state so that we're not constantly redoing it and we want to make sure to extend the style prop so that you can pass in style.missingData and override the default styling. Also make sure to update xviz-metric.md and xviz-plot.md when you do that.

… data warning and move the identifying of missing stream data to componentWillReceiveProps func instead of in the render
Copy link

@shoshannamb shoshannamb left a comment

Choose a reason for hiding this comment

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

One last nitpicky comment.

modules/core/src/components/declarative-ui/xviz-metric.js Outdated Show resolved Hide resolved
…ring, for plots modify the missingStreams to only update the state if the nextprops dependent variables have changed and are missing data
…from theme, and update missing plot data to be more explicit
verticalGridLines={verticalGridLines}
/>
<MetricCard title={title} description={description} style={style} isLoading={false}>
<>
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a shorthand fragment - the "closing" fragment is on line 221.

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.

3 participants