Commit graph

43 commits

Author SHA1 Message Date
Sander Philipse
789230f85b
[Search] Add API key panel to Search Hub (#172301)
## Summary

This adds an API key panel to the Search Hub.



8d0458bd-26e1-40c4-9643-1a91f3924911

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-12-05 11:53:10 -07:00
Tiago Costa
561f89ef45
skip flaky suite (#172597) 2023-12-05 17:33:46 +00:00
Tiago Costa
ae6a2be378
skip flaky suite (#172596) 2023-12-05 17:32:27 +00:00
Tiago Costa
9f41a75b95
skip flaky suite (#172595) 2023-12-05 17:30:37 +00:00
Rachel Shen
39112999b3
Onboarding card redesign (#171586)
## Summary
https://github.com/elastic/kibana-team/issues/671 
[Design
direction](https://www.figma.com/file/RK76YsiCH3TXTh34HR5iZY/GO-v2?type=design&node-id=122-698&mode=design&t=QUZ9fPbMWehmixhN-0)

Closes https://github.com/elastic/kibana/issues/165126
Closes https://github.com/elastic/cloud/issues/120614

- remove the all filter for the solutions
- add the endpoint work into a card
- change the filter behavior to not show highlighting of a specific
solution but remove the other cards
- add telemetry ui counter to capture when a user clicks on a solution
(defaults to search)


## To Test Locally
In the kibana.dev.yml set the following to mimic a cloud cluster:

`elasticsearch.hosts: ["http://localhost:9200"]`
`xpack.cloud.id: 'testID'`

## Next Steps
Have `Home` targeted per solution - basically removing the landing page
where it currently stands
Launch Darkly integration

### Checklist

Delete any items that are not applicable to this PR.

- [x] 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)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] 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))
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2023-12-05 08:39:00 -07:00
Aurélien FOUCRET
2f1b6ac896
[Guided onboarding] Updating search solution items. (#166953) 2023-09-25 18:02:33 +02:00
Aurélien FOUCRET
c12276d836
Renaming the esre application into ai_search (#166632) 2023-09-20 16:22:49 +02:00
Cauê Marcondes
1f7a383b7b
[Profiling] Add Universal Profiling to O11y overview and Setup guide (#165092)
All pages link to `/profiling/add-data-instructions`

- Observability overview page
<img width="1786" alt="Screenshot 2023-08-29 at 13 45 59"
src="9639341b-7b33-4493-a4f7-5190922a26fc">

- ~~Observability onboarding page~~
<img width="888" alt="Screenshot 2023-08-29 at 14 00 14"
src="77912f5c-cfa4-4ab8-900a-0644cd8176a2">

- Kibana setup guides page
<img width="1424" alt="Screenshot 2023-08-29 at 14 10 43"
src="5b8bf2d5-5583-47ca-93ab-efbb8d774336">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-18 01:16:55 -07:00
Yngrid Coello
5e49bfd9fc
[Logs onboarding] Added entry points for observability onboarding landing page (#163300)
Closes https://github.com/elastic/kibana/issues/162230.

### Changes
- Card `Collect and analyse my logs` in getting started is now pointing
to `app/observabilityOnboarding`.
- `Data assistant for observability` callout in observability overview
was removed in favour of `Collect and analyse logs in observability`
callout.

#### Getting started - Before


4a3a0f64-ee34-48c5-9395-f3965763a1d1

#### Getting started - After


d30c2cf0-dc01-4a9d-a808-7caa5da7c008

#### Observability overview - before


6960b178-4e3e-49a6-bea8-4501778f1e12

#### Observability overview - after


316f27f7-5ac2-44a9-85a6-7f8c2b343300

---------

Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
2023-08-10 23:57:34 -07:00
Achyut Jhunjhunwala
fabb7109a4
[APM] Fix link to onboarding page in the Observability Onboarding plugin (#161847)
Closes https://github.com/elastic/kibana/issues/159675

## Summary

We have in lot of places, Tutorial link hardcoded to
`'/app/home#/tutorial/apm'`

This must change based on deployment type to be Serverless or Non
Serverless.

For Serverless the URL is - `'/app/apm/onboarding'`
For Non Serverless, the URL - `'/app/home#/tutorial/apm'`

Hence to avoid adding logic to read Serverless/Non Serverless mode in
all plugins and packages, i have implemented a redirect URL
`/app/apm/tutorial` inside the APM plugin which will read the Serverless
config and accordingly do the redirect.
2023-07-20 03:33:42 -07:00
Sander Philipse
8d67824556
[Enterprise Search] Add vector search and ESRE tiles to guides (#160029)
## Summary

This adds two guide tiles to the onboarding guides page.
2023-06-20 22:12:30 +02:00
Giorgos Bamparopoulos
043a1a5050
[Synthetics] Add a guided card for synthetics (#159863)
Adds a guided card for synthetics. Guided onboarding is only available
in cloud, so in order to test it locally you can add `xpack.cloud.id:
test` setting to your `kibana.dev.yml` file. You can find more
information in the [guided onboarding
docs](https://github.com/elastic/kibana/tree/main/src/plugins/guided_onboarding#development).


f146bc08-a1a4-4d4f-891b-574b71584eba

Part of https://github.com/elastic/kibana/issues/159562

---------

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-06-19 17:02:57 +01:00
claracruz
6f94e42a32
Update icons on landing page tweaks (#159557)
Rel: https://github.com/elastic/kibana/issues/154117

This PR applies tweaks/updates requested @
https://github.com/elastic/kibana/pull/159114#issuecomment-1585080155

<img width="1221" alt="Screenshot 2023-06-13 at 11 44 36"
src="5d27424d-19d9-4c0c-bc7c-d394e745af55">
2023-06-13 16:50:36 +01:00
claracruz
9adb53f2a4
Update icons on landing page (#159114)
Fixes: https://github.com/elastic/kibana/issues/154117
Fixes: https://github.com/elastic/kibana/issues/155341

This PR updates the guided onboarding landing page icons, removes the
solution badge and updates the solution view to a grouped layout so
cards remain grouped on narrow screens.

### Screenshots
<img width="954" alt="Screenshot 2023-06-06 at 13 37 35"
src="5a173833-48df-49ff-8e55-612d4aa52e07">

#### Narrow
<img width="872" alt="Screenshot 2023-06-06 at 14 26 58"
src="87256b3e-1375-402d-9a14-2bf10c58422e">


#### Mobile
<img width="295" alt="Screenshot 2023-06-06 at 13 37 03"
src="101f4259-17df-4b41-a9df-e48bb269dd8b">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-07 19:53:33 +01:00
Yulia Čech
bc3471cf26
[Guided onboarding] Dynamic URLs for steps (#154572)
## Summary
Fixes https://github.com/elastic/kibana/issues/143322

This PR adds an option to store dynamic parameters when a step is
completed to be used later for dynamically built URLs.

### How to test
1. Add `xpack.cloud.id: 'testID'` to your `/config/kibana.dev.yml` file
2. Start ES with `yarn es snapshot`
3. Start Kibana with `yarn start --run-examples` 
4. Navigate to the guided onboarding example plugin
`http://localhost:5601/app/guidedOnboardingExample`
5. Start the test guide and when completing step 1 provide any value for
the paramter `indexName`
6. Continue the guide until step 4 and check that the correct value is
being used for the url of this step.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-04-21 18:21:29 +02:00
claracruz
cb3a42a880
Filter guided onboarding solutions based on cloud discovery questions… (#153367)
Related to #148911

This PR updates the guided onboarding landing page to filter solutions
based on user selected use case in cloud discovery questions. The value
will be passed as querystring parameter `?cloudDiscoveryUseCase=[value]`
from Cloud UI.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-04-04 12:15:42 +01:00
Kfir Peled
2b5c537e11
[Cloud Security] fixed onboarding link directs to cspm integration (#153268) 2023-03-20 10:53:49 -06:00
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
Yulia Čech
5f74c6de18
[Guided onboarding] Landing pages design follow ups (#150084)
## Summary
Fixes https://github.com/elastic/kibana/issues/149695
Follow up to https://github.com/elastic/kibana/pull/149528

This PR fixes minor design issues on the new landing page: 
- Adds a `document` icon to cards that on click redirect the user to a
Kibana page (not the guide cards)
- Updates the color of the icon for completed guide card to match the
header button (as per @cindychangy's
[comment](https://github.com/elastic/kibana/pull/149528#issuecomment-1403995077))
- Adds linebreaks to prevent one word dangling on the new line (as per
@osmanis's
[comment](https://github.com/elastic/kibana/pull/149528#issuecomment-1408780148))
- Fixes the layout of the completed guide card and all cards on the page
for small screens. See screenshots below

### Screenshots
#### Before (large screens)
<img width="1333" alt="Screenshot 2023-02-01 at 17 58 11"
src="https://user-images.githubusercontent.com/6585477/216111021-32ee8162-5cf8-4948-8f1d-aa3790e6a7f9.png">

#### After (large screens)
<img width="1300" alt="Screenshot 2023-02-01 at 18 01 16"
src="https://user-images.githubusercontent.com/6585477/216111153-d22feadd-1796-4b20-9e97-f7e0b025c42d.png">

#### Before (small screens)
<img width="627" alt="Screenshot 2023-02-01 at 17 58 20"
src="https://user-images.githubusercontent.com/6585477/216111189-08d3cd2b-bd75-4d6b-9f52-8d74623cbe35.png">

#### After (small screens)
<img width="561" alt="Screenshot 2023-02-01 at 18 01 24"
src="https://user-images.githubusercontent.com/6585477/216111209-6dafed8a-d398-4090-a23f-af570b684d33.png">


### Checklist
- [x] 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)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2023-02-07 01:51:44 -07:00
Yulia Čech
8705a6a77b
[Guided onboarding] Registers 3 separate guide IDs for search (#149968)
## Summary
Fixes https://github.com/elastic/kibana/issues/149691 
Follow up to https://github.com/elastic/kibana/pull/149528 

This PR adds 3 separate guide ID values `appSearch`, `websiteSearch` and
`databaseSearch` instead of previously used `search`. With that change,
each card for Search on the landing page has its own independent guide
that can be completed.

Example plugin for guided onboarding is also updated so that all 3
search guides can be managed there. Otherwise there should not be any
UI/UX changes.

Currently, all 3 ids are registered with the same config and that can be
easily updated by the team in the future.

#### Screenshot
<img width="485" alt="Screenshot 2023-01-31 at 18 24 12"
src="https://user-images.githubusercontent.com/6585477/215840343-f9a65be3-0568-40ca-b458-5de92bfe8aaf.png">


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-02-06 06:16:26 -07:00
Yulia Čech
c1b57bdfec
[Guided onboarding] Telemetry ids for landing page cards (#150028)
## Summary
Fixes https://github.com/elastic/kibana/issues/149273
Follow up to https://github.com/elastic/kibana/pull/149528 

This PR adds a `data-test-subj` attribute to the new cards on the
landing page so that the clicks can be tracked in FullStory and then
added to our analytics data.

### Telemetry IDs for landing page cards

| Change | Selector  | Description  |
|---|---|---|
| **not changed since 8.6** |
[data-test-subj="onboarding--skipGuideLink"] | "Skip" link click, user
has skipped guided onboarding
| **deleted** | [data-test-subj="onboarding--linkCard--observability"] |
"View integrations" button click, user has selected "Observe my data"
card
| **new card** | [data-test-subj="onboarding--search--application"] |
"Build an application on top of Elasticsearch" button click, user has
viewed `appSearch` guide
| **new card** | [data-test-subj="onboarding--search--website"] | "Add
search to my website" button click, user has viewed `websiteSearch`
guide
| **new card** | [data-test-subj="onboarding--search--database"] |
"Search across databases and business systems" button click, user has
viewed `databaseSearch` guide
| **new card** | [data-test-subj="onboarding--observability--logs"] |
"Collect and analyze my logs" button click, user was redirected to
Integrations for logs
| **new card** | [data-test-subj="onboarding--observability--apm"] |
"Monitor my application performance (APM / tracing)" button click, user
was redirected to APM tutorial
| **new card** | [data-test-subj="onboarding--observability--hosts"] |
"Monitor my host metrics" button click, user was redirected to
Integrations for hosts
| **new card** |
[data-test-subj="onboarding--observability--kubernetes"] | "Monitor
Kubernetes clusters" button click, user has viewed `kubernetes` guide
| **new card** | [data-test-subj="onboarding--security--siem"] | "Detect
threats in my data with SIEM" button click, user has viewed `siem` guide
| **new card** | [data-test-subj="onboarding--security--hosts"] |
"Secure my hosts with endpoint security" button click, user was
redirected to Endpoint integration
| **new card** | [data-test-subj="onboarding--security--cloud"] |
"Secure my cloud assets with posture management" button click, user was
redirected to Cloud Security posture integration
2023-02-06 05:00:54 -07:00
Yulia Čech
486a866b42
[Guided onboarding] Landing page updates (#149528)
## Summary
Fixes https://github.com/elastic/kibana/issues/149179

This PR updates the landing page for guided onboarding according with
the latest feedback:
- more cards on the page
- most cards redirect to different Kibana pages
- some cards activate a solution guide
- a filter to highlight cards for a specific solution
- guide progress labels and completion indicators

#### Out of scope for this PR:
- telemetry events (will be addressed in
https://github.com/elastic/kibana/issues/149273)
- turn on a solution filter based on the url params (planned for 8.8+)

#### Screenshots/recording
Light theme
<img width="1552" alt="Screenshot 2023-01-26 at 12 28 25"
src="https://user-images.githubusercontent.com/6585477/214825116-dc2f12c6-1436-4d6f-b16f-67a75c3466a5.png">


Dark theme
<img width="1535" alt="Screenshot 2023-01-26 at 12 28 51"
src="https://user-images.githubusercontent.com/6585477/214825145-ea9552e0-10ac-4e3c-bb48-d2154132d69c.png">


Progress labels and completion indicators
<img width="1402" alt="Screenshot 2023-01-26 at 12 26 54"
src="https://user-images.githubusercontent.com/6585477/214825184-63753066-20f0-4589-9970-d1a49e481f85.png">


Filter highlighting



https://user-images.githubusercontent.com/6585477/214825210-7396c1d9-3ff9-4a2f-9329-7419c5cd5802.mov





### Checklist

- [x] 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)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2023-01-31 13:27:20 +00:00
Yulia Čech
e7746b24d5
[Guided onboarding] Register test guide in the example plugin (#147703)
This PR moves the test guide used for testing and dev work to the guided
onboarding package. It is now being registered when the guided
onboarding example plugin is being setup. For that a server side is
added to the example plugin.
Registering the test guide from the example plugin demonstrates how the
"register guide" function can be used for production guides. The test
config needs to be in the `kbn-guided-onboarding` package because
example plugins have some problems importing files from other plugins.
That way the test config is available to the example plugin and to the
guided onboarding plugin for unit and functional tests.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-01-20 03:29:25 -07:00
Spencer
afb09ccf8a
Transpile packages on demand, validate all TS projects (#146212)
## Dearest Reviewers 👋 

I've been working on this branch with @mistic and @tylersmalley and
we're really confident in these changes. Additionally, this changes code
in nearly every package in the repo so we don't plan to wait for reviews
to get in before merging this. If you'd like to have a concern
addressed, please feel free to leave a review, but assuming that nobody
raises a blocker in the next 24 hours we plan to merge this EOD pacific
tomorrow, 12/22.

We'll be paying close attention to any issues this causes after merging
and work on getting those fixed ASAP. 🚀

---

The operations team is not confident that we'll have the time to achieve
what we originally set out to accomplish by moving to Bazel with the
time and resources we have available. We have also bought ourselves some
headroom with improvements to babel-register, optimizer caching, and
typescript project structure.

In order to make sure we deliver packages as quickly as possible (many
teams really want them), with a usable and familiar developer
experience, this PR removes Bazel for building packages in favor of
using the same JIT transpilation we use for plugins.

Additionally, packages now use `kbn_references` (again, just copying the
dx from plugins to packages).

Because of the complex relationships between packages/plugins and in
order to prepare ourselves for automatic dependency detection tools we
plan to use in the future, this PR also introduces a "TS Project Linter"
which will validate that every tsconfig.json file meets a few
requirements:

1. the chain of base config files extended by each config includes
`tsconfig.base.json` and not `tsconfig.json`
1. the `include` config is used, and not `files`
2. the `exclude` config includes `target/**/*`
3. the `outDir` compiler option is specified as `target/types`
1. none of these compiler options are specified: `declaration`,
`declarationMap`, `emitDeclarationOnly`, `skipLibCheck`, `target`,
`paths`

4. all references to other packages/plugins use their pkg id, ie:
	
	```js
    // valid
    {
      "kbn_references": ["@kbn/core"]
    }
    // not valid
    {
      "kbn_references": [{ "path": "../../../src/core/tsconfig.json" }]
    }
    ```

5. only packages/plugins which are imported somewhere in the ts code are
listed in `kbn_references`

This linter is not only validating all of the tsconfig.json files, but
it also will fix these config files to deal with just about any
violation that can be produced. Just run `node scripts/ts_project_linter
--fix` locally to apply these fixes, or let CI take care of
automatically fixing things and pushing the changes to your PR.

> **Example:** [`64e93e5`
(#146212)](64e93e5806)
When I merged main into my PR it included a change which removed the
`@kbn/core-injected-metadata-browser` package. After resolving the
conflicts I missed a few tsconfig files which included references to the
now removed package. The TS Project Linter identified that these
references were removed from the code and pushed a change to the PR to
remove them from the tsconfig.json files.

## No bazel? Does that mean no packages??
Nope! We're still doing packages but we're pretty sure now that we won't
be using Bazel to accomplish the 'distributed caching' and 'change-based
tasks' portions of the packages project.

This PR actually makes packages much easier to work with and will be
followed up with the bundling benefits described by the original
packages RFC. Then we'll work on documentation and advocacy for using
packages for any and all new code.

We're pretty confident that implementing distributed caching and
change-based tasks will be necessary in the future, but because of
recent improvements in the repo we think we can live without them for
**at least** a year.

## Wait, there are still BUILD.bazel files in the repo
Yes, there are still three webpack bundles which are built by Bazel: the
`@kbn/ui-shared-deps-npm` DLL, `@kbn/ui-shared-deps-src` externals, and
the `@kbn/monaco` workers. These three webpack bundles are still created
during bootstrap and remotely cached using bazel. The next phase of this
project is to figure out how to get the package bundling features
described in the RFC with the current optimizer, and we expect these
bundles to go away then. Until then any package that is used in those
three bundles still needs to have a BUILD.bazel file so that they can be
referenced by the remaining webpack builds.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-12-22 19:00:29 -06:00
Yulia Čech
e709523410
[Guided onboarding] Loading state/error handling (#147374)
## Summary
Fixes https://github.com/elastic/kibana/issues/146437
Fixes https://github.com/elastic/kibana/issues/139799

This PR adds a loading state indicator to the landing page when a user
clicks the "view/continue guide" button. It also adds a loading
indicator to the header button and to the dropdown panel (step buttons).
This is implemented via a new observable in the api service `isLoading$`
which is being updated every time a request is sent to the guided
onboarding API. There is also a new error section in the panel that is
displayed when the plugin state is `error` or the guide config is not
found.

_Note for copy reviewers_: Could you please have a look at the new text
is in the screenshot "Error state in the panel"?

### Screenshots/screencasts
#### Landing page buttons


https://user-images.githubusercontent.com/6585477/207427764-a17cdc9a-1b85-4a47-aaa5-6fabc193c99e.mov

Note: the loading indicator blocks individual buttons, so the user could
click view one guide and before the request completes and the panel is
shown, they could click to view another guide. Instead we could consider
blocking all buttons at once on the landing page.

#### Header button and panel


https://user-images.githubusercontent.com/6585477/207428327-7465a5e3-a395-42d1-aa6b-32d339194a00.mov


#### Error state in the panel
<img width="535" alt="Screenshot 2022-12-15 at 15 11 04"
src="https://user-images.githubusercontent.com/6585477/207883802-09e44b62-cfb3-484a-9db8-3832b1683729.png">


Note: since the api service logic prevents it from sending multiple
requests once the plugin state or guide config has been initialized from
the backend, the user can't retry the request. That is why the button in
the error panel reloads the page.

### How to test
I recommend using [tweak](https://tweak-extension.com/) browser
extension to simulate errors in API requests. Here are 2 requests I'm
mocking for the tests:
<img width="778" alt="Screenshot 2022-12-13 at 20 54 33"
src="https://user-images.githubusercontent.com/6585477/207431207-03eb71c0-60b0-4d9f-ad30-0ecc092707ac.png">

<img width="782" alt="Screenshot 2022-12-13 at 20 52 02"
src="https://user-images.githubusercontent.com/6585477/207430965-7f2bb370-cc43-459e-ab14-bfc92ce504dd.png">


### Checklist


- [ ] 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)
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-12-15 16:38:44 +01:00
Yulia Čech
c697611f24
[Guided onboarding] Fix the kubernetes logo (#147548)
## Summary

Follow up to https://github.com/elastic/kibana/pull/147443
This is a tiny fix to update the logo for the kubernetes guide card
(make is separate from the infrastructure card).

### Screenshots

<img width="437" alt="Screenshot 2022-12-14 at 17 50 02"
src="https://user-images.githubusercontent.com/6585477/207657819-8af3ca46-9299-49c0-90c1-acea89b340e0.png">

<img width="396" alt="Screenshot 2022-12-14 at 17 50 28"
src="https://user-images.githubusercontent.com/6585477/207657827-1e64a098-ecdf-42ab-b3b6-4ddece04e8ba.png">
2022-12-14 13:18:38 -05:00
Cindy Chang
f7394339f1
[Guided Onboarding] Use new images for landing page (#147443)
Replacing the landing page with new images, addresses [issue
#147384](https://github.com/elastic/kibana/issues/147384)

<img width="1710" alt="image"
src="https://user-images.githubusercontent.com/11224465/207354781-70600f14-1187-4d10-ab65-3fd7e380fe4a.png">

@yuliacech @alisonelizabeth : a couple of notes:
- I was given both SVG and PNGs, in this task I just replaced the old
PNGS with the new ones, do you think I should use SVGs instead - or does
not really matter?
- The branding team made a unique image for the "Observe my Kubernetes
infrastructure" card - I uploaded the image (`kubernetes.png` and
`kubernetes-dark.png`), but did not replace it. I tried too initially,
but kept getting errors when adding it to the`UseCase` map, so left it
for now as the page now does not show a unique image. That being said I
am more than happy to replace it - I just might need some direction 😜,
or I can create a future task for that. Whatever you think is best.
2022-12-14 17:43:51 +01:00
Yulia Čech
d1e7f50426
[Guided onboarding] Update guide IDs (#147348)
## Summary

Fixes https://github.com/elastic/kibana/issues/144452

This PR updates the guide IDs used in guided onboarding from generic
values (`observability` and `security`) to more specific values
(`kubernetes` and `siem`) which will allow us to add more guides for
observability and security in the future.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2022-12-14 15:51:51 +01:00
Cindy Chang
e6cbfac277
[Guided Onboarding] Add shadow to landing page cards #144809 (#147121)
Adding a drop shadow to cards on guided onboarding landing page:

![image](https://user-images.githubusercontent.com/11224465/205962845-c4a1da02-dba0-4f53-a606-59dd5e6ef400.png)

**Notes:**
From the [docs](https://elastic.github.io/eui/#/display/card), setting
the `display` value removes the shadow. So I removed that and I tried to
use `$euiTheme` vars but there was no color that matched the subdued one
(`subduedText` and `lightestShade` were all too dark), so I made this as
an inline style, let me know if you think it should be done differently.
2022-12-12 14:43:17 +01:00
Steph Milovic
d1e3430dbc
[Security solution] Guided onboarding, security tour copy changes (#146061) 2022-11-29 10:24:26 -07:00
Alison Goryachev
fa320eb8d9
[Guided onboarding] Address design feedback (#146467) 2022-11-29 09:27:08 -05:00
Muhammad Ibragimov
94437f8add
[Guided onboarding] Fix card footer button markup (#145050) 2022-11-14 10:10:53 -05:00
Bree Hall
4e9f1c0d04
Bumping EUI to version 67.1.8 (#141279)
* Updated EUI to version 67.1.2. Updated instaces of ButtonColor from EUI to EuiButtonColor.

* Updated to EuiCard instances that utilize the betaBadgeProps object to return an empty string instead of undefined when the label is unavailable

* Removed two instances of the deprecated internetExplorerOnly() mixin

* Updated two instances of the ButtonColor import to EuiButtonColor as is was renamed in PR #6150

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles

* Updated snapshots in Jest Test Suite #2 to account forEuiButton, EuiDescriptionList, EuiButtonIcon, and EuiBadge Emotion conversions.

* Updated snapshots in Jest Test Suite #3 to account for EuiDescriptionList, EuiButton, and EuiBadge Emotion conversions. Updated snapshots for EuiTooltip as if now contains the new EuiTooltipAnchor component that replaced the tooltop anchor styles

* Updated snapshots in Jest Test Suite #4 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #5 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #8 to account for EuiButtonIcon and EuiButton Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated snapshots in Jest Test Suite #9 to account for EuiFlyout and EuiButton Emotion conversions.

* Updated snapshots in Jest Test Suite #10 to account for EuiButton, EuiBadge, EuiButtonIcon, and EuiCard Emotion conversions. Updated snapshots for EuiToolTtip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles

* Updated instances of EuiButtonIconColor to use EuiButtonIconProps['color'] as it was removed in PR #6150

* Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions

* Added the EuiFlyout mixins and variables to Lens Sass file as EuiFlyout has been converted to Emotion and the Sass styles are no longer available in EUI

* Added the EuiCallOutTypes variable to Step Progress Sass file as EuiCallOut has been converted to Emotion and the Sass styles are no longer available in EUI

* Updated snapshots in Jest Test Suite #2 to account for recent Emotion conversions.
Updated snapshots in server_status.test.tsx to render EuiBadge before checking the snapshots to reduce the snapshot churn caused by Emotion.
Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Added imports for the added flyout mixin. Removed references to EuiCallOut mixin as the component has been converted to Emotion and is no longer available for use.

* Updated unit tests and snapshots in Jest Test Suite #10.
Updated snaphshots to account for EuiBadge, EuiDescriptionList, EuiFlyout, and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.
Updated tests that target EuiButton to simulate click events to target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #11 that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #12 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #1 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #2 by updating tests that use EuiButton to simulate click events. Instead, these test have been updated to target a button element to prevent undefined click event errors.

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Updated reference to mixins Sass file.
Updated snapshots for Jest Test Suite #5 to account for EuiButton Emotion conversion. Updated unit tests that target EuiButton to simulate click events. These tests have been updated to target a button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suites 3, 7, 8, 13, and 14.
Updated snapshot to account for EuiButton Emotion conversion.
Updated tests that target EuiButton to simulate click events. These tests now target a generic button element to prevent undefined click event errors.
Updated a few snapshots by adding .render() before checking the snapshot. This will prevent large snapshots coming from recent Emotion conversions

* Updated snapshots in Jest Test Suite #10 to account for the recent EuiButton Emotion conversion

* Updated unit tests in Jest Test Suite #2 by editing tests that target EuiButton to simulate click events. These tests now target a button element in order to prevent undefinde click event errors

* Updated snapshots in Jest Test Suite #10 to account for EuiButton and EuiDescriptionList Emotion conversions

* Updated test cases in Jest Test Suites 3, 7, and 8. Updated snapshots to account for EuiButton and EuiPagination Emotion conversions.
Updated tests that target EuiButton to simulate click events. These tests now target a button element to prevent undefined click errors

* Updated test cases in Jest Test Suite 14. Updated snapshots to account for EuiButton Emotion conversion. Opted to use .render() when updating a few snapshots to reduce the large length of snapshots caused by Emotion

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Revised a change to betaBadgeProps to ensure that the label is available. If not, the value for the badge with be set to undefined.

* Resolved two linting errors

* Resolved two linting errors

* Updated Jest unit tests in various suites.
Updated snapshots to account for EuiButton Emotion conversion. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated EuiFlyout in query_flyout.tsx to remove the onClick function from maskProps as it is no longer available. Updated this flyout to use ownFocus and not to close when the overlay mask is clicked.

* Removed the use of EuiButtonIconColor in favor of EuiButtonIconProps['color']

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Updated Cypress test looking for strict equality on EuiPaginationButton class names to match a substring of the Emotion generated class name

* Removed unneeded debugging code. Updated snapshots for various test suites to account for the recent EuiButton Emotion conversion

* Updated a few EuiButton, EuiButtonEmpty, and EuiText components that set the color as ghost. The ghost color mode has been deprecated as of PR #6150. These components now are wrapped in EuiThemeProvider with a dark colorMode to create the previous ghost color.

* Resolved  TS error with EuiCard betaBadgeProps

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Remove references to now-removed EuiFlyout CSS classes/vars

* Remove now-removed euiBadge className references

- Convert directly to EuiBadge instead of using CSS

- Remove confusing and now-possibly-irrelevant CSS badge overrides - left/right icons are now set via JSX and not via flex-direction

* Pre-emptively fix various euiOverlayMask CSS overrides

- this data attr isn't technically in yet but will be once https://github.com/elastic/eui/pull/6289 merges

- at the very least this isn't breaking any more than it currently already is!

* Update to v67.1.3

* v67.1.4

* Resolved test failing test case in Security/Manage/Blocklist. The test did not remove focus from the last combo box in the form, which didn't allow the disbaled attribute to be removed from the flyout submit button. I've updated the mock file for Blocklist to return focus to the first form element in the flyout to allow the disabled attribute to be removed.

* Updated snapshots to account for the recent EuiText Emotion conversion

* Fix Log's custom tooltips relying on EuiTooltip classNames that no longer exist

* Fix Vega vis custom tooltips relying on EuiTooltip classNames that no longer exist

- this one is trickier than Log's as it's not using React, so we need to use Emotion's Global to set a static className

* Convert remaining vega_vis.scss to Emotion

- as an example of how other global + non global styles could be handled in the future

* Fix references to removed `euiPaginationButton-isActive` className

- use aria-current attribute instead

* Added missing EuiFlyoutAnimation keyframes for EuiFlyout. This resolved test that failed because they used onAnimationEnd because the FlyoutAnimation could not be found.

* Reolved Jest Tests in suites 1 and 5. Updated snapshots to account for the recent EuiButton Emotion conversion. Updated snapshots for EuiToolTip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles.

* iterate on rules_list.test.tsx

* bump eui to v67.1.5

* Updatde snapshots for jest test suites to account for the recent EuiButton, EuiOverlayMask, EuiTooltip, and EuiBadge Emotion conversions

* Resolved failing security test by updating the target element for CONNECTOR_TITLE. EuiCard has recently been converted to Emotion and the card title is no longer wrapper in a span.

* Resolved failing test case in Runtime Fields. The modify runtime field test was failing because the combobox responsbible for adding and updating scripts was not appearing. The textbox did not appear because the shared setFieldScript function targets and toggles the script textbox when opening the flyout. When a runtime field is being modified, the toggle is already active and using the shared function will trigger the toggle again (losing access to the script textbox).
Also resolved an issue that prevented the warning EuiCallout to appear when changing the type of a runtime field from its original type. Resolved this by adding an enter keypress at the end of setFieldType function to confirm the type selection, thus triggering the EuiCallout

* Resolved two tests that were failing in Lens. These test were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name

* Quick fix in test case failing because of misspelling in data-test-sub

* Updated snapshot for Jest test case as EuiButton as recently been converted to Emotion

* Removed console.log statement. Oops!

* Resolved a failing test case in Lens. They were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name.
Updated a Security test case by giving a target button the data-test-subj attribute for easier querying

* Removed reference to EuiFlyout mixin as it has been converted to Emotion. Updated the reference to an interal copy of EuiFlyout styles

* Corrected spelling error in EuiFlyout animation in Lens app

* Update EUI with latest backport

* Update button snapshots

* fix another button snapshot

* More snapshot fixes

* [EuiButton][Security] Fix button relying on now-removed `euiButton__text` CSS

- replace removed CSS with `eui-textTruncate` util instead

- combine/DRY out unnecessary span - was affecting min-width of truncation util

+ increase screenshot diff limit - this was smaller than updating the actual baseline screenshots for whatever reason (likely render diff between local and CI)

* Fix remaining Jest tests affected by Emotion conversions

- because Emotion creates its own wrapper, `.first()` can no longer be used - prefer `.last()` instead

* Fix Jest test affected by EuiButton Emotion conversion + removed modifier class

- targeting the native DOM node + filtering by disabled true/false gets us back to the 'correct' lengths

* Fix + improve flyout test

- `.last()` changes to account for EuiButton Emotion conversion is needed, but the last onClose assertion still fails due to us having modified inputs, and the confirm modal being displayed

- split test into two separate tests - one testing the onClose call, and the other testing the confirm modal

* derpin

* Skip rules_list Jest suite

* Update new EuiButton snapshot

* Upgraded EUI version to 67.1.7

* [EuiCard] Update snapshots

* [EuiPopover] Update snapshots

* [QA] Fix missing Vega warn/error message colors

;_;

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* Fix Lens kbnToolbarButton regressions

- Caused by flattening of EUI button CSS specificity

- background-color was previously relying on isDisabled CSS specificity to override its #fff color

- `text` color modifier & `!important` is no longer needed and overrides Emotion CSS flatly

- isDisabled class is no longer needed - euiButton no longer sets `pointer-events: none` on disabled buttons (fixes tooltip bug in webkit as well)

* Backport EUI 67.1.8 fixes

* Update EuiCard snapshots

* Fix EuiModal form wrapper causing overflow issues

- see https://elastic.github.io/eui/#/layout/modal#forms-in-a-modal

* Workaround for `.kbnOverlayMountWrapper` mount point causing overflow issues

- not sure what all is using this modal service to be honest, but the wrapper is causing issues with the modal layout, this fixes overflow issues but will not fix any mask-image issues as a result

* more snapshot updates

* EuiButton - added textProps to EuiButton to prevent very long button names from spilling over outside of the container

* EuiButton - Update EuiButton related snapshots. Updated tests that target EuiButton directly to use a data-telementary-id for more specific element querying required by Emotion

* QA - Removed unnecessary comment in code

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on security solutions' rule page

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on osquery live query and canvas's datasource selector

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fix CSS specificity, where canvas's solutionToolbarButton's background-color now takes precedence over EuiButton's primary styles

* Removed update to search_marker_tooltip that removed the euiTooltip styles and replaced then with Emotion styling. Added EuiTooltip Sass styles for the component to rely on to test for a styling bug that is causing the tooltip and the tooltip arrow to be out of sync with each other.

* Lint Sass file

* Lint Sass file

* Removed overflow:hidden style from .vgaVis_view as it was causing euiScrollStyles not to present the scroll bars in Vega Vis

* Remove typo from EuiButton textProps object. 'className' should not have been included in the actual class name

* Revert tooltip Sass

This reverts commit 20e6ead571, a5cd2de901, and c605cbd7b9

* Fix Emotion tooltip arrows

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@elastic.co>
2022-11-07 21:45:50 +00:00
Tiago Costa
e41569b4a6
fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463)
* chore(NA): remove overrides for rootDir on packages

* chore(NA): replace './target_types' with 'target_types' on packages

* chore(NA): removes stripInternal false configs

* chore(NA): remove unused strip internals
2022-11-03 01:04:55 +00:00
Yulia Čech
610f04a833
Revert "Revert "[Guided onboarding] Fix multiple API requests when fetching guide state (#144160)"" (#144459)
* Revert "Revert "[Guided onboarding] Fix multiple API requests when fetching guide state (#144160)""

This reverts commit a4445f959d.

* [Guided onboarding] Fix type errors
2022-11-02 10:57:50 -07:00
Tyler Smalley
a4445f959d Revert "[Guided onboarding] Fix multiple API requests when fetching guide state (#144160)"
This reverts commit 02a2a6a500.
2022-11-02 09:44:16 -07:00
Yulia Čech
02a2a6a500
[Guided onboarding] Fix multiple API requests when fetching guide state (#144160)
* [Guided onboarding] Fix multiple API requests when fetching guide state

* [Guided onboarding] Skip the Observability tour test if not on Cloud

* [Guided onboarding] Fix the logic for the loading const when the request fails and when the subscription unsubscribes

* [Guided onboarding] Fix the logic when a subsequent subscription was not getting the new state value

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* [Guided onboarding] Fix requests in a loop when there is no state

* [Guided onboarding] Fix the completed state not being broadcast

* [Guided onboarding] Fix types error

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-02 17:32:34 +01:00
Yulia Čech
92db69cce5
[Guided onboarding] Search guide copy (#144234)
* [Guided onboarding] Update the search guide config to use the correct copy

* [Guided onboarding] Remove the docs link, not needed in 8.6

* [Guided onboarding] Delete the step id type for the removed search step

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* [Guided onboarding] Update step description and description list

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Casey Zumwalt <casey@zumwa.lt>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Casey Zumwalt <casey@zumwa.lt>

* Update src/plugins/guided_onboarding/public/constants/guides_config/search.ts

Co-authored-by: Casey Zumwalt <casey@zumwa.lt>

* [Guided onboarding] Update the copy

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>
Co-authored-by: Casey Zumwalt <casey@zumwa.lt>
2022-11-02 07:46:31 -07:00
spalger
52f2b33a07
[auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
spalger
e5d186a6f0
[ts] stop building @types packages in bootstrap 2022-10-28 14:03:55 -05:00
Yulia Čech
460cf89d5f
[Guided onboarding] Add a config for test guide (#143973)
* [Guided onboarding] Add a guide config for testing and update the example plugin to use it instead of search

* [Guided onboarding] Update the API tests with the test guide config

* [Guided onboarding] Address CR comments

* [Guided onboarding] Delete unneeded code in examples

* Update src/plugins/guided_onboarding/public/constants/guides_config/test_guide.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2022-10-27 06:19:01 -07:00
Alison Goryachev
a0e1911370
[Guided onboarding] Add cloud checks (#143808) 2022-10-26 13:14:40 -04:00
Yulia Čech
9c0dd18577
[Guided onboarding] Landing page updates (#143194)
* [Guided onboarding] Updated landing page

* [Guided onboarding] Finished landing page changes

* [Guided onboarding] Fixed card for completed guides

* [Guided onboarding] Fixed types errors

* [Guided onboarding] Fixed i18n issues

* Update src/plugins/home/public/application/components/guided_onboarding/use_case_card.tsx

Co-authored-by: Cindy Chang  <cindyisachang@gmail.com>

* Update src/plugins/home/public/application/components/guided_onboarding/use_case_card.tsx

Co-authored-by: Cindy Chang  <cindyisachang@gmail.com>

* Update src/plugins/home/public/application/components/guided_onboarding/use_case_card.tsx

Co-authored-by: Cindy Chang  <cindyisachang@gmail.com>

* [Guided onboarding] Added CR comments

* [Guided onboarding] Added view guide button to the completed guide

* [Guided onboarding] Fixed the typo in kibana services

* [Guided onboarding] Started moving the components out of home plugin into the guided onboarding package

* [Guided onboarding] Fix the imports in the plugin

* [Guided onboarding] Fix the tests in the new package

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* [Guided onboarding] Fix the package file and the yarn.lock file

* [Guided onboarding] Fix the build

* [Guided onboarding] More refactoring

* [Guided onboarding] More refactoring

* [Guided onboarding] More refactoring

* [Guided onboarding] More refactoring of types

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* [Guided onboarding] More refactoring of types

* [Guided onboarding] Fix the types issues

* [Guided onboarding] Update the tests for the api

* [Guided onboarding] Fixed the i18n errors

* [Guided onboarding] Fixed the i18n errors

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* [Guided onboarding] Fixed the jest tests

* [Guided onboarding] Home changes

* Update packages/kbn-guided-onboarding/src/components/landing_page/observability_link_card.tsx

Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>

* [Guided onboarding] Address copy feedback

* [Guided onboarding] Address CR feedback

Co-authored-by: Cindy Chang  <cindyisachang@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kelly Murphy <kelly.murphy@elastic.co>
2022-10-20 11:36:04 +02:00