forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Logs onboarding] Added give feedback button (elastic#159455)
Relates to elastic#158843. This PR adds `Give feedback` button on top of observability onboarding pages. <img width="1771" alt="image" src="https://github.com/elastic/kibana/assets/1313018/88e39ae7-c9dc-4226-bb61-a011c2b2c831">
- Loading branch information
Showing
3 changed files
with
44 additions
and
6 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
30 changes: 30 additions & 0 deletions
30
x-pack/plugins/observability_onboarding/public/components/app/header_action_menu/index.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,30 @@ | ||
/* | ||
* 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 { EuiButton } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import React from 'react'; | ||
|
||
const OBSERVABILITY_ONBOARDING_FEEDBACK_LINK = | ||
'https://ela.st/logs-onboarding-feedback'; | ||
|
||
export function ObservabilityOnboardingHeaderActionMenu() { | ||
return ( | ||
<EuiButton | ||
data-test-subj="observabilityOnboardingPageGiveFeedback" | ||
href={OBSERVABILITY_ONBOARDING_FEEDBACK_LINK} | ||
size="s" | ||
target="_blank" | ||
color="warning" | ||
iconType="editorComment" | ||
> | ||
{i18n.translate('xpack.observability_onboarding.header.feedback', { | ||
defaultMessage: 'Give feedback', | ||
})} | ||
</EuiButton> | ||
); | ||
} |
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