-
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.
[APM] Elastic Entity Enablement (#187593)
## Summary closes 1. elastic/observability-dev#3724 (text update) 2. elastic/observability-dev#3722 (link to survey) 3. #187568 Basic workflow for enabling EEM in service inventory view The empty states will be handled in different PR - When the user clicks on "try new" we set up the builtin service entities. There is an open PR #187021 to update the definition. [1] ### with the right permissions https://github.com/elastic/kibana/assets/3369346/2d76d9ca-dc1d-417b-8f06-f2d86b75a32f ### Without the right permissions https://github.com/elastic/kibana/assets/3369346/2f2af57c-a95a-4360-b667-1eceb7229d6c ## NOTE [1] if you test this PR locally the metrics will be N/A. you need to update https://github.com/elastic/kibana/blob/bf45ddd9f4c48acea5fac61d07012110bd4f0f4b/x-pack/plugins/observability_solution/entity_manager/server/lib/entities/built_in/services.ts . Unless the PR 187021 is merged --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
- Loading branch information
1 parent
d90d7fe
commit b682833
Showing
19 changed files
with
558 additions
and
45 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
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
Binary file added
BIN
+707 KB
x-pack/plugins/observability_solution/apm/public/assets/services_inventory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
106 changes: 106 additions & 0 deletions
106
.../observability_solution/apm/public/components/shared/entity_enablement/feedback_modal.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,106 @@ | ||
/* | ||
* 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, { useContext } from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { | ||
useEuiTheme, | ||
EuiButtonEmpty, | ||
EuiConfirmModal, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiIcon, | ||
EuiPanel, | ||
EuiText, | ||
EuiTitle, | ||
} from '@elastic/eui'; | ||
import { getSurveyFeedbackURL } from '@kbn/observability-shared-plugin/public'; | ||
import { KibanaEnvironmentContext } from '../../../context/kibana_environment_context/kibana_environment_context'; | ||
import { getPathForFeedback } from '../../../utils/get_path_for_feedback'; | ||
|
||
export function FeedbackModal({ | ||
isFeedbackModalVisible = false, | ||
onClose, | ||
}: { | ||
isFeedbackModalVisible?: boolean; | ||
onClose: () => void; | ||
}) { | ||
const kibanaEnvironment = useContext(KibanaEnvironmentContext); | ||
const { kibanaVersion, isCloudEnv, isServerlessEnv } = kibanaEnvironment; | ||
const sanitizedPath = getPathForFeedback(window.location.pathname); | ||
const { euiTheme } = useEuiTheme(); | ||
|
||
return ( | ||
<> | ||
{isFeedbackModalVisible && ( | ||
<EuiConfirmModal | ||
style={{ | ||
width: '600px', | ||
}} | ||
onCancel={onClose} | ||
onConfirm={onClose} | ||
confirmButtonText={ | ||
<EuiButtonEmpty | ||
css={{ | ||
color: euiTheme.colors.emptyShade, | ||
}} | ||
data-test-subj="xpack.apm.eemFeedback.button.open" | ||
iconType="discuss" | ||
target="_blank" | ||
size="s" | ||
href={getSurveyFeedbackURL({ | ||
formUrl: 'https://ela.st/new-o11y-experience', | ||
kibanaVersion, | ||
isCloudEnv, | ||
isServerlessEnv, | ||
sanitizedPath, | ||
})} | ||
> | ||
{i18n.translate('xpack.apm.eemFeedback.button.openSurvey', { | ||
defaultMessage: 'Tell us what you think!', | ||
})} | ||
</EuiButtonEmpty> | ||
} | ||
defaultFocusedButton="confirm" | ||
> | ||
<EuiPanel hasShadow={false}> | ||
<EuiFlexGroup | ||
direction="column" | ||
justifyContent="center" | ||
alignItems="center" | ||
gutterSize="s" | ||
> | ||
<EuiFlexItem> | ||
<EuiIcon type="heart" size="l" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiTitle> | ||
<h2> | ||
{i18n.translate('xpack.apm.eemFeedback.title', { | ||
defaultMessage: 'Let us know what you think!', | ||
})} | ||
</h2> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiPanel> | ||
|
||
<EuiPanel hasShadow={false} paddingSize="s"> | ||
<EuiText grow={false} size="s"> | ||
<p> | ||
{i18n.translate('xpack.apm.feedbackModal.body.thanks', { | ||
defaultMessage: | ||
"Thank you for trying our new experience. We'll be continuing to improve on this so please come back often.", | ||
})} | ||
</p> | ||
</EuiText> | ||
</EuiPanel> | ||
</EuiConfirmModal> | ||
)} | ||
</> | ||
); | ||
} |
Oops, something went wrong.