Add satisfaction survey link to help menu#3676
Add satisfaction survey link to help menu#3676abbyhu2000 merged 8 commits intoopensearch-project:mainfrom
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. |
kavilla
left a comment
There was a problem hiding this comment.
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
joshuarrrr
left a comment
There was a problem hiding this comment.
Some minor changes requested
| onClick={this.onMenuButtonClick} | ||
| > | ||
| <EuiIcon type="help" size="m" /> | ||
| <EuiIcon type="questionInCircle" size="l" /> |
There was a problem hiding this comment.
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.
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.
@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.
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> | |
| )} |
| mark: { defaultUrl: '/' }, | ||
| applicationTitle: 'OpenSearch Dashboards', | ||
| }, | ||
| survey: '/', |
There was a problem hiding this comment.
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.
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 |
| 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.
This can be removed once the MD cypress tests are fixed. #3843
e3f0f3e to
04cb82c
Compare
Add a link to the survey under the help menu on the top navigation bar Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Add a new config in the yml file so user can enable/disable the survey link in the helper menu. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
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 <abigailhu2000@gmail.com> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * modify config Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * 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 <abigailhu2000@gmail.com> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * change survey link to custom domain Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * disable md cypress tests for now Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> (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 <abigailhu2000@gmail.com> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * modify config Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * 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 <abigailhu2000@gmail.com> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * change survey link to custom domain Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * disable md cypress tests for now Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> (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 <rmerqg@amazon.com> --------- Signed-off-by: Josh Romero <rmerqg@amazon.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Josh Romero <rmerqg@amazon.com>
* 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 <abigailhu2000@gmail.com> * Make survey link configurable User can disable the display of the survey in the helper menu. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * modify config Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * 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 <abigailhu2000@gmail.com> * address comments and add unit test for helper menu Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * change survey link to custom domain Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * disable md cypress tests for now Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: David Sinclair <david@sinclair.tech>



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 feedbackin the helper menuIf admin wishes to disable the survey, they can edit the value in

opensearch_dashboards.ymland set:opensearchDashboards.survey.url: ""If admin wishes to configure the survey, they can change the link in
opensearch_dashboards.ymland set:opensearchDashboards.survey.url: "/newSurveyLink"Issues Resolved
resolves #3521
Check List
yarn test:jestyarn test:jest_integrationyarn test:ftr