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

Sustainable Kibana Architecture: Move modules owned by @elastic/appex-sharedux #203163

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
f4a06f5
Relocating module `@kbn/advanced-settings-plugin`
gsoldevila Dec 9, 2024
4cc1ccc
Relocating module `@kbn/banners-plugin`
gsoldevila Dec 9, 2024
def3a63
Relocating module `@kbn/bfetch-error`
gsoldevila Dec 9, 2024
63f4c35
Relocating module `@kbn/bfetch-plugin`
gsoldevila Dec 9, 2024
0354542
Relocating module `@kbn/code-editor`
gsoldevila Dec 9, 2024
2985b07
Relocating module `@kbn/code-editor-mock`
gsoldevila Dec 9, 2024
b6d9a03
Relocating module `@kbn/content-management-content-editor`
gsoldevila Dec 9, 2024
72d14a3
Relocating module `@kbn/content-management-content-insights-public`
gsoldevila Dec 9, 2024
1b46dad
Relocating module `@kbn/content-management-content-insights-server`
gsoldevila Dec 9, 2024
a6d9700
Relocating module `@kbn/content-management-favorites-common`
gsoldevila Dec 9, 2024
1d598b8
Relocating module `@kbn/content-management-favorites-public`
gsoldevila Dec 9, 2024
c72ca38
Relocating module `@kbn/content-management-favorites-server`
gsoldevila Dec 9, 2024
d2ec25b
Relocating module `@kbn/content-management-plugin`
gsoldevila Dec 9, 2024
d6082bd
Relocating module `@kbn/content-management-tabbed-table-list-view`
gsoldevila Dec 9, 2024
55ac29a
Relocating module `@kbn/content-management-table-list-view`
gsoldevila Dec 9, 2024
0499071
Relocating module `@kbn/content-management-table-list-view-common`
gsoldevila Dec 9, 2024
047734d
Relocating module `@kbn/content-management-table-list-view-table`
gsoldevila Dec 9, 2024
62d24e5
Relocating module `@kbn/content-management-user-profiles`
gsoldevila Dec 9, 2024
edd9289
Relocating module `@kbn/custom-branding-plugin`
gsoldevila Dec 9, 2024
f2e2876
Relocating module `@kbn/deeplinks-shared`
gsoldevila Dec 9, 2024
5c28399
Relocating module `@kbn/files-management-plugin`
gsoldevila Dec 9, 2024
9fc3ef6
Relocating module `@kbn/files-plugin`
gsoldevila Dec 9, 2024
b7ea7ef
Relocating module `@kbn/generate-csv`
gsoldevila Dec 9, 2024
a71b6d5
Relocating module `@kbn/global-search-bar-plugin`
gsoldevila Dec 9, 2024
be0ac14
Relocating module `@kbn/global-search-plugin`
gsoldevila Dec 9, 2024
52b1bb0
Relocating module `@kbn/global-search-providers-plugin`
gsoldevila Dec 9, 2024
8ef7dac
Relocating module `@kbn/guided-onboarding`
gsoldevila Dec 9, 2024
5373581
Relocating module `@kbn/guided-onboarding-plugin`
gsoldevila Dec 9, 2024
1da96eb
Relocating module `@kbn/home-plugin`
gsoldevila Dec 9, 2024
4f8de0b
Relocating module `@kbn/home-sample-data-card`
gsoldevila Dec 9, 2024
7bdf882
Relocating module `@kbn/home-sample-data-tab`
gsoldevila Dec 9, 2024
ebe9b45
Relocating module `@kbn/home-sample-data-types`
gsoldevila Dec 9, 2024
f2814e3
Relocating module `@kbn/image-embeddable-plugin`
gsoldevila Dec 9, 2024
d1c5f86
Relocating module `@kbn/item-buffer`
gsoldevila Dec 9, 2024
fe9ebd1
Relocating module `@kbn/kibana-overview-plugin`
gsoldevila Dec 9, 2024
902ede7
Relocating module `@kbn/kibana-react-plugin`
gsoldevila Dec 9, 2024
a4cdf68
Relocating module `@kbn/kibana-utils-plugin`
gsoldevila Dec 9, 2024
37d62c6
Relocating module `@kbn/management-settings-ids`
gsoldevila Dec 9, 2024
0effdc6
Relocating module `@kbn/management-settings-section-registry`
gsoldevila Dec 9, 2024
e490c02
Relocating module `@kbn/monaco`
gsoldevila Dec 9, 2024
2abc9af
Relocating module `@kbn/navigation-plugin`
gsoldevila Dec 9, 2024
2e3212d
Relocating module `@kbn/no-data-page-plugin`
gsoldevila Dec 9, 2024
cc37478
Relocating module `@kbn/notifications-plugin`
gsoldevila Dec 9, 2024
b3c25a6
Relocating module `@kbn/object-versioning`
gsoldevila Dec 9, 2024
be7d9b0
Relocating module `@kbn/object-versioning-utils`
gsoldevila Dec 9, 2024
40fedd5
Relocating module `@kbn/react-kibana-context-common`
gsoldevila Dec 9, 2024
0ceebfd
Relocating module `@kbn/react-kibana-context-render`
gsoldevila Dec 9, 2024
f1acbe2
Relocating module `@kbn/react-kibana-context-root`
gsoldevila Dec 9, 2024
a1575f3
Relocating module `@kbn/react-kibana-context-styled`
gsoldevila Dec 9, 2024
d3f0215
Relocating module `@kbn/react-kibana-context-theme`
gsoldevila Dec 9, 2024
98faa32
Relocating module `@kbn/react-kibana-mount`
gsoldevila Dec 9, 2024
644ab43
Relocating module `@kbn/recently-accessed`
gsoldevila Dec 9, 2024
a79dc8b
Relocating module `@kbn/reporting-common`
gsoldevila Dec 9, 2024
b3d86e1
Relocating module `@kbn/reporting-csv-share-panel`
gsoldevila Dec 9, 2024
3e38dec
Relocating module `@kbn/reporting-export-types-csv`
gsoldevila Dec 9, 2024
1116b66
Relocating module `@kbn/reporting-export-types-csv-common`
gsoldevila Dec 9, 2024
7ebd6ae
Relocating module `@kbn/reporting-export-types-pdf`
gsoldevila Dec 9, 2024
f8c5482
Relocating module `@kbn/reporting-export-types-pdf-common`
gsoldevila Dec 9, 2024
0ce08ec
Relocating module `@kbn/reporting-export-types-png`
gsoldevila Dec 9, 2024
89c65c9
Relocating module `@kbn/reporting-export-types-png-common`
gsoldevila Dec 9, 2024
3e9b05d
Relocating module `@kbn/reporting-mocks-server`
gsoldevila Dec 9, 2024
5b8ee13
Relocating module `@kbn/reporting-plugin`
gsoldevila Dec 9, 2024
d6cdbb2
Relocating module `@kbn/reporting-public`
gsoldevila Dec 9, 2024
490c9c4
Relocating module `@kbn/reporting-server`
gsoldevila Dec 9, 2024
197585a
Relocating module `@kbn/saved-objects-plugin`
gsoldevila Dec 9, 2024
717e4ad
Relocating module `@kbn/saved-objects-settings`
gsoldevila Dec 9, 2024
934fe6d
Relocating module `@kbn/saved-objects-tagging-oss-plugin`
gsoldevila Dec 9, 2024
eab60fd
Relocating module `@kbn/saved-objects-tagging-plugin`
gsoldevila Dec 9, 2024
facca34
Relocating module `@kbn/screenshot-mode-plugin`
gsoldevila Dec 9, 2024
8f45156
Relocating module `@kbn/screenshotting-example-plugin`
gsoldevila Dec 9, 2024
46331e9
Relocating module `@kbn/screenshotting-server`
gsoldevila Dec 9, 2024
02f9a25
Relocating module `@kbn/serverless`
gsoldevila Dec 9, 2024
474e0dd
Relocating module `@kbn/serverless-common-settings`
gsoldevila Dec 9, 2024
5c1dfa5
Relocating module `@kbn/serverless-observability-settings`
gsoldevila Dec 9, 2024
f34df1d
Relocating module `@kbn/serverless-project-switcher`
gsoldevila Dec 9, 2024
5e4206e
Relocating module `@kbn/serverless-types`
gsoldevila Dec 9, 2024
248e2da
Relocating module `@kbn/share-plugin`
gsoldevila Dec 9, 2024
d5baef7
Relocating module `@kbn/shared-ux-avatar-solution`
gsoldevila Dec 9, 2024
dd7b72b
Relocating module `@kbn/shared-ux-button-exit-full-screen`
gsoldevila Dec 9, 2024
5d16cfa
Relocating module `@kbn/shared-ux-button-toolbar`
gsoldevila Dec 9, 2024
3c7a0fc
Relocating module `@kbn/shared-ux-card-no-data`
gsoldevila Dec 9, 2024
daf47c8
Relocating module `@kbn/shared-ux-card-no-data-mocks`
gsoldevila Dec 9, 2024
8d1fac8
Relocating module `@kbn/shared-ux-card-no-data-types`
gsoldevila Dec 9, 2024
5f88355
Relocating module `@kbn/shared-ux-chrome-navigation`
gsoldevila Dec 9, 2024
8dc31fb
Relocating module `@kbn/shared-ux-error-boundary`
gsoldevila Dec 9, 2024
cdbbfca
Relocating module `@kbn/shared-ux-file-context`
gsoldevila Dec 9, 2024
fcfc4ba
Relocating module `@kbn/shared-ux-file-image`
gsoldevila Dec 9, 2024
79b7e5f
Relocating module `@kbn/shared-ux-file-image-mocks`
gsoldevila Dec 9, 2024
4713764
Relocating module `@kbn/shared-ux-file-mocks`
gsoldevila Dec 9, 2024
c612d6d
Relocating module `@kbn/shared-ux-file-picker`
gsoldevila Dec 9, 2024
f03387a
Relocating module `@kbn/shared-ux-file-types`
gsoldevila Dec 9, 2024
0493b5a
Relocating module `@kbn/shared-ux-file-upload`
gsoldevila Dec 9, 2024
41b8882
Relocating module `@kbn/shared-ux-file-util`
gsoldevila Dec 9, 2024
7768322
Relocating module `@kbn/shared-ux-link-redirect-app`
gsoldevila Dec 9, 2024
0a61ec1
Relocating module `@kbn/shared-ux-link-redirect-app-mocks`
gsoldevila Dec 9, 2024
2edd45d
Relocating module `@kbn/shared-ux-link-redirect-app-types`
gsoldevila Dec 9, 2024
5ea909b
Relocating module `@kbn/shared-ux-markdown`
gsoldevila Dec 9, 2024
bbd44d9
Relocating module `@kbn/shared-ux-markdown-mocks`
gsoldevila Dec 9, 2024
53c3966
Relocating module `@kbn/shared-ux-markdown-types`
gsoldevila Dec 9, 2024
c71ed07
Relocating module `@kbn/shared-ux-page-analytics-no-data`
gsoldevila Dec 9, 2024
016d40d
Relocating module `@kbn/shared-ux-page-analytics-no-data-mocks`
gsoldevila Dec 9, 2024
6d49d54
Relocating module `@kbn/shared-ux-page-analytics-no-data-types`
gsoldevila Dec 9, 2024
756cd3e
Relocating module `@kbn/shared-ux-page-kibana-no-data`
gsoldevila Dec 9, 2024
238390e
Relocating module `@kbn/shared-ux-page-kibana-no-data-mocks`
gsoldevila Dec 9, 2024
048decf
Relocating module `@kbn/shared-ux-page-kibana-no-data-types`
gsoldevila Dec 9, 2024
5be79b9
Relocating module `@kbn/shared-ux-page-kibana-template`
gsoldevila Dec 9, 2024
1fa9286
Relocating module `@kbn/shared-ux-page-kibana-template-mocks`
gsoldevila Dec 9, 2024
f00d6b4
Relocating module `@kbn/shared-ux-page-kibana-template-types`
gsoldevila Dec 9, 2024
16867a0
Relocating module `@kbn/shared-ux-page-no-data`
gsoldevila Dec 9, 2024
d827321
Relocating module `@kbn/shared-ux-page-no-data-config`
gsoldevila Dec 9, 2024
d602c6c
Relocating module `@kbn/shared-ux-page-no-data-config-mocks`
gsoldevila Dec 9, 2024
c88a80b
Relocating module `@kbn/shared-ux-page-no-data-config-types`
gsoldevila Dec 9, 2024
0eb7a83
Relocating module `@kbn/shared-ux-page-no-data-mocks`
gsoldevila Dec 9, 2024
1879f91
Relocating module `@kbn/shared-ux-page-no-data-types`
gsoldevila Dec 9, 2024
71b7d7f
Relocating module `@kbn/shared-ux-page-solution-nav`
gsoldevila Dec 9, 2024
4e3fded
Relocating module `@kbn/shared-ux-prompt-no-data-views`
gsoldevila Dec 9, 2024
a2a03f9
Relocating module `@kbn/shared-ux-prompt-no-data-views-mocks`
gsoldevila Dec 9, 2024
bc90800
Relocating module `@kbn/shared-ux-prompt-no-data-views-types`
gsoldevila Dec 9, 2024
c5c952d
Relocating module `@kbn/shared-ux-prompt-not-found`
gsoldevila Dec 9, 2024
50caa22
Relocating module `@kbn/shared-ux-router`
gsoldevila Dec 9, 2024
6950afc
Relocating module `@kbn/shared-ux-storybook-mock`
gsoldevila Dec 9, 2024
0c04bb4
Relocating module `@kbn/shared-ux-tabbed-modal`
gsoldevila Dec 9, 2024
c936606
Relocating module `@kbn/shared-ux-table-persist`
gsoldevila Dec 9, 2024
7bed568
Relocating module `@kbn/shared-ux-utility`
gsoldevila Dec 9, 2024
ef37c07
Relocating module `@kbn/ui-actions-browser`
gsoldevila Dec 9, 2024
01eb661
Relocating module `@kbn/ui-actions-enhanced-examples-plugin`
gsoldevila Dec 9, 2024
c6f63f9
Relocating module `@kbn/ui-actions-enhanced-plugin`
gsoldevila Dec 9, 2024
e779417
Relocating module `@kbn/ui-actions-plugin`
gsoldevila Dec 9, 2024
9d49d06
Relocating module `@kbn/url-drilldown-plugin`
gsoldevila Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ const getPipeline = (filename: string, removeSteps = true) => {
/^src\/plugins\/discover/,
/^src\/plugins\/field_formats/,
/^src\/plugins\/inspector/,
/^src\/plugins\/kibana_react/,
/^src\/plugins\/kibana_utils/,
/^src\/platform\/platform\/plugins\/shared\/shared\/kibana_react/,
/^src\/platform\/platform\/plugins\/shared\/shared\/kibana_utils/,
/^src\/plugins\/saved_search/,
/^src\/plugins\/ui_actions/,
/^src\/platform\/plugins\/shared\/ui_actions/,
/^src\/plugins\/unified_histogram/,
/^src\/plugins\/unified_search/,
/^x-pack\/packages\/kbn-elastic-assistant/,
Expand Down
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ snapshots.js
/x-pack/plugins/canvas/canvas_plugin
/x-pack/plugins/canvas/shareable_runtime/build
/x-pack/plugins/canvas/storybook/build
/x-pack/plugins/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/**
/x-pack/plugins/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/**
/x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf/server/lib/pdf/assets/**
/x-pack/platform/plugins/private/reporting/server/export_types/printable_pdf_v2/server/lib/pdf/assets/**
/x-pack/plugins/cloud_integrations/cloud_full_story/server/assets/**

# package overrides
Expand All @@ -38,7 +38,7 @@ snapshots.js
/packages/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/
/packages/kbn-ui-framework/dist
/packages/kbn-flot-charts/lib
/packages/kbn-monaco/src/**/antlr
/src/platform/packages/shared/kbn-monaco/src/**/antlr
/src/platform/packages/shared/kbn-esql-ast/src/**/antlr

# Bazel
Expand Down
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ module.exports = {
* Temporarily disable some react rules for specific plugins, remove in separate PRs
*/
{
files: ['src/plugins/kibana_react/**/*.{js,mjs,ts,tsx}'],
files: ['src/platform/plugins/shared/kibana_react/**/*.{js,mjs,ts,tsx}'],
rules: {
'react-hooks/rules-of-hooks': 'off',
'react-hooks/exhaustive-deps': 'off',
},
},
{
files: ['src/plugins/kibana_utils/**/*.{js,mjs,ts,tsx}'],
files: ['src/platform/plugins/shared/kibana_utils/**/*.{js,mjs,ts,tsx}'],
rules: {
'react-hooks/exhaustive-deps': 'off',
},
Expand Down Expand Up @@ -1910,7 +1910,7 @@ module.exports = {
'src/core/**',
'x-pack/plugins/features/**',
'x-pack/plugins/licensing/**',
'x-pack/plugins/global_search/**',
'x-pack/platform/plugins/shared/global_search/**',
'x-pack/plugins/cloud/**',
'packages/kbn-config-schema',
'src/plugins/status_page/**',
Expand Down
258 changes: 129 additions & 129 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/paths-labeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- 'x-pack/plugins/dashboard_enhanced/public/services/drilldowns/**/*.*'
- 'Feature:ExpressionLanguage':
- 'src/plugins/expressions/**/*.*'
- 'src/plugins/bfetch/**/*.*'
- 'src/platform/plugins/shared/bfetch/**/*.*'
- 'Team:obs-ux-infra_services':
- 'x-pack/plugins/observability_solution/apm/**/*.*'
- 'x-pack/test/apm_api_integration/**/*.*'
Expand Down
40 changes: 20 additions & 20 deletions .i18nrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"paths": {
"advancedSettings": "src/plugins/advanced_settings",
"advancedSettings": "src/platform/plugins/private/advanced_settings",
"aiAssistantManagementSelection": "src/plugins/ai_assistant_management/selection",
"alerts": "packages/kbn-alerts/src",
"alertsUIShared": "packages/kbn-alerts-ui-shared/src",
"alertingTypes": "packages/kbn-alerting-types",
"apmOss": "src/plugins/apm_oss",
"autocomplete": "packages/kbn-securitysolution-autocomplete/src",
"avcBanner": "packages/kbn-avc-banner/src",
"bfetch": "src/plugins/bfetch",
"bfetchError": "packages/kbn-bfetch-error",
"bfetch": "src/platform/plugins/shared/bfetch",
"bfetchError": "src/platform/packages/shared/kbn-bfetch-error",
"cases": ["packages/kbn-cases-components"],
"cellActions": "packages/kbn-cell-actions",
"charts": "src/plugins/charts",
Expand Down Expand Up @@ -56,15 +56,15 @@
"eventAnnotationComponents": "packages/kbn-event-annotation-components",
"fieldUtils": "packages/kbn-field-utils",
"fieldFormats": "src/plugins/field_formats",
"files": "src/plugins/files",
"filesManagement": "src/plugins/files_management",
"files": "src/platform/plugins/shared/files",
"filesManagement": "src/platform/plugins/private/files_management",
"flot": "packages/kbn-flot-charts/lib",
"generateCsv": "packages/kbn-generate-csv",
"generateCsv": "src/platform/packages/private/kbn-generate-csv",
"grouping": "packages/kbn-grouping/src",
"alertsGrouping": "packages/kbn-alerts-grouping",
"guidedOnboarding": "src/plugins/guided_onboarding",
"guidedOnboardingPackage": "packages/kbn-guided-onboarding",
"home": "src/plugins/home",
"guidedOnboarding": "src/platform/plugins/shared/guided_onboarding",
"guidedOnboardingPackage": "src/platform/packages/shared/kbn-guided-onboarding",
"home": "src/platform/plugins/shared/home",
"homePackages": "packages/home",
"indexPatternEditor": "src/plugins/data_view_editor",
"indexPatternFieldEditor": "src/plugins/data_view_field_editor",
Expand All @@ -74,15 +74,15 @@
"inspectorViews": "src/legacy/core_plugins/inspector_views",
"interactiveSetup": "src/plugins/interactive_setup",
"interpreter": "src/legacy/core_plugins/interpreter",
"imageEmbeddable": "src/plugins/image_embeddable",
"imageEmbeddable": "src/platform/plugins/private/image_embeddable",
"kbn": "src/legacy/core_plugins/kibana",
"kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src",
"kbnConfig": "packages/kbn-config/src",
"kbnDocViews": "src/legacy/core_plugins/kbn_doc_views",
"kibana_react": "src/legacy/core_plugins/kibana_react",
"kibana_utils": "src/plugins/kibana_utils",
"kibana-react": "src/plugins/kibana_react",
"kibanaOverview": "src/plugins/kibana_overview",
"kibana_react": "src/legacy/core_platform/plugins/shared/kibana_react",
"kibana_utils": "src/platform/plugins/shared/kibana_utils",
"kibana-react": "src/platform/plugins/shared/kibana_react",
"kibanaOverview": "src/platform/plugins/private/kibana_overview",
"lensFormulaDocs": "packages/kbn-lens-formula-docs",
"lists": "packages/kbn-securitysolution-list-utils/src",
"exceptionList-components": "packages/kbn-securitysolution-exception-list-components/src",
Expand All @@ -91,8 +91,8 @@
"src/plugins/management",
"packages/kbn-management"
],
"monaco": "packages/kbn-monaco/src",
"navigation": ["src/plugins/navigation", "packages/solution-nav"],
"monaco": "src/platform/packages/shared/kbn-monaco/src",
"navigation": ["src/platform/plugins/shared/navigation", "packages/solution-nav"],
"links": "src/plugins/links",
"newsfeed": "src/plugins/newsfeed",
"presentationUtil": "src/plugins/presentation_util",
Expand All @@ -101,13 +101,13 @@
"esqlEditor": "src/platform/packages/private/kbn-esql-editor",
"esqlUtils": "src/platform/packages/shared/kbn-esql-utils",
"reporting": "packages/kbn-reporting",
"savedObjects": "src/plugins/saved_objects",
"savedObjects": "src/platform/plugins/shared/saved_objects",
"savedObjectsFinder": "src/plugins/saved_objects_finder",
"savedObjectsManagement": "src/plugins/saved_objects_management",
"searchConnectors": "packages/kbn-search-connectors",
"searchConnectorsPlugin": "x-pack/plugins/search_connectors",
"server": "src/legacy/server",
"share": ["src/plugins/share", "packages/kbn-reporting-share"],
"share": ["src/platform/plugins/shared/share", "packages/kbn-reporting-share"],
"sharedUXPackages": "packages/shared-ux",
"searchApiKeysComponents": "packages/kbn-search-api-keys-components",
"searchApiPanels": "packages/kbn-search-api-panels/",
Expand All @@ -126,8 +126,8 @@
"telemetry": ["src/plugins/telemetry", "src/plugins/telemetry_management_section"],
"timelion": ["src/plugins/vis_types/timelion"],
"tryInConsole": "packages/kbn-try-in-console/",
"uiActions": ["src/plugins/ui_actions", "packages/kbn-ui-actions-browser"],
"uiActionsEnhanced": "src/plugins/ui_actions_enhanced",
"uiActions": ["src/platform/plugins/shared/ui_actions", "src/platform/packages/shared/kbn-ui-actions-browser"],
"uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced",
"uiActionsExamples": "examples/ui_action_examples",
"usageCollection": "src/plugins/usage_collection",
"userProfileComponents": "packages/kbn-user-profile-components",
Expand Down
8 changes: 4 additions & 4 deletions docs/developer/architecture/add-data-tutorials.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Each tutorial contains three sets of instructions:

[discrete]
=== Creating a new tutorial
1. Create a new directory in the link:https://github.com/elastic/kibana/tree/main/src/plugins/home/server/tutorials[tutorials directory].
1. Create a new directory in the link:https://github.com/elastic/kibana/tree/main/src/platform/plugins/shared/home/server/tutorials[tutorials directory].
2. In the new directory, create a file called `index.ts` that exports a function.
The function must return a function object that conforms to the `TutorialSchema` interface link:{kib-repo}tree/{branch}/src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts[tutorial schema].
3. Register the tutorial in link:{kib-repo}tree/{branch}/src/plugins/home/server/tutorials/register.ts[register.ts] by adding it to the `builtInTutorials`.
The function must return a function object that conforms to the `TutorialSchema` interface link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/server/services/tutorials/lib/tutorial_schema.ts[tutorial schema].
3. Register the tutorial in link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/server/tutorials/register.ts[register.ts] by adding it to the `builtInTutorials`.
// TODO update path once assets are migrated
4. Add image assets to the `tutorial_resources` directory.
5. Run {kib} locally to preview the tutorial.
Expand All @@ -28,7 +28,7 @@ Then register the tutorial object by calling `home.tutorials.registerTutorial(tu
String values can contain variables that are substituted when rendered. Variables are specified by `{}`.
For example: `{config.docs.version}` is rendered as `6.2` when running the tutorial in {kib} 6.2.

link:{kib-repo}tree/{branch}/src/plugins/home/public/application/components/tutorial/replace_template_strings.js[Provided variables]
link:{kib-repo}tree/{branch}/src/platform/plugins/shared/home/public/application/components/tutorial/replace_template_strings.js[Provided variables]

[discrete]
==== Markdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export class MyPlugin implements Plugin {
}
----

For advanced use-cases, such as a search for specific objects, use the {kib-repo}blob/{branch}/x-pack/plugins/global_search/README.md[Global search plugin].
For advanced use-cases, such as a search for specific objects, use the {kib-repo}blob/{branch}/x-pack/platform/plugins/shared/global_search/README.md[Global search plugin].

12 changes: 6 additions & 6 deletions docs/developer/best-practices/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Are you planning with scalability in mind?
* Are you loading a minimal amount of JS code in the browser?
** See <<plugin-performance>> for more guidance.
* Do you make lots of requests to the server?
** If so, have you considered using the streaming {kib-repo}tree/{branch}/src/plugins/bfetch[bfetch service]?
** If so, have you considered using the streaming {kib-repo}tree/{branch}/src/platform/plugins/shared/bfetch[bfetch service]?

[discrete]
=== Accessibility
Expand Down Expand Up @@ -82,17 +82,17 @@ right advanced settings like whether to include frozen indices or not.
** Rendering maps, visualizations, dashboards in your application
** Register new widgets that will can be added to a dashboard or Canvas
workpad, or rendered in another plugin.
* {kib-repo}tree/{branch}/src/plugins/ui_actions/README.asciidoc[UiActions]
* {kib-repo}tree/{branch}/src/platform/plugins/shared/ui_actions/README.asciidoc[UiActions]
** Let other plugins inject functionality into your application
** Inject custom functionality into other plugins
* Stateless helper utilities
* {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_sync/README.md[state
* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_sync/README.md[state
syncing] and
* {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_containers/README.md[state
* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_containers/README.md[state
container] utilities provided by
* {kib-repo}tree/{branch}/src/plugins/kibana_utils/README.md[kibana_utils]
* {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/README.md[kibana_utils]
if you want to sync your application state to the URL?
** {kib-repo}tree/{branch}/src/plugins/kibana_react/README.md[kibana_react]
** {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_react/README.md[kibana_react]
for react specific helpers

Re-using these services will help create a consistent experience across
Expand Down
8 changes: 4 additions & 4 deletions docs/developer/best-practices/navigation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ console.log(discoverUrl); // http://localhost:5601/bpr/s/space/app/discover
const discoverUrlWithSomeState = core.http.basePath.prepend(`/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2020-09-10T11:39:50.203Z',to:'2020-09-10T11:40:20.249Z'))&_a=(columns:!(_source),filters:!(),index:'90943e30-9a47-11e8-b64d-95841ca0b247',interval:auto,query:(language:kuery,query:''),sort:!())`);
----

Instead, each app should expose {kib-repo}tree/{branch}/src/plugins/share/common/url_service/locators/README.md[a locator].
Instead, each app should expose {kib-repo}tree/{branch}/src/platform/plugins/shared/share/common/url_service/locators/README.md[a locator].
Other apps should use those locators for navigation or URL creation.

[source,typescript jsx]
Expand Down Expand Up @@ -120,7 +120,7 @@ const MySPALink = () =>
----

As it would be too much boilerplate to do this for each {kib} link in your app, there is a handy wrapper that helps with it:
{kib-repo}tree/{branch}/packages/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx[RedirectAppLinks].
{kib-repo}tree/{branch}/src/platform/packages/shared/shared-ux/link/redirect_app/impl/src/redirect_app_links.tsx[RedirectAppLinks].

[source,typescript jsx]
----
Expand Down Expand Up @@ -222,7 +222,7 @@ There are utils to help you to implement such kind of state syncing.

* Adding a query param flag or simple key/value to the URL.

Follow {kib-repo}tree/{branch}/src/plugins/kibana_utils/docs/state_sync#state-syncing-utilities[these] docs to learn more.
Follow {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/docs/state_sync#state-syncing-utilities[these] docs to learn more.


[[preserve-state]]
Expand All @@ -246,7 +246,7 @@ you'd notice that state is stored inside that link, and it also gets updated whe
image:images/state_inside_the_link.png[State is stored inside the navigation link]

This is where <<query-params, separation>> into `_a` and `_g` query params comes into play. What is considered a *global* state gets constantly updated in those navigation links. In the example above it was a time filter.
This is backed by {kib-repo}tree/{branch}/src/plugins/kibana_utils/public/state_management/url/kbn_url_tracker.ts#L57[KbnUrlTracker] util. You can use it to achieve similar behavior.
This is backed by {kib-repo}tree/{branch}/src/platform/plugins/shared/kibana_utils/public/state_management/url/kbn_url_tracker.ts#L57[KbnUrlTracker] util. You can use it to achieve similar behavior.

NOTE: After migrating to KP navigation works without page reloads and all plugins are loaded simultaneously.
Hence, likely there are simpler ways to preserve state of your application, unless you want to do it through URL.
Loading