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

[App Search] Convert Analytics views to new page template #102851

Merged
merged 4 commits into from
Jun 22, 2021

Conversation

cee-chen
Copy link
Member

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

analytics

Checklist

- 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)
@cee-chen cee-chen added release_note:skip Skip the PR/issue when compiling release notes v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 22, 2021
@cee-chen cee-chen requested a review from a team June 22, 2021 04:35
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1455 1446 -9

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.1MB 2.1MB -4.3KB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

expect(wrapper.find('[data-test-subj="world"]').text()).toEqual('World!');

expect(wrapper.prop('pageChrome')).toEqual(['Engines', 'some-engine', 'Analytics']);
Copy link
Member

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.

Copy link
Member Author

@cee-chen cee-chen Jun 22, 2021

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

@cee-chen cee-chen merged commit 00a9f84 into elastic:master Jun 22, 2021
@cee-chen cee-chen deleted the kibana-page-template-as-12 branch June 22, 2021 15:41
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 22, 2021
…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
kibanamachine added a commit that referenced this pull request Jun 22, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants