kibana/packages
Quynh Nguyen (Quinn) dfba6732f1
[ES|QL] Fix trailing decimals dropped from client side validation messages (#196570)
## Summary

Part of https://github.com/elastic/kibana/issues/192255. This PR fixes
trailing decimals dropped from client side validation messages.

Before:

<img width="1201" alt="Screenshot 2024-10-16 at 10 50 59"
src="https://github.com/user-attachments/assets/76d9c623-9e28-4883-b4b1-3e22a1e0253f">

After:

<img width="1201" alt="image"
src="https://github.com/user-attachments/assets/04c6b1bb-8fca-46ac-97e2-59ea22c8abf3">


### 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#_add_your_labels)
- [ ] This will appear in the **Release Notes** and follow the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-10-17 12:47:00 -05:00
..
analytics/utils/analytics_collection_utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
cloud Consume elasticsearch.publicBaseUrl where possible (#192741) 2024-09-19 09:57:47 -05:00
content-management fix: updating dashboard - initial save button state is "disabled" (#196137) 2024-10-17 05:39:42 -05:00
core [Feature flags example] Apply FF naming conventions (#196535) 2024-10-17 04:34:43 -05:00
deeplinks [Onboarding] Remove System Logs onboarding flow (#196132) 2024-10-17 14:41:10 +02:00
default-nav [ML] Anomaly Detection supplied configurations: adds page in ML UI for Supplied configurations (ML Modules) (#191564) 2024-09-12 10:30:09 -06:00
home Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-actions-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-alerting-types [ResponseOps][Flapping] Add Rule Specific Flapping Form to New Rule Form Page (#194516) 2024-10-09 19:01:58 -07:00
kbn-alerts-as-data-utils Execution type field (#195884) 2024-10-14 16:29:12 +02:00
kbn-alerts-grouping Upgrade @testing-library/user-event to latest ^14.5.2 (#189949) 2024-09-10 14:31:27 +02:00
kbn-alerts-ui-shared [Response Ops][Rules] Add New Rule Form to Stack Management (#194655) 2024-10-15 13:17:59 +03:00
kbn-ambient-common-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ambient-ftr-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ambient-storybook-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ambient-ui-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-analytics Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-apm-config-loader Updated js-yaml to v4 (#190678) 2024-09-19 12:25:03 +02:00
kbn-apm-data-view Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-apm-synthtrace [Inventory] Adding initial e2e structure (#196560) 2024-10-17 08:50:11 -05:00
kbn-apm-synthtrace-client [Inventory] Adding initial e2e structure (#196560) 2024-10-17 08:50:11 -05:00
kbn-apm-types [APM][Otel] Use fields instead of _source on APM queries (#195242) 2024-10-15 11:38:44 +02:00
kbn-apm-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-avc-banner Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-axe-config Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-babel-preset Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-babel-register Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-babel-transform Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-bazel-runner Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-bfetch-error Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-calculate-auto Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-calculate-width-from-char-count Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-capture-oas-snapshot-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-cases-components [react@18] Implicit children type fixes (#192011) 2024-09-09 13:56:02 +02:00
kbn-cbor Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-cell-actions Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-chart-icons Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-check-mappings-update-cli [Fleet] delete unenrolled agents task (#195544) 2024-10-14 11:04:01 +02:00
kbn-check-prod-native-modules-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ci-stats-core Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ci-stats-performance-metrics Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ci-stats-reporter Improve quick checks (#192369) 2024-09-11 13:27:47 +02:00
kbn-ci-stats-shipper-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-cli-dev-mode [Dev Server] Remove dead code (#193736) 2024-09-23 19:01:08 +02:00
kbn-code-owners [FTR] Fixup err msg for scripts/get_owners_for_file.js (#193581) 2024-09-20 16:32:20 +01:00
kbn-coloring Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-config Globally enforce internal API restriction (#193792) 2024-10-02 10:08:04 -07:00
kbn-config-mocks Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-config-schema Stricter byte size validation (#193529) 2024-09-20 15:37:41 +02:00
kbn-content-management-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-crypto Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-crypto-browser Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-custom-icons [APM UI] Fix OpenTelemetry agent names (#193134) 2024-09-20 09:07:14 +02:00
kbn-custom-integrations Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-cypress-config Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-data-service [Discover] Improve data grid render performance (flattenHit and formatHit) (#192333) 2024-09-12 17:45:11 -03:00
kbn-data-stream-adapter Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-data-view-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-datemath Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-dev-cli-errors Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-dev-cli-runner Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-dev-proc-runner Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-dev-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-discover-utils [Discover] Add CTA to enable degraded docs indicator in ES|QL (#195630) 2024-10-14 16:10:59 +02:00
kbn-doc-links [Security Solution][Event Filters] Adds banner about Linux eventing change for 8.16 upgrade (#195177) 2024-10-11 09:25:58 -04:00
kbn-docs-utils Updated js-yaml to v4 (#190678) 2024-09-19 12:25:03 +02:00
kbn-dom-drag-drop [Discover] Fix SASS mixed-declations deprecation warnings (#193001) 2024-09-17 11:14:17 -05:00
kbn-ebt-tools Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-elastic-agent-utils [APM][OTel] Make agent names generic with otel-native mode (#195594) 2024-10-16 04:09:21 -05:00
kbn-es [Dataset Quality] Introduce Kibana Management Feature (#194825) 2024-10-15 12:40:09 +03:00
kbn-es-archiver Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-es-errors Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-es-query Update dependency @types/lodash to ^4.17.10 (main) (#194739) 2024-10-15 08:21:03 +02:00
kbn-es-types [ES|QL] Retrieves ccs information for inspector on demand (#196105) 2024-10-16 11:39:00 +02:00
kbn-eslint-config [React@18] Upgrade @types to React 18 (#194144) 2024-10-01 04:40:11 -05:00
kbn-eslint-plugin-disable Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-eslint-plugin-eslint no_deprecated_authz_config eslint rule fixes (#194807) 2024-10-04 11:42:58 +02:00
kbn-eslint-plugin-i18n Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-eslint-plugin-imports Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-eslint-plugin-telemetry Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-esql-ast [ES|QL] Catch internal parsing errors (#196249) 2024-10-16 14:04:04 +02:00
kbn-esql-editor Update dependency @types/lodash to ^4.17.10 (main) (#194739) 2024-10-15 08:21:03 +02:00
kbn-esql-utils [ESQL] String escaping fix (#196643) 2024-10-17 06:37:05 -05:00
kbn-esql-validation-autocomplete [ES|QL] Fix trailing decimals dropped from client side validation messages (#196570) 2024-10-17 12:47:00 -05:00
kbn-event-annotation-common Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-event-annotation-components Fix various EuiFormControlLayout usages (#192779) 2024-09-24 13:55:59 -07:00
kbn-expandable-flyout [React@18] Upgrade @types to React 18 (#194144) 2024-10-01 04:40:11 -05:00
kbn-expect Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-failed-test-reporter-cli ESLint Rule to discourage hashes being created with unsafe algorithms (#190973) 2024-09-30 11:34:04 -05:00
kbn-field-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-field-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-find-used-node-modules Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-flot-charts Update kbn-flot-charts codeowners (#193351) 2024-09-25 11:34:36 -05:00
kbn-formatters Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ftr-common-functional-services [FTR] support custom native roles in serverless tests (#194677) 2024-10-11 17:11:23 +02:00
kbn-ftr-common-functional-ui-services feat: allow plugins to deprecate and replace features and feature privileges (#186800) 2024-10-14 14:40:59 -05:00
kbn-ftr-screenshot-filename Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-generate Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-generate-console-definitions [Console] Remove unused spec-to-console package (#193426) 2024-10-15 10:04:54 -05:00
kbn-generate-csv Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-get-repo-files Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-grid-layout Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-grouping [ResponseOps][Alerts] Don't show empty state in grouping component while first loading (#195777) 2024-10-14 12:50:55 +02:00
kbn-guided-onboarding Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-handlebars Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-hapi-mocks Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-health-gateway-server Globally enforce internal API restriction (#193792) 2024-10-02 10:08:04 -07:00
kbn-i18n Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-i18n-react Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-import-locator Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-import-resolver Remove kbn-ace, ace and brace dependencies (#195703) 2024-10-10 14:16:42 +02:00
kbn-interpreter Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-investigation-shared [RCA] Events timeline !! (#193265) 2024-10-07 15:41:24 +02:00
kbn-io-ts-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ipynb Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-jest-serializers Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-journeys Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-json-ast Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-kibana-manifest-schema Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-language-documentation [ES|QL] Update function metadata (#196047) 2024-10-14 10:00:47 +02:00
kbn-lens-embeddable-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-lens-formula-docs Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-lint-packages-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-lint-ts-projects-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-logging Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-logging-mocks Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-managed-content-badge Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-managed-vscode-config Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-managed-vscode-config-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-management [Logs Overview] Overview component (iteration 1) (attempt 2) (#195673) 2024-10-10 12:46:25 +02:00
kbn-mapbox-gl Move @elastic/kibana-gis ownership to @elastic/kibana-presentation (#192521) 2024-09-16 09:50:50 -05:00
kbn-mock-idp-plugin chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
kbn-mock-idp-utils chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
kbn-monaco [ES|QL] Update grammars (#196046) 2024-10-15 15:47:08 +02:00
kbn-object-versioning Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-object-versioning-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-openapi-bundler Updated js-yaml to v4 (#190678) 2024-09-19 12:25:03 +02:00
kbn-openapi-common Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-openapi-generator [Security Solution] Support for kibana spaces in openapi generated securitySolutionApi service for integration tests (#194029) 2024-09-26 19:53:25 +02:00
kbn-optimizer [Logs Overview] Overview component (iteration 1) (attempt 2) (#195673) 2024-10-10 12:46:25 +02:00
kbn-optimizer-webpack-helpers Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-osquery-io-ts-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-panel-loader Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-peggy Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-peggy-loader Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-performance-testing-dataset-extractor Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-picomatcher Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-plugin-check Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-plugin-generator Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-plugin-helpers Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-profiling-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-react-field Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-react-hooks Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-recently-accessed Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-file-maps Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-info Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-linter Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-packages Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-path Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-source-classifier Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-repo-source-classifier-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-reporting [Reporting] fix dashboard "Copy Post URL" action (#192530) 2024-10-08 01:54:21 +02:00
kbn-resizable-layout Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-rison Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-router-to-openapispec Update dependency @types/lodash to ^4.17.10 (main) (#194739) 2024-10-15 08:21:03 +02:00
kbn-router-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-rrule Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-rule-data-utils [Response Ops][Rules] Add New Rule Form to Stack Management (#194655) 2024-10-15 13:17:59 +03:00
kbn-safer-lodash-set Migrate codebase to use Object.hasOwn instead of Object.hasOwnProperty (#186829) 2024-08-13 10:30:19 -05:00
kbn-saved-objects-settings Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-screenshotting-server [Reporting] update puppeteer to version 23.3.1 (#192345) 2024-09-18 22:26:44 +02:00
kbn-search-api-keys-components [Onboarding] UX Feedback - Slight Tweaks to search detail (#194873) 2024-10-15 08:33:31 -05:00
kbn-search-api-keys-server [Search][Onboarding] api-key plugin (#191926) 2024-10-02 09:45:20 +01:00
kbn-search-api-panels Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-search-connectors [Search] Handle insufficient privileges nicely on Serverless (#196160) 2024-10-15 11:14:23 -05:00
kbn-search-errors Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-search-index-documents [Onboarding] Search detail document list tweaks (#194804) 2024-10-11 14:09:11 -05:00
kbn-search-response-warnings Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-search-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-security-hardening Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-autocomplete [Chore] Remove third-party testing internals from test snapshots (#192747) 2024-09-13 17:47:12 -05:00
kbn-securitysolution-ecs Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-endpoint-exceptions-common [HTTP/OAS] Include Security Solution domain OAS to production docs (#194132) 2024-10-04 22:34:25 +03:00
kbn-securitysolution-es-utils Upgrade http dependencies (#180986) 2024-10-01 11:50:47 -05:00
kbn-securitysolution-exception-list-components Upgrade EUI to v96.1.0 (#194619) 2024-10-04 12:53:45 -05:00
kbn-securitysolution-exceptions-common [HTTP/OAS] Include Security Solution domain OAS to production docs (#194132) 2024-10-04 22:34:25 +03:00
kbn-securitysolution-hook-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-io-ts-alerting-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-io-ts-list-types [Security Solution][Detection Engine] fixes empty item_id in exception item update request schema (#194175) 2024-09-30 07:19:56 -05:00
kbn-securitysolution-io-ts-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-io-ts-utils Upgrade EUI to v97.0.0 (#195525) 2024-10-14 13:35:35 +02:00
kbn-securitysolution-list-api Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-list-constants Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-list-hooks Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-list-utils [Security Solution][Event Filters] Warning callout for incomplete code signature entries (#193749) 2024-10-04 01:26:39 -05:00
kbn-securitysolution-lists-common [HTTP/OAS] Include Security Solution domain OAS to production docs (#194132) 2024-10-04 22:34:25 +03:00
kbn-securitysolution-rules Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-t-grid Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-securitysolution-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-server-http-tools Globally enforce internal API restriction (#193792) 2024-10-02 10:08:04 -07:00
kbn-server-route-repository [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-server-route-repository-client [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-server-route-repository-utils [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-set-map Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-shared-svg Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-shared-ux-utility Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-some-dev-log Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-sort-package-json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-sort-predicates [deps] Replace compare-versions with semver (#195287) 2024-10-08 12:23:12 -07:00
kbn-sse-utils [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-sse-utils-client [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-sse-utils-server [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
kbn-std Removes kbn-std/unset as it's not used anywhere (#193298) 2024-09-20 15:44:52 +02:00
kbn-stdio-dev-helpers Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-storybook [Logs Overview] Overview component (iteration 1) (attempt 2) (#195673) 2024-10-10 12:46:25 +02:00
kbn-telemetry-tools [APM][OTel] Make agent names generic with otel-native mode (#195594) 2024-10-16 04:09:21 -05:00
kbn-test [React@18] useLayoutEffect when setting value from a prop in react-monaco-editor (#195775) 2024-10-17 13:24:06 +02:00
kbn-test-eui-helpers Upgrade @testing-library/user-event to latest ^14.5.2 (#189949) 2024-09-10 14:31:27 +02:00
kbn-test-jest-helpers [react@18] Implicit children type fixes (#192011) 2024-09-09 13:56:02 +02:00
kbn-test-subj-selector Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-timelion-grammar Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-timerange Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-tinymath Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-tooling-log Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-triggers-actions-ui-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-try-in-console [Onboarding] Increasing telemetry coverage (#195741) 2024-10-11 14:08:07 +02:00
kbn-ts-projects [Security Solution] remove old and skipped Threat Intelligence Cypress tests (#191166) 2024-09-12 08:59:56 -05:00
kbn-ts-type-check-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-typed-react-router-config [APM][ECO] Service name and trace id links on Logs Explorer and Discover (#192349) 2024-09-18 12:26:22 +02:00
kbn-ui-actions-browser Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ui-shared-deps-npm Remove kbn-ace, ace and brace dependencies (#195703) 2024-10-10 14:16:42 +02:00
kbn-ui-shared-deps-src Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-ui-theme Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-unified-data-table [Discover] Add CTA to enable degraded docs indicator in ES|QL (#195630) 2024-10-14 16:10:59 +02:00
kbn-unified-doc-viewer [OneDiscover][UnifiedDocViewer] Add filtering for selected fields (#191930) 2024-09-11 12:46:36 +02:00
kbn-unified-field-list [Unified Field List] Fix issue where Unified Field List field popover gets cut off (#195147) 2024-10-08 18:43:52 -03:00
kbn-unsaved-changes-badge Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-unsaved-changes-prompt Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-use-tracked-promise Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-user-profile-components chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
kbn-utility-types Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-utility-types-jest Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-validate-next-docs-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-visualization-ui-components [react@18] More breaking type fixes (should be the last pr) (#192266) 2024-09-12 13:54:18 +02:00
kbn-visualization-utils Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-web-worker-stub Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-whereis-pkg-cli Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-xstate-utils [Logs Overview] Overview component (iteration 1) (attempt 2) (#195673) 2024-10-10 12:46:25 +02:00
kbn-yarn-lock-validator Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-zod Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kbn-zod-helpers Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
presentation [Embeddable Rebuild] Migrate ControlGroupRenderer to new embeddable framework (#190561) 2024-09-10 12:35:54 -05:00
react [react@18] Implicit children type fixes (#192011) 2024-09-09 13:56:02 +02:00
response-ops/feature_flag_service Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
serverless [APM] Remove observability:searchExcludedDataTiers from serverless (#196380) 2024-10-17 10:00:57 +02:00
shared-ux [React@18] useLayoutEffect when setting value from a prop in react-monaco-editor (#195775) 2024-10-17 13:24:06 +02:00
README.md create @kbn/ui-actions-browser package (#149202) 2023-01-19 18:28:07 +01:00

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.