Skip to content

[7.x] [Enterprise Search] Update the browser/document title on plugin navigation (#74392)#74694

Merged
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-74392
Aug 10, 2020
Merged

[7.x] [Enterprise Search] Update the browser/document title on plugin navigation (#74392)#74694
cee-chen merged 1 commit intoelastic:7.xfrom
cee-chen:backport/7.x/pr-74392

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…ation (elastic#74392)

* Rename kibana_breadcrumbs to kibana_chrome

- in anticipation of upcoming refactor where SetPageChrome now handles document title as well as Kibana breadcrumbs
+ cleanup exports

* Add generate_title helpers

- will be used by new set_chrome helper

* Add setDocTitle context + behavior to set_chrome

+ refactor set_chrome.test.tsx:
  - add title tests
  - add SetWorkplaceSearchChrome test to increase coverage
  - clean up inner/outer call in favor of simpler mocks/imports
  - simplify isRoot tests

* Update plugins to set product titles
- on mount but before render

* Copy feedback - change pipe separator to hyphen

- to match ' - Elastic'

* Add functional tests confirming that document titles updated
@cee-chen cee-chen added the backport This PR is a backport of another PR label Aug 10, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
enterpriseSearch 167 +1 166

async chunks size

id value diff baseline
enterpriseSearch 267.1KB +2.2KB 264.9KB

page load bundle size

id value diff baseline
enterpriseSearch 19.4KB +152.0B 19.3KB

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

@cee-chen cee-chen merged commit 06c0ebb into elastic:7.x Aug 10, 2020
@cee-chen cee-chen deleted the backport/7.x/pr-74392 branch August 10, 2020 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants