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) Allowing annotation via highlighting & masking #15484

Merged
merged 9 commits into from
Mar 4, 2025

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Feb 24, 2025

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.

![image](https://github.com/user-attachments/assets/9cf9dbfa-b65b-47fc-8933-bafe33687eb8)

Related to getsentry/sentry#69786
@ryan953 ryan953 requested a review from a team as a code owner February 24, 2025 23:27
Copy link
Contributor

github-actions bot commented Feb 24, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.14 KB - -
@sentry/browser - with treeshaking flags 22.92 KB - -
@sentry/browser (incl. Tracing) 36.2 KB - -
@sentry/browser (incl. Tracing, Replay) 73.38 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.79 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 78 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 89.92 KB -0.72% -663 B 🔽
@sentry/browser (incl. Feedback) 39.67 KB -1.55% -638 B 🔽
@sentry/browser (incl. sendFeedback) 27.77 KB -0.01% -2 B 🔽
@sentry/browser (incl. FeedbackAsync) 32.55 KB -0.06% -18 B 🔽
@sentry/react 24.95 KB - -
@sentry/react (incl. Tracing) 38.08 KB - -
@sentry/vue 27.38 KB - -
@sentry/vue (incl. Tracing) 37.89 KB - -
@sentry/svelte 23.17 KB - -
CDN Bundle 24.34 KB - -
CDN Bundle (incl. Tracing) 36.24 KB - -
CDN Bundle (incl. Tracing, Replay) 71.25 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 76.41 KB -0.03% -17 B 🔽
CDN Bundle - uncompressed 71.13 KB - -
CDN Bundle (incl. Tracing) - uncompressed 107.51 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.78 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.31 KB -0.02% -31 B 🔽
@sentry/nextjs (client) 39.26 KB - -
@sentry/sveltekit (client) 36.62 KB - -
@sentry/node 142.15 KB - -
@sentry/node - without tracing 95.57 KB -0.01% -1 B 🔽
@sentry/aws-serverless 119.92 KB - -

View base workflow run

Comment on lines 88 to 95
let strokeColor;
const sentryFeedback = DOCUMENT.getElementById(feedbackId);
if (sentryFeedback) {
const computedStyle = getComputedStyle(sentryFeedback);
strokeColor =
computedStyle.getPropertyValue('--button-primary-background') ||
computedStyle.getPropertyValue('--accent-background');
}
Copy link
Member

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

Copy link

codecov bot commented Feb 24, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
4663 1 4662 330
View the top 1 failed test(s) by shortest run time
tedious auto instrumentation should auto-instrument `tedious` package
Stack Traces | 30.5s run time
Error: Expected envelope item type 'transaction' but got 'event'
    at newEnvelope (.../node-integration-tests/utils/runner.ts:281:21)
    at tryParseEnvelopeFromStdoutLine (.../node-integration-tests/utils/runner.ts:393:15)
    at Socket.<anonymous> (.../node-integration-tests/utils/runner.ts:411:15)
    at Socket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Socket.Readable.push (node:internal/streams/readable:392:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment on lines +100 to +101
default:
break;
Copy link
Member Author

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

@ryan953
Copy link
Member Author

ryan953 commented Mar 4, 2025

Looks ready!

@ryan953 ryan953 merged commit 9c1f79b into develop Mar 4, 2025
151 checks passed
@ryan953 ryan953 deleted the ryan953/feedback-highlight-mask branch March 4, 2025 19:45
billyvg added a commit that referenced this pull request Mar 6, 2025
billyvg added a commit that referenced this pull request Mar 6, 2025
…#15484)" (#15609)

Screenshots without annotations were not showing up properly (they are
being capture as completely transparent).

This reverts commit 9c1f79b.
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.

3 participants