-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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) Allowing annotation via highlighting & masking #15484
Conversation
Allows you to edit screenshots with highlight and hide boxes, with the ability to delete individual boxes and resize the page. This will replace the previous cropping and pen annotation.  Related to getsentry/sentry#69786
size-limit report 📦
|
let strokeColor; | ||
const sentryFeedback = DOCUMENT.getElementById(feedbackId); | ||
if (sentryFeedback) { | ||
const computedStyle = getComputedStyle(sentryFeedback); | ||
strokeColor = | ||
computedStyle.getPropertyValue('--button-primary-background') || | ||
computedStyle.getPropertyValue('--accent-background'); | ||
} |
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.
Instead of passing in feedbackId, should probably pass in strokeColor
so that we calculate it just once
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
…e, clean up xindex/mousedown bug, refactor action/box/rect overload
default: | ||
break; |
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.
not needed because there are only two values for Action
now
Looks ready! |
Continuation of https://github.com/getsentry/sentry-javascript/pull/15424/files