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

[Uptime] Fix chart wrapping for monitor page #49268

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

justinkambic
Copy link
Contributor

Summary

Resolves #49243.

Extracts the responsive wrapping functionality we previously introduced to a separate component, and allows consuming code to choose between a responsive element or an EuiPanel.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@justinkambic justinkambic added bug Fixes for quality problems that affect the customer experience v8.0.0 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.5.0 v7.6.0 labels Oct 25, 2019
@justinkambic justinkambic self-assigned this Oct 25, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@justinkambic justinkambic force-pushed the uptime_responsive-wrapper branch from 2f8fbf7 to 63a2c6c Compare October 25, 2019 01:42
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@justinkambic justinkambic marked this pull request as ready for review October 25, 2019 18:10
@andrewvc andrewvc self-requested a review October 29, 2019 14:54
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

Works great in tests and the code looks pretty good, but just to confirm, we've investigated and there's no way to make this responsive without custom styling. Is that correct? Should we open an EUI issue about this?

import styled from 'styled-components';

const ResponsiveWrapper = styled.div`
margin-left: 120px;
Copy link
Contributor

Choose a reason for hiding this comment

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

So, is there no EUI way to get this to work in a responsive way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can see this comment for more info about why we have this custom styling here. I can ask someone from EUI to review this as well to see if they have a better recommendation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For more clarification, we wanted to introduce additional whitespace to balance out the view a bit, and because there wasn't enough separation in the default mobile view. In essence we're still using EUI's styling, just customizing it slightly. I've asked the EUI team to give us feedback on this though.

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM

@justinkambic
Copy link
Contributor Author

justinkambic commented Oct 31, 2019

@justinkambic justinkambic deleted the uptime_responsive-wrapper branch October 31, 2019 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:fix Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.5.0 v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Monitor page duration chart doesn't show its panel
3 participants