Skip to content
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

Merged
merged 3 commits into from
Aug 5, 2021

Conversation

Santamaura
Copy link
Contributor

@Santamaura Santamaura commented Aug 4, 2021

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 and clusterVersion. 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:

image

image

This PR is in response to this github issue

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
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@koorosh koorosh left a 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: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nathanstilwell and @Santamaura)

a discussion (no related file):
:lgtm:
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

Copy link
Contributor

@nathanstilwell nathanstilwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: 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)}

🤠

@Santamaura
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 5, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants