kibana/packages
Lola 27f2eee64f
Csp aws text updates (#151237)
## Summary

Updating CSP aws texts in CSPM/KSPM Integration
Updates Security Solution Snapshot for Security Solutions Dashboards.
 -  Security-threat-hunting-team please review text change

`xpack/plugins/security_solution/public/common/components/navigation/use_security_solution_navigation/__snapshots__/index.test.tsx.snap`

 Updates Cloud Security text in the guided card component. 
- platform-onboarding please review text change

`packages/kbn-guided-onboarding/src/components/landing_page/guide_cards.constants.tsx`


## Elastic setup guide

**Before**


![Image](https://user-images.githubusercontent.com/53792284/218277681-f02a1ddd-2e95-4195-94b3-fd1e030dcc2d.png)

**After**

<img width="1728" alt="csp-setup-guides-after"
src="https://user-images.githubusercontent.com/17135495/218892507-0b785ba0-bafa-4a37-8afb-b030fb58bfa8.png">


```[tasklist]
- [x] Update text on the elastic setup guide on the home page from "Secure my cloud assets with posture management" to "Secure my cloud assets with cloud security posture management (CSPM)"
```
## Security Dashboards

Before
<img width="1715" alt="image"
src="https://user-images.githubusercontent.com/17135495/219459184-39b3d97d-96a8-446d-a2f1-fa871f8a2d5d.png">

After
<img width="1724" alt="image"
src="https://user-images.githubusercontent.com/17135495/219458775-8ece8c84-c40e-481a-9454-648025f0fdbc.png">
```[tasklist]
- [x] Update text Cloud Security to `Cloud security Posture`
```

## Empty States 

### Main empty state 

**Before**


![Image](https://user-images.githubusercontent.com/53792284/218278787-32ab4c82-9c49-416b-8c83-36aca6345139.png)

**After**

<img width="865" alt="main-empty-state-after"
src="https://user-images.githubusercontent.com/17135495/218892539-1170c435-ffbf-488f-a924-9afd96c80968.png">


```[tasklist]
- [x] Update placeholder text on the main empty state using the copy provided above
- [x] Update the "Learn more" hyperlink so that it navigates users to https://ela.st/cspm instead of https://ela.st/getting-started-with-kspm
```

### No agent installed empty state 
**Before**


![Image](https://user-images.githubusercontent.com/53792284/218279865-89723988-8d63-4eee-ae73-a07bc2c74aca.png)

**After**

<img width="1729" alt="no-agents-empty-state"
src="https://user-images.githubusercontent.com/17135495/218892571-513c9bef-9e30-4a77-bcbc-29c850f20c08.png">


```[tasklist]
- [x] Update placeholder text on the "No Agents Installed" empty state using the copy provided above 
```

## C/KSPM empty state 
Before


![Image](https://user-images.githubusercontent.com/53792284/218280334-261b1251-ae1e-4ecb-9395-f26f10677d74.png)

After 
kspm
<img width="1479" alt="kspm empty state"
src="https://user-images.githubusercontent.com/17135495/219456479-6a30028b-d128-4781-8e8e-8d2038cbfd96.png">

cspm
<img width="1440" alt="cspm_dashboard_empty_state"
src="https://user-images.githubusercontent.com/17135495/219456576-e79d8f7c-6c3e-4ceb-87b7-4405ff526f6f.png">


```[tasklist]
- [x] Update placeholder text for the empty state on the Cloud and Kubernetes tabs
- [x] The hyperlink on the Cloud tab should direct users to https://ela.st/cspm, while the hyperlink on the Kubernetes tab should direct users to https://ela.st/kspm
```


## Posture Score / Compliance Score  
**Before**


![Image](https://user-images.githubusercontent.com/53792284/218280933-b1ccbfee-7216-45e6-990d-06505c6499a5.png)


![Image](https://user-images.githubusercontent.com/53792284/218281131-c99e19e1-7498-4f66-b8df-f23db369daf2.png)

**After**

<img width="1667" alt="Posture_score_column_dashboard"
src="https://user-images.githubusercontent.com/17135495/218892597-1aa1c60e-e22b-493f-9dba-0b73a70c6193.png">
<img width="1909" alt="Posture_score_column_grouped_by_findings"
src="https://user-images.githubusercontent.com/17135495/218892619-41b9e357-81b9-4c21-9c09-929797e3c7b0.png">


```[tasklist]
- [x] Change the `Compliance Score` column name to `Posture Score` on both the Cloud & Kubernetes tabs in the table where we list individual clusters and cloud accounts. 
- [x] Change the `Compliance Score` column name to `Posture Score` on the grouped-by-resource view of the findings page. 
```


## Posture Dashboard 

**Before**


![Image](https://user-images.githubusercontent.com/53792284/218281551-8da3b02c-d753-4898-8ef3-284e5dfffef4.png)


![Image](https://user-images.githubusercontent.com/53792284/218281612-bad25428-9996-4983-b62f-74768d6560f1.png)

**After**

<img width="953" alt="KSPM_Posture_Dasboard_Title_rename"
src="https://user-images.githubusercontent.com/17135495/218892915-fc38ec31-ad7c-467e-9173-7b27e402771f.png">


```[tasklist]
- [x] Update posture dashboard title from `Cloud Posture` to `Cloud Security Posture`
- [x] Update the `Cloud Posture Score` title in the overall score section to `Overall Cloud Posture Score` on the Cloud tab and `Overall Kubernetes Posture Score` on the Kubernetes tab. 
- [x] Update Dashboard tile card title from `Cloud Posture` to `Cloud Security Posture`
- [x] Update  Breadcrumbs text  from `Cloud Posture` to `Cloud Security Posture`
```

## Integration 

**Before**


![Image](https://user-images.githubusercontent.com/53792284/218282678-c4a8dbe2-8bed-4dc6-8d8e-a4fa9ba20c64.png)


![Image](https://user-images.githubusercontent.com/53792284/218282684-c51ef857-333f-4cd9-805e-c60ed5f5cf6d.png)

**After**

CSPM Integration setup  info text updates
<img width="810" alt="cspm-aws-integraion-setup"
src="https://user-images.githubusercontent.com/17135495/218892958-31e3263a-e6c0-40d4-a82f-92e93b932e22.png">

**KSPM Integeration setup info text updates**
<img width="959" alt="kspm-aws-integration-setup"
src="https://user-images.githubusercontent.com/17135495/218893048-6a850355-05ef-486f-8d96-1455adece779.png">

**CSPM removal link**
<img width="1707" alt="image"
src="https://user-images.githubusercontent.com/17135495/218893469-58c65d28-b2fb-48e3-bd87-07a2b02a5665.png">


**KSPM removal link**
<img width="959" alt="kspm-docs-link-removal"
src="https://user-images.githubusercontent.com/17135495/218893196-d0e9ed6a-4be6-4d33-8a68-271e2a11d2e6.png">


```[tasklist]
- [x] Update Setup Access description for both CSPM & KSPM
- [x] Include KSPM, and CSPM specific getting-started links in the description above (https://ela.st/kspm-get-started and https://ela.st/cspm-get-started)
- [x] Remove our hyperlink to AWS docs from the setup access section 
```
=

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-02-21 14:40:55 -05:00
..
analytics Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
content-management [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
core Generate kbn/ecs with ECS 8.6.1 (#151642) 2023-02-21 15:02:38 +01:00
home [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
kbn-ace Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-alerts Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-alerts-ui-shared [RAM] Bring flapping status and settings in o11y (#150483) 2023-02-07 20:52:26 -07:00
kbn-ambient-common-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ambient-ftr-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ambient-storybook-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ambient-ui-types Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-analytics Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-apm-config-loader Allow APM env to be set via the config file (#149266) 2023-01-20 10:02:11 +00:00
kbn-apm-synthtrace [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-apm-synthtrace-client Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00
kbn-apm-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-axe-config Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-babel-preset Update dependency core-js to ^3.28.0 (main) (#151658) 2023-02-21 10:22:11 -06:00
kbn-babel-register [kbn/babel-register] improve cache performance (#150261) 2023-02-06 19:50:42 -07:00
kbn-babel-transform [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-bazel-runner Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-cases-components [Cases] add tooltip component to kbn-cases-components package (#148561) 2023-01-17 14:24:50 +01:00
kbn-cell-actions [Security Solution] Cell Actions and Security triggers refactor (#150213) 2023-02-15 12:27:33 +01:00
kbn-chart-icons Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ci-stats-core Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ci-stats-performance-metrics Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ci-stats-reporter Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ci-stats-shipper-cli [ci-stats] move shipper to a package, validate limits in on-merge job (#149474) 2023-01-25 08:20:40 -07:00
kbn-cli-dev-mode [kibana] Thank you for everything, Spencer! 🧔🏻‍♂️ (#150759) 2023-02-10 16:57:43 -06:00
kbn-coloring Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-config [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-config-mocks [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-config-schema Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-crypto Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-crypto-browser Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-cypress-config Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-datemath [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-dev-cli-errors Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-dev-cli-runner Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-dev-proc-runner Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-dev-utils [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-doc-links [Synthetics UI] Correct link in the integration deprecation callout (#150879) 2023-02-21 14:47:46 +01:00
kbn-docs-utils [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-ebt-tools Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ecs Generate kbn/ecs with ECS 8.6.1 (#151642) 2023-02-21 15:02:38 +01:00
kbn-es [kbn/es] Add dev docs for snapshot promotion pipeline (#148350) 2023-01-05 12:45:34 -06:00
kbn-es-archiver Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-es-errors Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-es-query [Dashboard] fix searchSessionId not updated when pinned filter changes (#151390) 2023-02-21 09:31:06 -07:00
kbn-es-types [APM] Use (rolled up) service metrics for service inventory (#149938) 2023-02-04 04:00:25 -07:00
kbn-eslint-config [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-eslint-plugin-disable Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-eslint-plugin-eslint Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-eslint-plugin-imports [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-expect Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-failed-test-reporter-cli Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-field-types Update codeowners to move AppServices packages to DataDiscovery (#149065) 2023-01-18 13:34:28 -07:00
kbn-find-used-node-modules [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-flot-charts Fix useless regex escapes (#150043) 2023-02-07 09:58:47 -07:00
kbn-ftr-common-functional-services Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ftr-screenshot-filename Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-generate [codeowners] allow overrides to take higher precedence (#150821) 2023-02-09 16:29:26 -07:00
kbn-get-repo-files [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-guided-onboarding Csp aws text updates (#151237) 2023-02-21 14:40:55 -05:00
kbn-handlebars [@kbn/handlebars] Refactor types (#150520) 2023-02-14 13:37:41 +01:00
kbn-hapi-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-health-gateway-server implement "plugin" package type (#149370) 2023-01-30 10:47:53 -07:00
kbn-i18n Downgrade Node.js to version 16 (#149531) 2023-01-26 11:53:52 +00:00
kbn-i18n-react Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-import-locator [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-import-resolver [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-interpreter Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00
kbn-io-ts-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-jest-serializers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-journeys [ftr/journeys] allow override ftr base config in journey (#151277) 2023-02-16 08:52:05 +01:00
kbn-json-ast [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-kibana-manifest-schema implement "plugin" package type (#149370) 2023-01-30 10:47:53 -07:00
kbn-language-documentation-popover Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-lint-packages-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-lint-ts-projects-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-logging Replace ecs package with ecs-typescript generated code (#148804) 2023-01-26 07:10:32 +01:00
kbn-logging-mocks Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-managed-vscode-config Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-managed-vscode-config-cli Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-mapbox-gl Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-monaco Downgrade Node.js to version 16 (#149531) 2023-01-26 11:53:52 +00:00
kbn-optimizer [Custom Branding] Add custom branding settings to Global settings (#150080) 2023-02-16 08:13:42 +01:00
kbn-optimizer-webpack-helpers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-osquery-io-ts-types [Osquery] Substitute Event Data in place of {{parameter}} in Osquery run from Alerts (#146598) 2023-01-05 15:49:40 +01:00
kbn-peggy Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-peggy-loader Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-performance-testing-dataset-extractor Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-picomatcher Implement package linter (#148496) 2023-01-09 16:49:29 -07:00
kbn-plugin-discovery [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-plugin-generator [@kbn/plugin-generator] Skip .i18nrc.json for internal plugins (#150556) 2023-02-09 13:03:12 +00:00
kbn-plugin-helpers [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-react-field [UnifiedFieldList] Support more field type icons and descriptions (#149416) 2023-01-30 03:07:17 -07:00
kbn-repo-file-maps [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-repo-info Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-repo-linter Implement package linter (#148496) 2023-01-09 16:49:29 -07:00
kbn-repo-packages [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-repo-path [packages] prevent and remove basename collisions for js/ts code (#148835) 2023-01-12 12:29:30 -07:00
kbn-repo-source-classifier [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-repo-source-classifier-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-rison [Security Solution] Global query string functionality improvements (#147218) 2023-01-05 18:02:12 +01:00
kbn-rule-data-utils feat(slo): introduce slo feature (#150554) 2023-02-16 10:52:57 -07:00
kbn-safer-lodash-set Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00
kbn-securitysolution-autocomplete Fix validation for entry fields in exception form (#151654) 2023-02-21 16:59:54 +01:00
kbn-securitysolution-ecs [Security Solution] Security Common Schema Package (#148664) 2023-01-23 10:07:08 -07:00
kbn-securitysolution-es-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-exception-list-components Upgrade EUI to v74.1.0 (#150235) 2023-02-09 13:12:35 -07:00
kbn-securitysolution-hook-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-io-ts-alerting-types chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
kbn-securitysolution-io-ts-list-types [Security Solution][Exceptions] Rule exceptions TTL - Expiration (#145180) 2023-02-07 16:20:39 -05:00
kbn-securitysolution-io-ts-types [Security Solution][Platform] - Add connectors to import/export API (#148703) 2023-02-06 16:47:22 +00:00
kbn-securitysolution-io-ts-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-list-api [Security Solution][Exceptions] Rule exceptions TTL - Expiration (#145180) 2023-02-07 16:20:39 -05:00
kbn-securitysolution-list-constants Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-list-hooks [Security Solution][Exceptions] Rule exceptions TTL - Expiration (#145180) 2023-02-07 16:20:39 -05:00
kbn-securitysolution-list-utils [Security Solution][Exceptions] Rule exceptions TTL - Expiration (#145180) 2023-02-07 16:20:39 -05:00
kbn-securitysolution-rules Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-t-grid Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-securitysolution-utils chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
kbn-server-http-tools chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
kbn-server-route-repository Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-set-map [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-shared-svg Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-shared-ux-utility [codeowners] rename global experience to @elastic/appex-sharedux 2023-01-18 10:02:49 -07:00
kbn-slo-schema feat(slo): Add custom kql filter into APM indicator types (#150936) 2023-02-15 13:47:47 -05:00
kbn-some-dev-log Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-sort-package-json [sort-package-json] always ensure 2-space indent is used 2023-01-10 10:39:48 -07:00
kbn-spec-to-console Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-std Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-stdio-dev-helpers Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-storybook [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-telemetry-tools [Telemetry] Fix telemetry-tools TS parser for packages (#149819) 2023-01-31 04:09:09 +03:00
kbn-test [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-test-jest-helpers [Shared UX] Adoption of Shared UX Route component (#150357) 2023-02-14 19:25:04 +00:00
kbn-test-subj-selector Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-timelion-grammar Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-tinymath [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-tooling-log Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ts-projects [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-ts-type-check-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-typed-react-router-config [APM] Add 404 page (#149471) 2023-02-02 13:52:51 -05:00
kbn-ui-actions-browser create @kbn/ui-actions-browser package (#149202) 2023-01-19 18:28:07 +01:00
kbn-ui-framework Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-ui-shared-deps-npm [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-ui-shared-deps-src [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-ui-theme Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-user-profile-components Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-utility-types Replace ecs package with ecs-typescript generated code (#148804) 2023-01-26 07:10:32 +01:00
kbn-utility-types-jest [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-validate-next-docs-cli [validate-next-docs] declare how github urls are determined 2023-02-10 10:54:20 -06:00
kbn-web-worker-stub Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kbn-whereis-pkg-cli [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
kbn-yarn-lock-validator [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
shared-ux [Files] Add meta prop to <FilePicker /> (#151417) 2023-02-16 04:58:48 -07: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.