-
-
Notifications
You must be signed in to change notification settings - Fork 451
New User Feedback Widget #4450
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
New User Feedback Widget #4450
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added Scopes.captureFeedback API Changed the MainActivity sample app to use the new API
captureFeedback does not update scope lastEventId anymore
added SentryOptions.beforeSendFeedback implemented SentryClient.captureFeedback
# Conflicts: # CHANGELOG.md # sentry/api/sentry.api # sentry/src/main/java/io/sentry/SentryClient.java
added first draft of SentryUserFeedbackDialog
…idget # Conflicts: # CHANGELOG.md
added feedbackOptions to SentryOptions added callbacks to SentryUserFeedbackDialog
added feedback message truncation SentryClient doesn't check for backfillable feedbacks anymore
…idget # Conflicts: # CHANGELOG.md
added dialog theme to sample app MainActivity "send user feedback" button now opens feedback dialog instead of sending feedback
# Conflicts: # sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java # sentry/api/sentry.api # sentry/src/main/java/io/sentry/HubAdapter.java # sentry/src/main/java/io/sentry/HubScopesWrapper.java # sentry/src/main/java/io/sentry/IScopes.java # sentry/src/main/java/io/sentry/NoOpHub.java # sentry/src/main/java/io/sentry/NoOpScopes.java # sentry/src/main/java/io/sentry/Scopes.java # sentry/src/main/java/io/sentry/ScopesAdapter.java # sentry/src/main/java/io/sentry/SentryClient.java # sentry/src/main/java/io/sentry/transport/RateLimiter.java
fixed feedback form behaviour added manifest options
updated changelog
updated changelog
added delegate listener to avoid user overwriting our OnDismissListener for the feedback dialog
# Conflicts: # CHANGELOG.md
MainActivity sendFeedback reverted to call API, with new widget to open dialog Added widget ui tests
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2797e56 | 381.71 ms | 412.46 ms | 30.74 ms |
028a1a6 | 425.28 ms | 436.12 ms | 10.84 ms |
ccf0e60 | 433.57 ms | 468.52 ms | 34.95 ms |
d715551 | 409.58 ms | 436.84 ms | 27.26 ms |
3b384b2 | 487.09 ms | 575.53 ms | 88.44 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2797e56 | 1.58 MiB | 2.12 MiB | 550.08 KiB |
028a1a6 | 1.58 MiB | 2.12 MiB | 549.40 KiB |
ccf0e60 | 1.58 MiB | 2.12 MiB | 549.78 KiB |
d715551 | 1.58 MiB | 2.12 MiB | 550.08 KiB |
3b384b2 | 1.58 MiB | 2.12 MiB | 549.54 KiB |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
added SentryUserFeedbackDialog.Builder, allowing a configuration being passed for the current dialog options added SentryFeedbackOptions copy constructor
# Conflicts: # sentry-android-core/api/sentry-android-core.api # sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java
# Conflicts: # CHANGELOG.md # sentry-android-core/api/sentry-android-core.api # sentry-android-core/src/main/res/layout/sentry_dialog_user_feedback.xml # sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android/UserFeedbackUiTest.kt # sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/MainActivity.java
renamed asset files to sentry_...
markushi
approved these changes
Jun 17, 2025
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.
Looks good to me, just left a few nits around naming 😅
sentry-android-core/src/main/java/io/sentry/android/core/SentryUserFeedbackWidget.java
Outdated
Show resolved
Hide resolved
sentry-android-core/src/main/res/drawable/sentry_campaign_24.xml
Outdated
Show resolved
Hide resolved
romtsn
approved these changes
Jun 17, 2025
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.
LGTM, not for this PR but I guess we should also provide something for Compose
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
Added SentryUserFeedbackWidget, with styles and icon
MainActivity sendFeedback reverted to call API, with new widget to open dialog
Added widget ui tests
💡 Motivation and Context
Implements last part of #3613
💚 How did you test it?
UI tests
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps