Skip to content

Commit

Permalink
Add satisfaction survey link to help menu
Browse files Browse the repository at this point in the history
Add a link to the survey under the help menu on the top navigation bar

Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 committed Mar 23, 2023
1 parent e37ac4c commit 0887733
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/public/chrome/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ export const OPENSEARCH_DASHBOARDS_FEEDBACK_LINK = 'https://github.com/opensearc
export const OPENSEARCH_DASHBOARDS_ASK_OPENSEARCH_LINK = 'https://github.com/opensearch-project';
export const GITHUB_CREATE_ISSUE_LINK =
'https://github.com/opensearch-project/OpenSearch-Dashboards/issues/new/choose';
export const SATISFACTION_SURVEY_LINK =
'https://amazonmr.au1.qualtrics.com/jfe/form/SV_1BxJNrtCo4LbweW';
15 changes: 14 additions & 1 deletion src/core/public/chrome/ui/header/header_help_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ import { ExclusiveUnion } from '@elastic/eui';
import { combineLatest } from 'rxjs';
import { HeaderExtension } from './header_extension';
import { ChromeHelpExtension } from '../../chrome_service';
import { GITHUB_CREATE_ISSUE_LINK, OPENSEARCH_DASHBOARDS_FEEDBACK_LINK } from '../../constants';
import {
GITHUB_CREATE_ISSUE_LINK,
OPENSEARCH_DASHBOARDS_FEEDBACK_LINK,
SATISFACTION_SURVEY_LINK,
} from '../../constants';

/** @public */
export type ChromeHelpExtensionMenuGitHubLink = EuiButtonEmptyProps & {
Expand Down Expand Up @@ -221,6 +225,15 @@ class HeaderHelpMenuUI extends Component<Props, State> {

<EuiSpacer size="xs" />

<EuiButtonEmpty href={SATISFACTION_SURVEY_LINK} target="_blank" size="xs" flush="left">
<FormattedMessage
id="core.ui.chrome.headerGlobalNav.helpMenuSatisfactionSurveyTitle"
defaultMessage="Satisfaction Survey"
/>
</EuiButtonEmpty>

<EuiSpacer size="xs" />

<EuiButtonEmpty
href={OPENSEARCH_DASHBOARDS_FEEDBACK_LINK}
target="_blank"
Expand Down

0 comments on commit 0887733

Please sign in to comment.