-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add satisfaction survey link to help menu #3676
Add satisfaction survey link to help menu #3676
Conversation
0887733
to
01e1d58
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #3676 +/- ##
=======================================
Coverage 66.41% 66.41%
=======================================
Files 3209 3209
Lines 61732 61733 +1
Branches 9533 9534 +1
=======================================
+ Hits 41002 41003 +1
Misses 18442 18442
Partials 2288 2288
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would want the ability to at minimum disable this feature.
The next level would be able to configure the link utilized.
cd1f61c
to
065f298
Compare
Added a config |
065f298
to
ac8f8da
Compare
4ec709f
to
b3c00de
Compare
b3c00de
to
96b86f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes requested
@@ -328,7 +332,7 @@ class HeaderHelpMenuUI extends Component<Props, State> { | |||
})} | |||
onClick={this.onMenuButtonClick} | |||
> | |||
<EuiIcon type="help" size="m" /> | |||
<EuiIcon type="questionInCircle" size="l" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you validate this icon size across various break points? If the UX guidance is to take this from m
to l
, we should also definitely update https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/core/public/chrome/ui/header/home_icon.tsx#L40-L41 and maybe check any other icons in the menu.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need confirmation from the UX team, @KrooshalUX for his help menu icon, should we make it size 'm' or 'l'? Size 'm' looks kinda small to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kgcreative @joshuarrrr For reference, the first image is size 'l' and the second image is size 'm'.
defaultMessage="Give feedback" | ||
/> | ||
</EuiButtonEmpty> | ||
{opensearchSurvey} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could just conditionally render inline:
{opensearchSurvey} | |
{ surveyLink && ( | |
<div> | |
<EuiButtonEmpty href={surveyLink} target="_blank" size="xs" flush="left"> | |
<FormattedMessage | |
id="core.ui.chrome.headerGlobalNav.helpMenuSatisfactionSurveyTitle" | |
defaultMessage="Give feedback" | |
/> | |
</EuiButtonEmpty> | |
<EuiSpacer size="xs" /> | |
</div> | |
)} |
@@ -75,6 +75,7 @@ function mockProps() { | |||
mark: { defaultUrl: '/' }, | |||
applicationTitle: 'OpenSearch Dashboards', | |||
}, | |||
survey: '/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what kind of unit tests we have for the header or help menu, but I'd expect our coverage to validate cases where the survey value is set and when it's undefined
. Looks like we only have the first path covered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no unit tests that are covering the helper menu itself. Added a test file header_help_menu.test.tsx
and added two unit tests for displaying and hiding the survey link. @joshuarrrr
Did we investigate setting the url to something like "survey.opensearch.org" so the survey endpoint can be updated via DNS? |
This would be exceptionally simple to do. Though, I would prefer some specificity in the URL so we can use the domain for other stuff too; so while the domain will be |
I like it Miki. let's do it. Any other params to append? |
3c195a9
to
1dcd22a
Compare
1dcd22a
to
607844a
Compare
Currently the cypress tests for multiple datasource are failing, added a line in |
@@ -12,7 +12,7 @@ env: | |||
START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch' | |||
OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot' | |||
SPEC: 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js,' | |||
CYPRESS_ENV: 'env CYPRESS_VISBUILDER_ENABLED=true ' | |||
CYPRESS_ENV: 'env CYPRESS_VISBUILDER_ENABLED=true,DATASOURCE_MANAGEMENT_ENABLED=false' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed once the MD cypress tests are fixed. #3843
e3f0f3e
to
04cb82c
Compare
src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx
Outdated
Show resolved
Hide resolved
Add a link to the survey under the help menu on the top navigation bar Signed-off-by: abbyhu2000 <[email protected]>
User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
Add a new config in the yml file so user can enable/disable the survey link in the helper menu. Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
04cb82c
to
df36005
Compare
* Add satisfaction survey link to help menu Add a link to the survey under the help menu on the top navigation bar Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * update snapshot Signed-off-by: abbyhu2000 <[email protected]> * modify config Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configuration Add a new config in the yml file so user can enable/disable the survey link in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <[email protected]> * change survey link to custom domain Signed-off-by: abbyhu2000 <[email protected]> * disable md cypress tests for now Signed-off-by: abbyhu2000 <[email protected]> --------- Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 685c911) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* Add satisfaction survey link to help menu (#3676) * Add satisfaction survey link to help menu Add a link to the survey under the help menu on the top navigation bar Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * update snapshot Signed-off-by: abbyhu2000 <[email protected]> * modify config Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configuration Add a new config in the yml file so user can enable/disable the survey link in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <[email protected]> * change survey link to custom domain Signed-off-by: abbyhu2000 <[email protected]> * disable md cypress tests for now Signed-off-by: abbyhu2000 <[email protected]> --------- Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 685c911) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Josh Romero <[email protected]>
* Add satisfaction survey link to help menu Add a link to the survey under the help menu on the top navigation bar Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * update snapshot Signed-off-by: abbyhu2000 <[email protected]> * modify config Signed-off-by: abbyhu2000 <[email protected]> * Make survey link configuration Add a new config in the yml file so user can enable/disable the survey link in the helper menu. Signed-off-by: abbyhu2000 <[email protected]> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <[email protected]> * change survey link to custom domain Signed-off-by: abbyhu2000 <[email protected]> * disable md cypress tests for now Signed-off-by: abbyhu2000 <[email protected]> --------- Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: David Sinclair <[email protected]>
Add a link to the survey under the help menu on the top navigation bar. Also change the helper menu UI according to issue #3521
The link can be configurable in config/opensearch_dashboards.yml
#opensearchDashboards.survey.url: "https://survey.opensearch.org"
The default is to show the survey
Give feedback
in the helper menuIf admin wishes to disable the survey, they can edit the value in
opensearch_dashboards.yml
and set:opensearchDashboards.survey.url: ""
If admin wishes to configure the survey, they can change the link in
opensearch_dashboards.yml
and set:opensearchDashboards.survey.url: "/newSurveyLink"
Issues Resolved
resolves #3521
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr