-
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
Add doc titles to ES UI apps #71045
Add doc titles to ES UI apps #71045
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
…License Management, Remote Clusters, Rollup Jobs, and Upgrade Assistant. Clear doc title when leaving Dev Tools.
b190726
to
661db66
Compare
@elasticmachine merge upstream |
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.
@cjcenizal Great work and thanks for fixing this! I see my original issue was missing "Watcher" from this list. Would you mind also updating that mount logic there?
@@ -203,6 +203,7 @@ export function renderApp( | |||
}); | |||
|
|||
return () => { | |||
chrome.docTitle.reset(); |
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.
I think we could add this to the management plugin (in OSS) too, so that when the management area renders/mounts, before any plugins have rendered, we always reset the doc title. Instead of in the clean up function we do this on init.
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.
I see what you're saying, and I think I'd like to encourage each app to clean up after itself instead. I think it's likely that we'll move apps out of Management and when that happens it will be reassuring to know that this behavior is encapsulated within each plugin and won't be broken by the move.
@@ -60,6 +63,12 @@ export class CrossClusterReplicationPlugin implements Plugin { | |||
history, | |||
getUrlForApp, | |||
}); | |||
|
|||
return () => { | |||
// Change tab label back to Kibana. |
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.
FWIW I think this comment should be updated to "...back to Elastic" because that is the actual value. I think we could actually remove this comment entirely as I think the function name and object name are descriptive enough :)
b3d8093
to
f7d5c4a
Compare
Thanks for the review @jloleysens! I've removed the comments and I decided not to act on your other suggestion. Could you please take another look? |
@elasticmachine merge upstream |
@cjcenizal Thanks for addressing the point regarding the comments. Happy with your decision regarding management plugin. However I still think we should include fixing watcher's page title here. |
Per my review comment :) |
- Refactor boot file to follow index-oriented pattern of other plugins.
@jloleysens Thanks for reminding me about Watcher! Done. Can you take another look? |
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.
Thanks for fixing watcher too!
All looks good to me now, great work @cjcenizal !
@elasticmachine merge upstream |
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
* Add doc titles to CCR, ILM, Index Management, Ingest Node Pipelines, License Management, Remote Clusters, Rollup Jobs, Watcher, and Upgrade Assistant. Clear doc title when leaving Dev Tools. * Refactor Watcher boot file to follow index-oriented pattern of other plugins.
* master: [Security Solution][Timeline] Add Empty view to the Timelines page (elastic#72576) [Security Solution][Resolver] Show process detail panel when clicking a process node (elastic#72563) Move manifest packageConfig mocks into security_solution plugin (elastic#72527) [QA][Code Coverage] Fixup Team Assignment (elastic#72467) [docs] remove references to tile map visualization in supported aggregations (elastic#72493) [ci][apm-ui] fix argument name for disabling pr comments (elastic#72633) Only check that the event ids are the same in arrays (elastic#72624) Add doc titles to ES UI apps (elastic#71045) Add Upgrade Assistant API integration test to ensure the reindex operation saved object can handle immense error messages (elastic#72347) [APM] Disable flaky rum e2e’s (elastic#72614) Applying tiny fix from 72532 to main branch (elastic#72533) [APM] Update script with new roles/users (elastic#72599) [Security Solution] Add margin (elastic#72542) Migrated fixed_scroll karma tests to jest (elastic#72258) [ML] Handling data recognizer saved object errors (elastic#72447) [Monitoring] Fix the messaging around needing TLS enabled (elastic#72310) [Task Manager] Batches the update operations in Task Manager (elastic#71470)
…feature-privileges * alerting/consumer-based-rbac: [Security Solution][Timeline] Add Empty view to the Timelines page (elastic#72576) [Security Solution][Resolver] Show process detail panel when clicking a process node (elastic#72563) renamed variable to make it clear the SO client is unsecured Move manifest packageConfig mocks into security_solution plugin (elastic#72527) [QA][Code Coverage] Fixup Team Assignment (elastic#72467) [docs] remove references to tile map visualization in supported aggregations (elastic#72493) [ci][apm-ui] fix argument name for disabling pr comments (elastic#72633) Only check that the event ids are the same in arrays (elastic#72624) includes hidden params type in SO client Add doc titles to ES UI apps (elastic#71045) Add Upgrade Assistant API integration test to ensure the reindex operation saved object can handle immense error messages (elastic#72347) [APM] Disable flaky rum e2e’s (elastic#72614) Applying tiny fix from 72532 to main branch (elastic#72533) [APM] Update script with new roles/users (elastic#72599) [Security Solution] Add margin (elastic#72542) Migrated fixed_scroll karma tests to jest (elastic#72258) [ML] Handling data recognizer saved object errors (elastic#72447) [Monitoring] Fix the messaging around needing TLS enabled (elastic#72310) [Task Manager] Batches the update operations in Task Manager (elastic#71470)
Fixes #69286
Applies to CCR, ILM, Index Management, Ingest Node Pipelines, License Management, Remote Clusters, Rollup Jobs, Watcher, and Upgrade Assistant. Also, this PR clears the doc title when leaving Dev Tools.