[SharedUX] use core.rendering service for Share plugin interfaces#221714
[SharedUX] use core.rendering service for Share plugin interfaces#221714tsullivan merged 9 commits intoelastic:mainfrom
Conversation
db8eb5e to
7d39c8a
Compare
ThomThomson
left a comment
There was a problem hiding this comment.
Changes LGTM! Code review only
lukasolson
left a comment
There was a problem hiding this comment.
DataDiscovery changes LGTM (code review only)
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/15430628486 |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…astic#221714) ## Summary Split out from elastic#220170 This pull request refactors the `Reporting` and `Share` modules to streamline usage of services required for rendering React components. It replaces the deprecated `KibanaRenderContextProvider`-related services (`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering service. ### Reporting Module Updates: * Updated Reporting modals and actions to use the `rendering` service instead of the deprecated services. * All usages of `toMountPoint` now receive the `rendering` service as a parameter, aligning with the new rendering context. ### Share Module Updates: * Refactored `share_menu_manager.tsx` to remove dependencies on deprecated services for rendering the share menu. * Updated the `toggleShareContextMenu` method: * Removed `toasts` from the `ShareContext` interface object. * Now accepts `rendering` as a parameter and passes it to `toMountPoint`. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 395844f) # Conflicts: # src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_csv_modal_reporting.tsx # src/platform/packages/private/kbn-reporting/public/share/share_context_menu/register_pdf_png_modal_reporting.tsx # src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/share/show_share_modal.tsx # src/platform/plugins/shared/discover/public/application/main/components/top_nav/app_menu_actions/get_share.tsx # src/platform/plugins/shared/share/public/components/context/index.tsx # src/platform/plugins/shared/share/public/components/export_popover/export_popover.test.tsx # src/platform/plugins/shared/share/public/components/share_tabs.test.tsx # src/platform/plugins/shared/share/public/services/share_menu_manager.tsx # src/platform/plugins/shared/share/public/types.ts # src/platform/plugins/shared/share/tsconfig.json # src/platform/plugins/shared/visualizations/public/visualize_app/utils/get_top_nav_config.tsx # x-pack/platform/plugins/shared/lens/public/app_plugin/lens_top_nav.tsx
…astic#221714) ## Summary Split out from elastic#220170 This pull request refactors the `Reporting` and `Share` modules to streamline usage of services required for rendering React components. It replaces the deprecated `KibanaRenderContextProvider`-related services (`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering service. ### Reporting Module Updates: * Updated Reporting modals and actions to use the `rendering` service instead of the deprecated services. * All usages of `toMountPoint` now receive the `rendering` service as a parameter, aligning with the new rendering context. ### Share Module Updates: * Refactored `share_menu_manager.tsx` to remove dependencies on deprecated services for rendering the share menu. * Updated the `toggleShareContextMenu` method: * Removed `toasts` from the `ShareContext` interface object. * Now accepts `rendering` as a parameter and passes it to `toMountPoint`. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ces (#221714) (#222613) # Backport This will backport the following commits from `main` to `8.19`: - [[SharedUX] use core.rendering service for Share plugin interfaces (#221714)](#221714) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Tim Sullivan","email":"tsullivan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-04T00:24:21Z","message":"[SharedUX] use core.rendering service for Share plugin interfaces (#221714)\n\n## Summary\n\nSplit out from https://github.com/elastic/kibana/pull/220170\n\nThis pull request refactors the `Reporting` and `Share` modules to\nstreamline usage of services required for rendering React components. It\nreplaces the deprecated `KibanaRenderContextProvider`-related services\n(`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering\nservice.\n\n### Reporting Module Updates:\n* Updated Reporting modals and actions to use the `rendering` service\ninstead of the deprecated services.\n* All usages of `toMountPoint` now receive the `rendering` service as a\nparameter, aligning with the new rendering context.\n\n### Share Module Updates:\n* Refactored `share_menu_manager.tsx` to remove dependencies on\ndeprecated services for rendering the share menu.\n* Updated the `toggleShareContextMenu` method:\n * Removed `toasts` from the `ShareContext` interface object.\n* Now accepts `rendering` as a parameter and passes it to\n`toMountPoint`.\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"395844f96f34a4098daaaf115ea9b552064ee961","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.1.0","v8.19.0"],"title":"[SharedUX] use core.rendering service for Share plugin interfaces","number":221714,"url":"https://github.com/elastic/kibana/pull/221714","mergeCommit":{"message":"[SharedUX] use core.rendering service for Share plugin interfaces (#221714)\n\n## Summary\n\nSplit out from https://github.com/elastic/kibana/pull/220170\n\nThis pull request refactors the `Reporting` and `Share` modules to\nstreamline usage of services required for rendering React components. It\nreplaces the deprecated `KibanaRenderContextProvider`-related services\n(`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering\nservice.\n\n### Reporting Module Updates:\n* Updated Reporting modals and actions to use the `rendering` service\ninstead of the deprecated services.\n* All usages of `toMountPoint` now receive the `rendering` service as a\nparameter, aligning with the new rendering context.\n\n### Share Module Updates:\n* Refactored `share_menu_manager.tsx` to remove dependencies on\ndeprecated services for rendering the share menu.\n* Updated the `toggleShareContextMenu` method:\n * Removed `toasts` from the `ShareContext` interface object.\n* Now accepts `rendering` as a parameter and passes it to\n`toMountPoint`.\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"395844f96f34a4098daaaf115ea9b552064ee961"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221714","number":221714,"mergeCommit":{"message":"[SharedUX] use core.rendering service for Share plugin interfaces (#221714)\n\n## Summary\n\nSplit out from https://github.com/elastic/kibana/pull/220170\n\nThis pull request refactors the `Reporting` and `Share` modules to\nstreamline usage of services required for rendering React components. It\nreplaces the deprecated `KibanaRenderContextProvider`-related services\n(`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering\nservice.\n\n### Reporting Module Updates:\n* Updated Reporting modals and actions to use the `rendering` service\ninstead of the deprecated services.\n* All usages of `toMountPoint` now receive the `rendering` service as a\nparameter, aligning with the new rendering context.\n\n### Share Module Updates:\n* Refactored `share_menu_manager.tsx` to remove dependencies on\ndeprecated services for rendering the share menu.\n* Updated the `toggleShareContextMenu` method:\n * Removed `toasts` from the `ShareContext` interface object.\n* Now accepts `rendering` as a parameter and passes it to\n`toMountPoint`.\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"395844f96f34a4098daaaf115ea9b552064ee961"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…astic#221714) ## Summary Split out from elastic#220170 This pull request refactors the `Reporting` and `Share` modules to streamline usage of services required for rendering React components. It replaces the deprecated `KibanaRenderContextProvider`-related services (`analytics`, `i18n`, `theme`, `userProfile`) with the new rendering service. ### Reporting Module Updates: * Updated Reporting modals and actions to use the `rendering` service instead of the deprecated services. * All usages of `toMountPoint` now receive the `rendering` service as a parameter, aligning with the new rendering context. ### Share Module Updates: * Refactored `share_menu_manager.tsx` to remove dependencies on deprecated services for rendering the share menu. * Updated the `toggleShareContextMenu` method: * Removed `toasts` from the `ShareContext` interface object. * Now accepts `rendering` as a parameter and passes it to `toMountPoint`. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Split out from #220170
This pull request refactors the
ReportingandSharemodules to streamline usage of services required for rendering React components. It replaces the deprecatedKibanaRenderContextProvider-related services (analytics,i18n,theme,userProfile) with the new rendering service.Reporting Module Updates:
renderingservice instead of the deprecated services.toMountPointnow receive therenderingservice as a parameter, aligning with the new rendering context.Share Module Updates:
share_menu_manager.tsxto remove dependencies on deprecated services for rendering the share menu.toggleShareContextMenumethod:toastsfrom theShareContextinterface object.renderingas a parameter and passes it totoMountPoint.Checklist