[SharedUX] Replace KibanaRenderContextProvider usage#220170
[SharedUX] Replace KibanaRenderContextProvider usage#220170tsullivan merged 6 commits intoelastic:mainfrom
Conversation
1a30a8f to
bd002f6
Compare
bd002f6 to
4b98a6c
Compare
4b98a6c to
03edf68
Compare
03edf68 to
750910d
Compare
d934a18 to
86f7fe2
Compare
sabarasaba
left a comment
There was a problem hiding this comment.
Advanced settings changes lgtm
…21714) ## Summary Split out from #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>
…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>
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
|
clintandrewhall
left a comment
There was a problem hiding this comment.
Code review only. All looks consistent. Great work!
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/15615026513 |
💔 All backports failed
Manual backportTo create the backport manually run: 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>
## Summary Closes elastic#220175 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Closes elastic#220175 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 68174f8) # Conflicts: # examples/developer_examples/public/app.tsx # src/platform/packages/shared/content-management/content_editor/src/services.tsx # src/platform/packages/shared/content-management/table_list_view_table/src/services.tsx # src/platform/plugins/shared/home/public/application/application.tsx # src/platform/plugins/shared/home/tsconfig.json # x-pack/platform/plugins/shared/saved_objects_tagging/tsconfig.json # x-pack/platform/plugins/shared/serverless/public/plugin.tsx
Closes elastic#220175 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 68174f8)
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
2 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…#224470) # Backport This will backport the following commits from `main` to `8.19`: - [[SharedUX] Replace KibanaRenderContextProvider usage (#220170)](#220170) <!--- Backport version: 10.0.1 --> ### 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-12T15:39:59Z","message":"[SharedUX] Replace KibanaRenderContextProvider usage (#220170)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/220175\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"68174f87058edc807fbd1a479469094d11128249","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","backport:version","v9.1.0","v8.19.0"],"title":"[SharedUX] Replace KibanaRenderContextProvider usage","number":220170,"url":"https://github.com/elastic/kibana/pull/220170","mergeCommit":{"message":"[SharedUX] Replace KibanaRenderContextProvider usage (#220170)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/220175\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"68174f87058edc807fbd1a479469094d11128249"}},"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/220170","number":220170,"mergeCommit":{"message":"[SharedUX] Replace KibanaRenderContextProvider usage (#220170)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/220175\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"68174f87058edc807fbd1a479469094d11128249"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Closes #220175