Skip to content

feat(feedback): New feedback button design #11641

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

Merged
merged 6 commits into from
Apr 24, 2024
Merged

Conversation

c298lee
Copy link
Contributor

@c298lee c298lee commented Apr 16, 2024

Updates feedback actor button with new designs. The button doesn't show the label on small viewports now.
Window over 600px:
image
Window under 600px:
image

Fixes #11541 and https://github.com/getsentry/team-replay/issues/413

@c298lee c298lee requested review from ryan953 and a team April 16, 2024 20:30
@@ -56,6 +56,12 @@ export function createActorStyles(): HTMLStyleElement {
.widget__actor__text {
}

@media (max-width: 600px) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggestions for another number for viewport boundary is welcome!

Copy link
Member

@michellewzhang michellewzhang Apr 24, 2024

Choose a reason for hiding this comment

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

looks like most mobile devices have widths < 600
only ipads have viewport widths of 700+ which means ipad users would see the big button, which is probably fine!

Copy link
Member

Choose a reason for hiding this comment

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

https://www.icwebdesign.co.uk/common-viewport-sizes looking at this very non-sus website

Copy link
Contributor

github-actions bot commented Apr 16, 2024

size-limit report 📦

Path Size
@sentry/browser 21.67 KB (0%)
@sentry/browser (incl. Tracing) 31.4 KB (0%)
@sentry/browser (incl. Tracing, Replay) 66.73 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.14 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.57 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 80.46 KB (+0.03% 🔺)
@sentry/browser (incl. Feedback) 35.27 KB (+0.06% 🔺)
@sentry/browser (incl. Feedback, Feedback Modal) 35.27 KB (+0.06% 🔺)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 37.3 KB (+0.06% 🔺)
@sentry/browser (incl. sendFeedback) 26.46 KB (0%)
@sentry/react 24.35 KB (0%)
@sentry/react (incl. Tracing) 34.31 KB (0%)
@sentry/vue 25.2 KB (0%)
@sentry/vue (incl. Tracing) 33.12 KB (0%)
@sentry/svelte 21.79 KB (0%)
CDN Bundle 24.03 KB (0%)
CDN Bundle (incl. Tracing) 32.71 KB (0%)
CDN Bundle (incl. Tracing, Replay) 66.37 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 82.59 KB (+0.03% 🔺)
CDN Bundle - uncompressed 70.85 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 97.5 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.16 KB (0%)
@sentry/nextjs (client) 33.64 KB (0%)
@sentry/sveltekit (client) 31.9 KB (0%)
@sentry/node 158.85 KB (-0.01% 🔽)

@mydea
Copy link
Member

mydea commented Apr 18, 2024

This seems fine to me, but one alternative approach that would maybe safe some bytes (and avoid adding another option) would be to just hide the text via CSS on small viewports...?

@billyvg
Copy link
Member

billyvg commented Apr 19, 2024

This seems fine to me, but one alternative approach that would maybe safe some bytes (and avoid adding another option) would be to just hide the text via CSS on small viewports...?

I'd agree with this, keeps config simpler - seems like a rare case you would want slightly shorter text on mobile. Showing only icon feels like a good default for small viewports.

@c298lee c298lee requested a review from ryan953 April 19, 2024 22:38
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.

gif

@c298lee c298lee merged commit d8831c5 into develop Apr 24, 2024
91 checks passed
@c298lee c298lee deleted the cl/feedback-button branch April 24, 2024 22:48
c298lee added a commit that referenced this pull request Apr 30, 2024
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.

User feedback show button label config
5 participants