-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Service overview: Introduce time-series comparison #88665
[APM] Service overview: Introduce time-series comparison #88665
Conversation
Pinging @elastic/apm-ui (Team:apm) |
@elasticmachine merge upstream |
x-pack/plugins/apm/public/components/shared/time_comparison/index.test.tsx
Outdated
Show resolved
Hide resolved
@formgeist let me know what you think about the search bar: |
Pinging @elastic/uptime (Team:uptime) |
x-pack/plugins/apm/public/components/shared/time_comparison/index.tsx
Outdated
Show resolved
Hide resolved
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.
UX LGTM
x-pack/plugins/apm/public/components/shared/time_comparison/index.tsx
Outdated
Show resolved
Hide resolved
@@ -29,4 +29,6 @@ export type IUrlParams = { | |||
searchTerm?: string; | |||
percentile?: number; | |||
latencyAggregationType?: string; | |||
comparisonEnabled?: boolean; | |||
comparisonType?: string; |
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.
Ideally we could stop adding more urlparams but not sure there are any good alternatives until we tackle #51963...
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.
lgtm
The breakpoints look good - only thing I noticed is that there's no margin to the content when the comparison and date picker breaks to another row. If we can add some to separate the content from the search bar section, that'd be 👍 |
|
👍 |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* adding comparision select option * adding time comparison field on some pages * removing unused files * fixing unit test * adding unit tests * enabling comparison for more than 8 days * removing tooltip * refactoring search bar * moving useBreakPoint to common hooks folder, removing useShouldUSeMobileLayout hook * addressing PR comments * addressing PR comments * addressing PR comments * addressing PR comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…8948) * adding comparision select option * adding time comparison field on some pages * removing unused files * fixing unit test * adding unit tests * enabling comparison for more than 8 days * removing tooltip * refactoring search bar * moving useBreakPoint to common hooks folder, removing useShouldUSeMobileLayout hook * addressing PR comments * addressing PR comments * addressing PR comments * addressing PR comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Part of #81147
This PR does not handle the data fetch, it only adds the logic in the UI fields.
Comparison will be enabled by default unless the time range selected is greater than 8 days. The select box can have two options "Yesterday" or "A week ago" depending on the time range selected
When the time range is less than 1 day: "Yesterday" and "A week ago" are visible
When the time range is greater than 1 day and less than 8 days: "A week ago" is visible and the select box is disabled.
When the time range is greater than 8 days: "Previous period" is visible and the select box is disabled.