-
-
Notifications
You must be signed in to change notification settings - Fork 371
Add options to customize UserFeedback error messages #6790
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
itaybre
merged 18 commits into
main
from
itay/customizable_error_messages_user_feedback
Nov 27, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a68e432
Add new options to customize error messages
itaybre 503983f
Use new user messages in User Feedback form
itaybre 10f3976
Add custom messages for our test samples
itaybre ca7364c
Update broken test
itaybre 809059c
Update changelog
itaybre dc5f915
Update sdk_api.json
itaybre 90a23f9
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/cu…
itaybre 26c9d97
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/cu…
itaybre 1b44bc7
Update changelog
itaybre a9b1479
Apply suggestions from code review
itaybre 8ff4a70
Update changelog to reflect the new feature instead of improvement
itaybre 2f72abf
Merge branch 'main' of github.com:getsentry/sentry-cocoa into itay/cu…
itaybre 954d4af
Update changelog
itaybre d1e338d
Keep `InputError` compliant to `CustomStringConvertible`, add formCon…
itaybre 97eb5ce
Use LocalizedError
itaybre 7f75abb
Replace FormConfiguration with plain localized string
itaybre f7a3b24
Update UI tests
itaybre d868a00
Call `try XCTUnwrap` outside of XCTassertFalse autoclosure
itaybre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,7 +183,7 @@ class SentryFeedbackTests: XCTestCase { | |
| (config: (requiresName: true, requiresEmail: true, nameInput: "tester", emailInput: "[email protected]", messageInput: "Test message", includeScreenshot: true), shouldValidate: true, expectedSubmitButtonAccessibilityHint: "Will submit feedback for tester at [email protected] including attached screenshot with message: Test message.") | ||
| ] | ||
|
|
||
| func testSubmitButtonAccessibilityHint() { | ||
| func testSubmitButtonAccessibilityHint() throws { | ||
| for input in inputCombinations { | ||
| let config = SentryUserFeedbackConfiguration() | ||
| config.configureForm = { | ||
|
|
@@ -204,7 +204,8 @@ class SentryFeedbackTests: XCTestCase { | |
| XCTAssert(input.shouldValidate) | ||
| XCTAssertEqual(hint, input.expectedSubmitButtonAccessibilityHint, testCaseDescription()) | ||
| case .failure(let error): | ||
| XCTAssertFalse(input.shouldValidate, error.description + "; " + testCaseDescription()) | ||
| let errorDescription = try XCTUnwrap(error.errorDescription) | ||
| XCTAssertFalse(input.shouldValidate, errorDescription + "; " + testCaseDescription()) | ||
| } | ||
|
|
||
| } | ||
|
|
||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.