kibana/packages
Eyo O. Eyo 49925a3c4e
[Banner] Fix can't update the banner text from advanced settings (#184359)
## Summary

Closes https://github.com/elastic/kibana/issues/184199 , by restricting
the attempt to check that valid JSON was provided so it only happens
when the expectation of the current field type is JSON.

## How to test

- Set a banner using advanced settings. Save it. Reload the page.
Confirm the banner is displayed
- Try to edit or remove the banner message in the editor.
- The save button should appear with no errors in the console

<!-- 

### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

-->
2024-05-28 09:21:39 -07:00
..
analytics chore(FullStory): report buildSha instead of buildNum (#183932) 2024-05-22 08:17:13 +02:00
cloud [EuiProvider] Fix Kibana-Core code (#183873) 2024-05-23 13:19:40 -07:00
content-management [TableListView] Hide tag filter when savedObjectTagging is not provided (#182577) 2024-05-06 07:20:13 -07:00
core [Stateful sidenav] Custom branding logo (#184035) 2024-05-24 10:02:09 +01:00
deeplinks [Security Solution] [Attack discovery] Attack discovery (#181818) 2024-04-26 14:43:12 -04:00
default-nav Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
home Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-ace Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-actions-types [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00
kbn-alerting-types [RAM] Add fields table to rule details page alert flyout (#172830) 2024-01-08 16:52:04 +01:00
kbn-alerts-as-data-utils [Response Ops][Alerting] Backfill Rule Runs (#177622) 2024-04-25 15:36:01 -04:00
kbn-alerts-ui-shared [Fix] fix type issues from unparameterized PropsWithChildren type usages (#182014) 2024-04-29 23:08:52 +01:00
kbn-ambient-common-types
kbn-ambient-ftr-types [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-ambient-storybook-types
kbn-ambient-ui-types
kbn-analytics flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-apm-config-loader Revert "deepmerge in merging apm-configuration (#179048)" (#180005) 2024-04-04 13:02:48 -07:00
kbn-apm-data-view [UX/Maps] Fixing APM data view id (#179257) 2024-03-28 12:14:32 +00:00
kbn-apm-synthtrace [Obs Alerting] View in apm button - add defensive code (#184236) 2024-05-26 06:36:57 -07:00
kbn-apm-synthtrace-client [Obs Alerting] View in apm button - add defensive code (#184236) 2024-05-26 06:36:57 -07:00
kbn-apm-utils Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-axe-config Removing component exceptions from axe-core validation config (#145059) 2023-11-28 18:29:12 -05:00
kbn-babel-preset Enable TS decorators (#178873) 2024-03-20 12:02:41 +01:00
kbn-babel-register
kbn-babel-transform
kbn-bazel-runner chore(NA): remove a small change to trigger risk-free backport (#160810) 2023-06-28 21:08:33 +01:00
kbn-bfetch-error @kbn/search-errors package (#171563) 2023-12-07 10:39:19 -07:00
kbn-calculate-auto feat(slo): add events chart (#170896) 2023-11-16 15:19:57 -05:00
kbn-calculate-width-from-char-count [Lens][Unified search] Auto expand comboboxes and popovers based on the content (#171573) 2023-11-28 13:13:43 +01:00
kbn-cases-components [Cases] Version cases and comment domain and apis (#161954) 2023-07-26 06:09:10 -07:00
kbn-cell-actions [Security Solution] Add eslint rules to cell-actions package (#183149) 2024-05-13 06:01:17 -07:00
kbn-chart-icons [Lens] Replace expression_gauge from Goal to Bullet (#177766) 2024-03-26 08:42:13 -07:00
kbn-check-mappings-update-cli [Spaces] Space solution property (#183986) 2024-05-27 12:25:44 +02:00
kbn-ci-stats-core
kbn-ci-stats-performance-metrics
kbn-ci-stats-reporter [Ops] Upgrade to axios 1.4 (#163732) 2023-08-22 11:47:48 +02:00
kbn-ci-stats-shipper-cli
kbn-cli-dev-mode [http] explicitly create the server listener (#183591) 2024-05-21 08:11:20 -07:00
kbn-code-owners Add script to check test file code ownership (#173411) 2023-12-18 17:41:39 +01:00
kbn-coloring Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-config Config: add support for ${VAR:default} syntax (#182139) 2024-05-01 07:55:24 +02:00
kbn-config-mocks [On-Week] Hot update of APM/EBT labels (#157093) 2023-08-31 14:36:20 +02:00
kbn-config-schema [config-schema] Add docs for new lazy type (#184124) 2024-05-27 18:05:13 +02:00
kbn-content-management-utils [Dashboard] Use update method when saving dashboard (#183480) 2024-05-19 15:17:04 -07:00
kbn-crypto [osquery] Setup E2E against Serverless ES, Kibana, Fleet server standalone and Elastic agents in Docker (#165415) 2023-09-29 03:33:06 -07:00
kbn-crypto-browser flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-custom-icons [Logs Explorer] Add resource column with tooltip (#175287) 2024-01-26 02:36:36 -07:00
kbn-custom-integrations flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-cypress-config Revert "Upgrade EUI to v88.3.0 (#166292)" 2023-09-18 18:37:13 -05:00
kbn-data-service [Chore] Remove allocation from flattenHit (#180647) 2024-04-26 09:44:08 -04:00
kbn-data-stream-adapter [DataStreamAdapter] Remove alerts-as-data package dependency (#178127) 2024-03-06 17:51:17 +01:00
kbn-data-view-utils [data views / ES|QL] Set type on esql related data views (#172622) 2024-02-07 11:27:25 -06:00
kbn-datemath
kbn-dev-cli-errors
kbn-dev-cli-runner [Ops] Snapshot saved object migrations (#167983) 2023-10-11 09:47:15 +02:00
kbn-dev-proc-runner Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-dev-utils Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-discover-utils [search] Create scripted field sort DSL without looking at the field list (#183955) 2024-05-28 10:25:21 -05:00
kbn-doc-links [Fleet] Add callout for granular privileges callout (#184026) 2024-05-22 12:49:09 -07:00
kbn-docs-utils [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
kbn-dom-drag-drop Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-ebt-tools [POC] Track time to first meaningful paint (#180309) 2024-05-14 05:04:00 -07:00
kbn-elastic-agent-utils fix otel service detection (#180574) 2024-04-22 04:39:47 -07:00
kbn-es fix: explicitly enable native role mappings for Mock IDP (#184017) 2024-05-22 17:38:54 +02:00
kbn-es-archiver [ES Archiver][Load Action] Add perf option override to cli (#175781) 2024-02-02 14:24:04 +00:00
kbn-es-errors
kbn-es-query [KQL] Add util for getting field names from KQL expression (#183573) 2024-05-21 14:02:53 -07:00
kbn-es-types Revert "[ES|QL] Remove version from _query requests (#184053)" (#184244) 2024-05-24 19:51:05 +02:00
kbn-eslint-config [ES|QL] unskip autocomplete tests (#182273) 2024-05-02 09:37:50 -05:00
kbn-eslint-plugin-disable Clean up imports of ESLint types (#162436) 2023-07-25 10:09:55 +02:00
kbn-eslint-plugin-eslint Harden console functions (#171367) 2024-02-09 09:13:52 -05:00
kbn-eslint-plugin-i18n [ESLint I18n Rule] Cleanup (#181959) 2024-04-29 08:23:30 -05:00
kbn-eslint-plugin-imports [Obs AI Assistant] Use Mocha & Synthtrace (#173993) 2023-12-28 16:13:24 +01:00
kbn-eslint-plugin-telemetry [Moving] Move Observability App folders into /x-pack/observability_solution (#177437) 2024-02-24 13:49:54 +01:00
kbn-esql-ast [ES|QL] Update grammars (#183803) 2024-05-23 17:18:49 -05:00
kbn-esql-utils [ES|QL] Recognize transformational commands with ast parsing (#184291) 2024-05-27 13:20:59 +02:00
kbn-esql-validation-autocomplete [ES|QL] add function definition sync to CI (#184225) 2024-05-28 11:02:20 -05:00
kbn-event-annotation-common [shared-ux] no-data analytics page package code cleanup (#172416) 2023-12-04 13:07:59 -07:00
kbn-event-annotation-components [Lens] fix when a field is selected in the field picker, the user cannot delete it entirely (#180178) 2024-04-12 09:50:28 +02:00
kbn-expandable-flyout [Security Solution] - use expandable flyout in timeline (#177087) 2024-03-25 10:47:23 +01:00
kbn-expect [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-failed-test-reporter-cli [failed-test-reporter] Include pipeline in comment (#182576) 2024-05-06 07:05:32 -05:00
kbn-field-types [ES|QL] Fixes the mapping of ES fields (#176665) 2024-02-12 17:18:33 +02:00
kbn-field-utils [Lens] [Unified Search] [Maps] [Dashboard] Adds wildcard matching to field pickers across Kibana (#182631) 2024-05-07 20:24:45 +02:00
kbn-find-used-node-modules
kbn-flot-charts
kbn-formatters [Dataset quality] Implement Summary Panel (#175994) 2024-02-13 14:41:32 +02:00
kbn-ftr-common-functional-services [kbn-ftr-common-functional-services] extend retry service (#178660) 2024-03-19 16:32:59 +01:00
kbn-ftr-common-functional-ui-services [FTR] Update getAttribute method return (#179715) 2024-04-10 10:28:03 -07:00
kbn-ftr-screenshot-filename [codeowners] add appex-qa for ftr-related packages (#155230) 2023-05-24 08:53:09 +02:00
kbn-generate Remove kibana-design from the ultimate rule for scss files. (#157493) 2023-05-12 10:01:47 -05:00
kbn-generate-console-definitions Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-generate-csv Revert "[ES|QL] Remove version from _query requests (#184053)" (#184244) 2024-05-24 19:51:05 +02:00
kbn-get-repo-files
kbn-grouping [ResponseOps][Security Solution] Transfer ownership of the alerts grouping package to ResponseOps (#184131) 2024-05-28 11:15:04 +02:00
kbn-guided-onboarding [Onboarding] Change navigation behavior for the o11y guide cards to pre-select the correct solution (#184065) 2024-05-23 10:14:09 -04:00
kbn-handlebars Adding check to escape pushes to output in kbn-handlebars (#175490) 2024-01-29 12:02:20 -05:00
kbn-hapi-mocks Add httpVersion and protocol fields to KibanaRequest (#183725) 2024-05-21 04:17:44 -07:00
kbn-health-gateway-server [http] explicitly create the server listener (#183591) 2024-05-21 08:11:20 -07:00
kbn-i18n [Lens] Move formula docs into separate package (#173770) 2024-01-02 16:02:46 +02:00
kbn-i18n-react [Fix] fix type issues from unparameterized PropsWithChildren type usages (#182014) 2024-04-29 23:08:52 +01:00
kbn-import-locator
kbn-import-resolver Fix @kbn/import-resolver detection of nested node_modules (#162391) 2023-07-25 10:09:05 +02:00
kbn-interpreter
kbn-io-ts-utils chore(NA): upgrade typescript into v4.9.5 (#175178) 2024-02-25 01:23:57 +00:00
kbn-ipynb [Search] Introduced Notebooks view for console (#180400) 2024-04-15 11:10:28 -05:00
kbn-jest-serializers
kbn-journeys [APM] Fix condition to use serviceTransactionMetric documents (#180903) 2024-05-07 10:54:03 -03:00
kbn-json-ast
kbn-kibana-manifest-schema
kbn-language-documentation-popover [ES|QL] Query history design feedback (#180579) 2024-04-14 09:45:32 +02:00
kbn-lens-embeddable-utils lens config builder server side support (#183979) 2024-05-28 09:38:11 +02:00
kbn-lens-formula-docs [Lens] Update time_range() function with an additional example (#179408) 2024-03-26 15:16:25 +01:00
kbn-lint-packages-cli
kbn-lint-ts-projects-cli
kbn-logging replace kbn/ecs with official npm package holding ecs schema (#176128) 2024-02-13 22:03:30 +01:00
kbn-logging-mocks Limit download concurrency for files within Kibana (#168601) 2023-10-30 12:28:11 +01:00
kbn-managed-content-badge [Lens] Prevent overwriting managed content from editor (#175062) 2024-01-24 09:06:05 -06:00
kbn-managed-vscode-config
kbn-managed-vscode-config-cli
kbn-management [Banner] Fix can't update the banner text from advanced settings (#184359) 2024-05-28 09:21:39 -07:00
kbn-mapbox-gl [maps] fix layer shows no data instead of error (#170084) 2023-11-06 17:00:15 -07:00
kbn-mock-idp-plugin [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
kbn-mock-idp-utils [mock-idp-plugin] add end-point to fetch roles from yml (#175439) 2024-01-26 13:37:16 -07:00
kbn-monaco [Console Migration] Add styling for status codes in multiple response output (#183858) 2024-05-28 11:09:40 +02:00
kbn-object-versioning [Content Management] Server side client (#175968) 2024-02-05 04:37:32 -07:00
kbn-openapi-bundler [Security Solution] Produce stable OAS bundle (#183053) 2024-05-10 16:00:08 +02:00
kbn-openapi-generator [Security Solution] Added the rule_source field to the rule schemas (#181581) 2024-05-02 12:05:38 +02:00
kbn-optimizer [Discover] Create Discover Shared plugin and features registry (#181952) 2024-05-03 11:27:32 +02:00
kbn-optimizer-webpack-helpers
kbn-osquery-io-ts-types [EDR Workflows] Osquery Timeout (#169925) 2023-11-15 05:37:11 -07:00
kbn-panel-loader [Dashboard] UI Refresh (#178139) 2024-03-26 11:55:16 -07:00
kbn-peggy
kbn-peggy-loader
kbn-performance-testing-dataset-extractor [kbn-journeys] add synthtrace support (#178599) 2024-03-18 16:42:45 -07:00
kbn-picomatcher
kbn-plugin-check [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
kbn-plugin-generator fix(NA): do not change default encoding when using vfs to copy files (#181174) 2024-04-18 18:35:47 +01:00
kbn-plugin-helpers fix(NA): do not change default encoding when using vfs to copy files (#181174) 2024-04-18 18:35:47 +01:00
kbn-profiling-utils Profiling: Add color for .NET (#181126) 2024-04-26 12:02:58 +02:00
kbn-react-field Add semantic_text to index mapping (#179575) 2024-04-04 09:03:10 -07:00
kbn-react-hooks [Infra][Logs Explorer] Factor out shared custom hook into a package (#182336) 2024-05-06 16:17:39 +02:00
kbn-repo-file-maps
kbn-repo-info Add build_date to kbn:api/status (#157905) 2023-05-25 10:21:47 -07:00
kbn-repo-linter
kbn-repo-packages [Core plugin system] Add dynamic contract resolving (#167113) 2023-10-24 02:32:09 -07:00
kbn-repo-path
kbn-repo-source-classifier chore(NA): rename journeys folder into journeys_e2e inside x-pack/performance to correctly classify journey e2e files (#178340) 2024-03-14 21:15:57 +00:00
kbn-repo-source-classifier-cli
kbn-reporting Use Data Stream for Reporting storage (#176022) 2024-05-21 10:11:45 -07:00
kbn-resizable-layout [ResizableLayout] Remove onResizeEnd stable callback workaround (#176030) 2024-02-01 09:46:26 -04:00
kbn-rison
kbn-router-to-openapispec [OAS] Support lazy runtime types (#184000) 2024-05-23 00:50:38 -07:00
kbn-router-utils [Infra] Register kibana locator to link to infras asset details and inventory uis (#181749) 2024-05-13 18:05:33 +02:00
kbn-rrule [RAM] Remove third party RRule library, replace with own timezone-compliant lib (#152873) 2023-07-02 17:03:45 -04:00
kbn-rule-data-utils [Response Ops][Alerting] Backfill Rule Runs (#177622) 2024-04-25 15:36:01 -04:00
kbn-safer-lodash-set
kbn-saved-objects-settings [Content Management] Remove dep from content_management -> saved_object_finder (#155013) 2023-04-17 16:25:58 +02:00
kbn-search-api-panels [ES3] Add ingest pipeline section to Index management view (#182604) 2024-05-16 16:22:07 -07:00
kbn-search-connectors [Search] Add DLS parameters in native Outlook connector (#184098) 2024-05-27 07:24:18 -07:00
kbn-search-errors [search] Make ISearchOptions compatible with DataViewLazy (#183939) 2024-05-23 11:14:36 -07:00
kbn-search-index-documents [Search] Typography fixes to get consistency within Web Crawlers and Connectors sections (#175554) 2024-01-26 11:14:07 +01:00
kbn-search-response-warnings [Discover] Remove usage of deprecated React rendering utilities (#181623) 2024-04-26 11:48:06 -07:00
kbn-search-types [search] Make ISearchOptions compatible with DataViewLazy (#183939) 2024-05-23 11:14:36 -07:00
kbn-security-hardening Harden console functions (#171367) 2024-02-09 09:13:52 -05:00
kbn-securitysolution-autocomplete [Security Solution][Admin][Event Filters] Wildcard warning with IS operator for event filters creation/editing (#178440) 2024-04-16 09:59:02 -07:00
kbn-securitysolution-ecs flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-es-utils [Security Solution] Remove privileges that are not available in serverless from read privileges route (#178580) 2024-03-14 10:29:45 -07:00
kbn-securitysolution-exception-list-components Upgrade EUI to v94.3.0 (#182822) 2024-05-10 13:01:58 -05:00
kbn-securitysolution-hook-utils flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-io-ts-alerting-types [Security Solution] Remove @ts-expect-error from v4.9.5 upgrade in Detection and Response areas (#179273) 2024-03-27 05:01:53 -07:00
kbn-securitysolution-io-ts-list-types Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-io-ts-types flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-io-ts-utils flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-list-api Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-list-constants [Security Solution][Detection Engine] move lists to data stream (#162508) 2023-08-23 19:42:57 +01:00
kbn-securitysolution-list-hooks Value lists modal window (#179339) 2024-04-15 19:45:52 +02:00
kbn-securitysolution-list-utils flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
kbn-securitysolution-rules [Security Solution][Detection Engine] adds ES|QL rule type to Security Detections rules (#165450) 2023-09-30 09:45:34 +01:00
kbn-securitysolution-t-grid Upgrade EUI to v86.0.0 (#163088) 2023-08-14 15:45:09 -05:00
kbn-securitysolution-utils [Security Solution][Detection Engine] adds alert suppression to ES|QL rule type (#180927) 2024-05-20 12:16:39 +01:00
kbn-server-http-tools [http] explicitly create the server listener (#183591) 2024-05-21 08:11:20 -07:00
kbn-server-route-repository [kbn-server-route-repository] Allow custom response (#182679) 2024-05-13 02:39:51 -07:00
kbn-set-map
kbn-shared-svg Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-shared-ux-utility Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
kbn-some-dev-log
kbn-sort-package-json
kbn-sort-predicates [Lens] Fix table sorting on time picker interval change (#182173) 2024-04-30 22:04:29 -07:00
kbn-spec-to-console Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
kbn-std Use spec-compliant URL parser to parse next URL parameter. (#183521) 2024-05-17 13:39:52 +02:00
kbn-stdio-dev-helpers
kbn-storybook Fix storybook config (#182283) 2024-05-01 12:35:08 -07:00
kbn-telemetry-tools Migrate from listr to listr2 (#182683) 2024-05-07 07:30:42 -04:00
kbn-test [kbn-test] improve error handling for saml auth (#182511) 2024-05-21 07:26:01 -07:00
kbn-test-eui-helpers [Lens] Fix yAxis scale/custom domain issues and help/error text (#180532) 2024-05-06 09:29:04 -07:00
kbn-test-jest-helpers [a11y] Remove jext-axe and supporting code from kibana (#180694) 2024-04-25 22:24:18 +05:30
kbn-test-subj-selector [FTR] add dataViews service (#180066) 2024-04-10 16:33:00 +02:00
kbn-text-based-editor ES|QL static metadata (#183890) 2024-05-23 23:10:07 +02:00
kbn-timelion-grammar
kbn-timerange [Dataset quality] Degraded docs insights in flyout (#176912) 2024-02-22 11:20:47 +01:00
kbn-tinymath Remove eslint-plugin-prefer-object-spread dependency (#162439) 2023-07-25 10:04:44 +02:00
kbn-tooling-log Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
kbn-triggers-actions-ui-types [RAM][Maintenance Window] Maintenance window scoped query frontend changes (#171949) 2023-12-04 15:18:33 -08:00
kbn-try-in-console [Search] Move TryInConsoleButton to it's own package (#183201) 2024-05-13 14:34:41 -05:00
kbn-ts-projects [Synthetics/Uptime] Separate e2e tests by app (#152197) 2023-06-07 17:33:56 +02:00
kbn-ts-type-check-cli Fix typecheck foundations (#167060) 2023-09-25 16:28:56 -07:00
kbn-typed-react-router-config [APM] Add memoization to hooks consumed on service inventory page (#173973) 2024-01-12 09:57:03 -07:00
kbn-ui-actions-browser decouple url drilldown action from Embeddable framework (#175930) 2024-02-05 09:33:41 -07:00
kbn-ui-shared-deps-npm [SharedUX/React render] prevent double-nested EuiProvider (#182005) 2024-04-30 13:47:24 -07:00
kbn-ui-shared-deps-src [SharedUX/React render] prevent double-nested EuiProvider (#182005) 2024-04-30 13:47:24 -07:00
kbn-ui-theme Implement system option for theme:darkMode uiSetting (#173044) 2024-02-20 06:48:58 -07:00
kbn-unified-data-table [search] Create scripted field sort DSL without looking at the field list (#183955) 2024-05-28 10:25:21 -05:00
kbn-unified-doc-viewer [Logs Explorer][Discover] Move Logs Overview into Discover codebase (#180262) 2024-04-29 11:54:50 +02:00
kbn-unified-field-list [ES|QL] More run query helpers (#183906) 2024-05-23 23:09:27 +02:00
kbn-unsaved-changes-badge Upgrade EUI to v91.0.0 (with backports) (#170716) 2023-12-18 11:15:15 -06:00
kbn-use-tracked-promise Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
kbn-user-profile-components Fix UsersProfilePopover doesn't handle long names well (#182155) 2024-05-02 13:05:59 +02:00
kbn-utility-types chore(NA): upgrade typescript into v4.9.5 (#175178) 2024-02-25 01:23:57 +00:00
kbn-utility-types-jest
kbn-utils Upgrade Node.js to 20.11.1 (#177042) 2024-02-20 14:01:23 -06:00
kbn-validate-next-docs-cli
kbn-visualization-ui-components [Lens] [Unified Search] [Maps] [Dashboard] Adds wildcard matching to field pickers across Kibana (#182631) 2024-05-07 20:24:45 +02:00
kbn-visualization-utils [ES|QL][Lens] Fixes import to other spaces (#183076) 2024-05-13 09:30:11 +02:00
kbn-web-worker-stub
kbn-whereis-pkg-cli
kbn-xstate-utils [Logs+] Refactor state and URL persistence of Log Explorer (#170200) 2023-12-11 14:56:44 +01:00
kbn-yarn-lock-validator
kbn-zod-helpers flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
presentation [SLO Embeddable rebuild] migrate slo alerts embeddable (#182094) 2024-05-27 21:39:50 +02:00
react [SharedUX/React render] prevent double-nested EuiProvider (#182005) 2024-04-30 13:47:24 -07:00
serverless [Advanced settings] Hide Defer loading panels below "the fold" setting (#184090) 2024-05-27 12:05:52 -07:00
shared-ux [Stateful sidenav] Dynamic links (#183157) 2024-05-22 16:55:16 +01:00
solution-nav/oblt [Stateful sidenav] Put recently accessed in footer for all solutions (#184298) 2024-05-28 17:00:04 +01:00
README.md

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

then run yarn kbn bootstrap from the plugin directory.

Creating a new package

Run the following command from the root of the Kibana repo:

node scripts/generate package @kbn/<PACKAGE_NAME> --web --owner @elastic/<TEAM_NAME>

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.