Skip to content

Commit

Permalink
[8.x] [Inventory] Add Technical preview icon and link to docs (#196353)…
Browse files Browse the repository at this point in the history
… (#196543)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Inventory] Add Technical preview icon and link to docs
(#196353)](#196353)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Katerina","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-16T12:16:05Z","message":"[Inventory]
Add Technical preview icon and link to docs (#196353)\n\n##
Summary\r\n\r\ncloses #196264
\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","v8.16.0"],"title":"[Inventory]
Add Technical preview icon and link to
docs","number":196353,"url":"https://github.com/elastic/kibana/pull/196353","mergeCommit":{"message":"[Inventory]
Add Technical preview icon and link to docs (#196353)\n\n##
Summary\r\n\r\ncloses #196264
\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196353","number":196353,"mergeCommit":{"message":"[Inventory]
Add Technical preview icon and link to docs (#196353)\n\n##
Summary\r\n\r\ncloses #196264
\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/a8fdf896-5d55-4060-a274-d2a4188c62b2","sha":"4ac575b3b291743af5fcd70f795ca43ad805fbe7"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Katerina <[email protected]>
  • Loading branch information
kibanamachine and kpatticha authored Oct 16, 2024
1 parent 1c0f2b6 commit 2b3ff67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { i18n } from '@kbn/i18n';
import React, { useState } from 'react';
import { EntityManagerUnauthorizedError } from '@kbn/entityManager-plugin/public';
import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core/public';
import { TechnicalPreviewBadge } from '@kbn/observability-shared-plugin/public';
import { useKibana } from '../../hooks/use_kibana';
import { Unauthorized } from './unauthorized_modal';

Expand Down Expand Up @@ -57,6 +58,8 @@ export function EnableEntityModelButton({ onSuccess }: { onSuccess: () => void }
data-test-subj="inventoryInventoryPageTemplateFilledButton"
fill
onClick={handleEnablement}
iconType={() => <TechnicalPreviewBadge />}
iconSide="right"
>
{i18n.translate('xpack.inventory.noData.card.button', {
defaultMessage: 'Enable',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@ export function getEntityManagerEnablement({
description: (
<FormattedMessage
id="xpack.inventory.noData.card.description"
defaultMessage="The inventory uses the {link} to show all of your observed entities in one place."
defaultMessage="The {inventoryLink} uses the {link} to show all of your observed entities in one place."
values={{
inventoryLink: (
<EuiLink
data-test-subj="inventoryNoDataCardInventoryLink"
href="https://ela.st/docs-entity-inventory"
external
target="_blank"
>
{i18n.translate('xpack.inventory.noData.card.description.inventory', {
defaultMessage: 'Inventory',
})}
</EuiLink>
),
link: (
<EuiLink
data-test-subj="inventoryNoDataCardLink"
Expand Down

0 comments on commit 2b3ff67

Please sign in to comment.