-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Onboarding] Update o11y callout based on create index flow (#206817)
## Summary Update o11y callout in Create index flow based on build Flavor - Serverless vs Stack **Changes:** 1. Serverless & stack - callouts shown for both new onboarding flow and when there are indices 2. Stack - the o11y callout for "Collect & analyze logs" navigate to `/app/integrations/browse/observability` 3. Stack - the o11y callout would be "Create an Observability space" navigated to `/app/management/kibana/spaces/create` 4. FTR for stack search & classic solution & serverless https://github.com/user-attachments/assets/97f45912-8d3e-44d5-9505-508c863f6595 ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [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/src/platform/packages/shared/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 - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
- Loading branch information
1 parent
a774033
commit ee97316
Showing
7 changed files
with
187 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
..._indices/public/components/shared/create_index_panel/callout_browse_integration_stack.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import React, { useMemo } from 'react'; | ||
import { EuiButtonEmpty } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { useKibana } from '../../../hooks/use_kibana'; | ||
|
||
export const CreateIndexCalloutBrowseIntegrationBtn = () => { | ||
const { http } = useKibana().services; | ||
|
||
const analyzeLogsIntegration = useMemo(() => { | ||
return http.basePath.prepend('/app/integrations/browse/observability'); | ||
}, [http]); | ||
|
||
return ( | ||
<EuiButtonEmpty | ||
color="text" | ||
iconSide="right" | ||
iconType="popout" | ||
data-test-subj="analyzeLogsBrowseIntegrations" | ||
href={analyzeLogsIntegration} | ||
target="_blank" | ||
> | ||
{i18n.translate( | ||
'xpack.searchIndices.shared.createIndex.observabilityCallout.logs.browseIntegration.button', | ||
{ | ||
defaultMessage: 'Collect and analyze logs', | ||
} | ||
)} | ||
</EuiButtonEmpty> | ||
); | ||
}; |
35 changes: 35 additions & 0 deletions
35
...h_indices/public/components/shared/create_index_panel/callout_create_o11y_space_stack.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import React, { useMemo } from 'react'; | ||
import { EuiButtonEmpty } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { useKibana } from '../../../hooks/use_kibana'; | ||
|
||
export const CreateIndexPanelCreateO11ySpaceBtn = () => { | ||
const { http } = useKibana().services; | ||
const o11yCreateSpaceLink = useMemo(() => { | ||
return http.basePath.prepend('/app/management/kibana/spaces/create'); | ||
}, [http]); | ||
|
||
return ( | ||
<EuiButtonEmpty | ||
color="text" | ||
iconSide="right" | ||
iconType="popout" | ||
data-test-subj="createO11ySpaceBtn" | ||
href={o11yCreateSpaceLink} | ||
target="_blank" | ||
> | ||
{i18n.translate( | ||
'xpack.searchIndices.shared.createIndex.observabilityCallout.createO11ySpace.button', | ||
{ | ||
defaultMessage: 'Create an Observability space', | ||
} | ||
)} | ||
</EuiButtonEmpty> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters