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

feat(feedback): Add a mailto link, and make it easy to copy an email address in Feedback Details #68666

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Apr 10, 2024

There's a new send-email button that uses a mailto to open your email client and let you start typing.
SCR-20240410-nufl

Clicking on the name/email text will highlight all of it in blue (as shown) and copy "Josh Ferge josh.ferge@sentry.io" onto the clipboard:
SCR-20240410-nufy

It's standard format, mail clients will allow you to paste it. It's nice because it includes both parts in a well formatted structure (i generally find it's easier to remove extra bits if needed compared to having to copy+paste more often).

Also, this change makes it so if someone types the same thing into the name & email fields we'll only show it once.

Fixes https://github.com/getsentry/team-replay/issues/414

@ryan953 ryan953 requested a review from a team as a code owner April 10, 2024 22:39
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 10, 2024
Copy link

codecov bot commented Apr 10, 2024

Bundle Report

Changes will increase total bundle size by 18.33kB ⬆️

Bundle name Size Change
sentry-webpack-bundle-array-push 26.29MB 18.33kB ⬆️

@c298lee
Copy link
Member

c298lee commented Apr 11, 2024

Can we make it more obvious that you can click to copy to clipboard? Maybe a tooltip or change to the pointer cursor?

@ryan953
Copy link
Member Author

ryan953 commented Apr 11, 2024

Can we make it more obvious that you can click to copy to clipboard? Maybe a tooltip or change to the pointer cursor?

@c298lee thats a good idea, I'll put it in for sure

Copy link
Member

@michellewzhang michellewzhang left a comment

Choose a reason for hiding this comment

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

:shipit:

title: string;
value: string;
initial_priority?: number;
Copy link
Member

Choose a reason for hiding this comment

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

what's this for?

Copy link
Member Author

Choose a reason for hiding this comment

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

needed to make the types work. the real response in the browser has it so i think it was either recently added to issues, or we just missed it when we did the types the first time around.

@ryan953 ryan953 merged commit 5c60991 into master Apr 11, 2024
40 checks passed
@ryan953 ryan953 deleted the ryan953/414-copy-send-email-easier branch April 11, 2024 20:55
c298lee pushed a commit that referenced this pull request Apr 12, 2024
…address in Feedback Details (#68666)

There's a new send-email button that uses a `mailto` to open your email
client and let you start typing.
<img width="405" alt="SCR-20240410-nufl"
src="https://github.com/getsentry/sentry/assets/187460/d006f918-85d3-410a-b14f-06171c430bc5">

Clicking on the name/email text will highlight all of it in blue (as
shown) and copy "Josh Ferge <josh.ferge@sentry.io>" onto the clipboard:
<img width="320" alt="SCR-20240410-nufy"
src="https://github.com/getsentry/sentry/assets/187460/c8affee4-8dd3-4be6-acc3-d071941d52fa">

It's standard format, mail clients will allow you to paste it. It's nice
because it includes both parts in a well formatted structure (i
generally find it's easier to remove extra bits if needed compared to
having to copy+paste more often).

Also, this change makes it so if someone types the same thing into the
name & email fields we'll only show it once.


Fixes getsentry/team-replay#414
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants