Skip to content

Commit

Permalink
feat(feedback): Revamp of user feedback screenshot editing (#15424)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
c298lee authored Feb 24, 2025
1 parent 5060542 commit c9daae0
Show file tree
Hide file tree
Showing 11 changed files with 351 additions and 691 deletions.
9 changes: 0 additions & 9 deletions packages/core/src/types-hoist/feedback/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ export interface FeedbackGeneralConfiguration {
name: string;
};

/**
* _experiments allows users to enable experimental or internal features.
* We don't consider such features as part of the public API and hence we don't guarantee semver for them.
* Experimental features can be added, changed or removed at any time.
*
* Default: undefined
*/
_experiments: Partial<{ annotations: boolean }>;

/**
* Set an object that will be merged sent as tags data with the event.
*/
Expand Down
3 changes: 0 additions & 3 deletions packages/feedback/src/core/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export const buildFeedbackIntegration = ({
email: 'email',
name: 'username',
},
_experiments = {},
tags,
styleNonce,
scriptNonce,
Expand Down Expand Up @@ -159,8 +158,6 @@ export const buildFeedbackIntegration = ({
onSubmitError,
onSubmitSuccess,
onFormSubmitted,

_experiments,
};

let _shadow: ShadowRoot | null = null;
Expand Down
91 changes: 0 additions & 91 deletions packages/feedback/src/screenshot/components/Annotations.tsx

This file was deleted.

Loading

0 comments on commit c9daae0

Please sign in to comment.