-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[CRDB-8149] Add CES survey link #68429
Conversation
Previously there was no ces survey link It is important to get feedback from clients Made a small component that will link to the ces survey Release note (ui change): A ces survey link component was added to support being able to get client feedback.
There was no link to the feedback survey Survey feedback is useful for improving the product Added a small component to open the survey Release note (ui change): added component to support survey link
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.
Reviewed 5 of 5 files at r1, 3 of 3 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @nathanstilwell and @Santamaura)
a discussion (no related file):
with only one minor nit!
pkg/ui/src/views/app/components/feedbackSurveyLink/feedbackSurveyLink.tsx, line 19 at r2 (raw file):
feedbackLink.searchParams.append("clusterVersion", singleVersion); return clusterId && singleVersion ? (
nit. I would suggest to avoid ternary operators in such cases and stick to short circuits evaluation:
if (!clusterId || !singleVersion) {
return ... // <-- exceptional, error conditions, etc
}
return ... // <-- default positive scenario
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @Santamaura)
pkg/ui/src/views/app/components/feedbackSurveyLink/feedbackSurveyLink.tsx, line 27 at r2 (raw file):
className="image-container" title="Share Feedback" dangerouslySetInnerHTML={trustIcon(externalLinkIcon)}
🤠
bors r+ |
Build succeeded: |
The goal of this PR is to create a basic component that can open a link to the CES feedback survey. The current query parameters that are passed through are
clusterId
andclusterVersion
. If there are any more query parameters that need to be included feel free to comment what they might be. The component will render empty (not able to open the survey) if for some reason we are unable to get the clusterId or clusterVersion values.Below are some screenshots showcasing the feedback survey link and what the url looks like when opened in a local dev environment:
This PR is in response to this github issue