mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Profiling] Adding a feedback link in Profiling (#151436)
## Summary Adding a Feedback link inside the Profiling app to allow users to provide feedback.   Related to and closes: https://github.com/elastic/prodfiler/issues/2959
This commit is contained in:
parent
88a2afbc5a
commit
c184ebf83a
1 changed files with 37 additions and 3 deletions
|
@ -5,7 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiPageHeaderContentProps } from '@elastic/eui';
|
||||
import {
|
||||
EuiBetaBadge,
|
||||
EuiButton,
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiPageHeaderContentProps,
|
||||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React, { useEffect } from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
@ -13,6 +19,8 @@ import { NoDataPageProps } from '@kbn/shared-ux-page-no-data-types';
|
|||
import { useProfilingDependencies } from '../contexts/profiling_dependencies/use_profiling_dependencies';
|
||||
import { PrimaryProfilingSearchBar } from './primary_profiling_search_bar';
|
||||
|
||||
const PROFILING_FEEDBACK_LINK = 'https://ela.st/profiling-feedback';
|
||||
|
||||
export function ProfilingAppPageTemplate({
|
||||
children,
|
||||
tabs,
|
||||
|
@ -46,8 +54,34 @@ export function ProfilingAppPageTemplate({
|
|||
<ObservabilityPageTemplate
|
||||
noDataConfig={noDataConfig}
|
||||
pageHeader={{
|
||||
pageTitle,
|
||||
tabs,
|
||||
rightSideItems: [
|
||||
<EuiButton
|
||||
href={PROFILING_FEEDBACK_LINK}
|
||||
target="_blank"
|
||||
color="warning"
|
||||
iconType="editorComment"
|
||||
>
|
||||
{i18n.translate('xpack.profiling.header.giveFeedbackLink', {
|
||||
defaultMessage: 'Give feedback',
|
||||
})}
|
||||
</EuiButton>,
|
||||
],
|
||||
pageTitle: (
|
||||
<EuiFlexGroup gutterSize="s" alignItems="baseline">
|
||||
<EuiFlexItem grow={false}>
|
||||
<h1>{pageTitle}</h1>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiBetaBadge
|
||||
label="Beta"
|
||||
color="hollow"
|
||||
tooltipContent={i18n.translate('xpack.profiling.header.betaBadgeTooltip', {
|
||||
defaultMessage: 'This module is not GA. Please help us by reporting any bugs.',
|
||||
})}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
),
|
||||
}}
|
||||
restrictWidth={restrictWidth}
|
||||
pageSectionProps={{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue