-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[App Search] Convert Analytics views to new page template #102851
Conversation
- it's basically the same component as before, but without the title section/log retention tooltip, since the header/title will be handled by the new page template
+ add new test_helper for header children
- Set analytic breadcrumbs in AnalyticsLayout rather than AnalyticsRouter - Update individual views to pass breadcrumbs (consistent with new page template API)
💚 Build SucceededMetrics [docs]Module Count
Async chunks
To update your PR or re-run it, just comment with: |
expect(wrapper.find('[data-test-subj="world"]').text()).toEqual('World!'); | ||
|
||
expect(wrapper.prop('pageChrome')).toEqual(['Engines', 'some-engine', 'Analytics']); |
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.
[non-blocking] It was a little confusing seeing that a pageChrome
parameter accepted breadcrumbs as a parameter. I would have expected the parameter to be named something like breadcrumbs
.
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.
Don't forget it's setting the document title too, which is very important 😄 That's why it's not just breadcrumbs
, although maybe I should clarify the typing on that
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…2851) * Convert AnalyticsHeader to AnalyticsFilters - it's basically the same component as before, but without the title section/log retention tooltip, since the header/title will be handled by the new page template * Update AnalyticsLayout to use new page template + add new test_helper for header children * Update breadcrumb behavior - Set analytic breadcrumbs in AnalyticsLayout rather than AnalyticsRouter - Update individual views to pass breadcrumbs (consistent with new page template API) * Update router
…102945) * Convert AnalyticsHeader to AnalyticsFilters - it's basically the same component as before, but without the title section/log retention tooltip, since the header/title will be handled by the new page template * Update AnalyticsLayout to use new page template + add new test_helper for header children * Update breadcrumb behavior - Set analytic breadcrumbs in AnalyticsLayout rather than AnalyticsRouter - Update individual views to pass breadcrumbs (consistent with new page template API) * Update router Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Summary
Follow up to #102170 - converts more App Search pages to the new KibanaPageTemplate. I'm attempting to break up the AS layout conversion into smaller, easier to review chunks.
This PR handles the Analytics view. It's slightly more complex than the others as Analytics already had a shared layout/header that needed to be updated to use the new EuiPageHeader setup (the log tooltip moved to the right, which was OK'd by Davey). As always, follow along by commit (and turn off whitespace diffs)
Screencaps
Checklist