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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Feb 24, 2025

No description provided.

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.06 KB - -
@sentry/browser - with treeshaking flags 22.84 KB - -
@sentry/browser (incl. Tracing) 36.13 KB - -
@sentry/browser (incl. Tracing, Replay) 73.29 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.71 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 77.9 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 89.88 KB -0.67% -618 B 🔽
@sentry/browser (incl. Feedback) 39.61 KB -1.48% -606 B 🔽
@sentry/browser (incl. sendFeedback) 27.68 KB -0.01% -1 B 🔽
@sentry/browser (incl. FeedbackAsync) 32.47 KB -0.06% -17 B 🔽
@sentry/react 24.87 KB - -
@sentry/react (incl. Tracing) 38.01 KB - -
@sentry/vue 27.3 KB - -
@sentry/vue (incl. Tracing) 37.81 KB - -
@sentry/svelte 23.1 KB - -
CDN Bundle 24.26 KB - -
CDN Bundle (incl. Tracing) 36.15 KB - -
CDN Bundle (incl. Tracing, Replay) 71.15 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 76.33 KB -0.01% -5 B 🔽
CDN Bundle - uncompressed 70.93 KB - -
CDN Bundle (incl. Tracing) - uncompressed 107.31 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.57 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.1 KB -0.02% -33 B 🔽
@sentry/nextjs (client) 39.18 KB - -
@sentry/sveltekit (client) 36.54 KB - -
@sentry/node 142.09 KB - -
@sentry/node - without tracing 95.52 KB -0.01% -1 B 🔽
@sentry/aws-serverless 119.85 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.

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