Commit ad7d3e3
fix(feedback): Fixes accessibility issue on iOS (#4739)
* Update the client implementation to use the new capture feedback js api
* Updates SDK API
* Adds new feedback button in the sample
* Adds changelog
* Removes unused mock
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Directly use captureFeedback from sentry/core
* Use import from core
* Fixes imports order lint issue
* Fixes build issue
* Adds captureFeedback tests from sentry-javascript
* Update CHANGELOG.md
* Only deprecate client captureUserFeedback
* Add simple form UI
* Adds basic form functionality
* Update imports
* Update imports
* Remove useState hook to avoid multiple react instances issues
* Move types and styles in different files
* Removes attachment button to be added back separately along with the implementation
* Add basic field validation
* Adds changelog
* Updates changelog
* Updates changelog
* Trim whitespaces from the submitted feedback
* Adds tests
* Renames FeedbackFormScreen to FeedbackForm
* Add beta label
* Extract default text to constants
* Moves constant to a separate file and aligns naming with JS
* Adds input text labels
* Close screen before sending the feedback to minimise wait time
Co-authored-by: LucasZF <[email protected]>
* Rename file for consistency
* Flatten configuration hierarchy and clean up
* Align required values with JS
* Use Sentry user email and name when set
* Simplifies email validation
* Show success alert message
* Aligns naming with JS and unmounts the form by default
* Use the minimum config without props in the changelog
* Adds development not for unimplemented function
* Show email and name conditionally
* Adds sentry branding (png logo)
* Adds sentry logo resource
* Add assets in module exports
* Revert "Add assets in module exports"
This reverts commit 5292475.
* Revert "Adds sentry logo resource"
This reverts commit d6e9229.
* Revert "Adds sentry branding (png logo)"
This reverts commit 8c56753.
* Add last event id
* Mock lastEventId
* Adds beta note in the changelog
* Autoinject feedback form
* Updates changelog
* Align colors with JS
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Update CHANGELOG.md
Co-authored-by: Krystof Woldrich <[email protected]>
* Use regular fonts for both buttons
* Handle keyboard properly
* Adds an option on whether the email should be validated
* Merge properties only once
* Loads current user data on form construction
* Remove unneeded extra padding
* Fix background color issue
* Adds feedback button
* Updates the changelog
* Fixes changelog typo
* Updates styles background color
Co-authored-by: Krystof Woldrich <[email protected]>
* Use defaultProps
* Correct defaultProps
* Adds test to verify when getUser is called
* Use smaller image
Co-authored-by: LucasZF <[email protected]>
* Add margin next to the icon
* Adds bottom spacing in the ErrorScreen so that the feedback button does not hide the scrollview buttons
* (2.2) feat: Add Feedback Form UI Branding logo (#4357)
* Adds sentry branding logo as a base64 encoded png
---------
Co-authored-by: LucasZF <[email protected]>
* Autoinject feedback form (#4370)
* Align changelog entry
* Update changelog
* Disable bouncing
* Add modal ui appearance
* Update snapshot tests
* Fix bottom margin
* Fix sheet height
* Remove extra modal border
* Do not expose modal styles
* Animate background color
* Avoid keyboard in modal
* Update changelog
* Fix changelog
* Updates comment
* Extract FeedbackButtonProps
* Add public function description to satisfy lint check
* Adds tests
* Fix tests
* Add hardcoded dark and light color themes
* Rename theme options
* Update snapshot tests
* Include in the feedback integration
* Fix circular dependency
* Add theme integration options
* Adds changelog
* Add comment note
* Align with JS api
* Remove unneeded line
Co-authored-by: Krystof Woldrich <[email protected]>
* Place widget button below the feedback widget shadow
* Expose showFeedbackButton/hideFeedbackButton methods
* Add dummy integration for tracking usage
* Adds button border
* Fixes tests
* Add accentBackground and accentForeground colors
* Extract integration getter in a helper function
* Adds dynamic theming support
* Add snapshot tests
* Show screenshot button UI
* Add screenshot button integration
* Add screenshot icon
* Adds Take a screenshot button in FeedbackWidget
* Updates snapshot tests
* Fix circularDepCheck
* Fix circularDepCheck
* Attache captured screenshot
* Hide the take screenshot button when there is a screenshot
* Convert uint8Array to Base64 on the native side
* ref(feedback): Extracts FeedbackWidgetProvider in a separate file
* Updates exposed comments
* Adds snapshot tests
* Disable functionality on the Web
* Add screenshot button in the sample expo app
* Adds system theme tests
* Test dynamically changed theme
* Remove showScreenshotButton and hideScreenshotButton from the exposed api
* Fix function name typo
* Adds enableTakeScreenshot option
* Adds happy flow test
* Make flow tests more granular
* Increate wait time out to fix flakiness on ci
* Reset widget state after each test
* Fix CI flakiness
* Remove flaky test
* fix(feedback): Fixes accessibility issue on iOS
* Add changelog
---------
Co-authored-by: Krystof Woldrich <[email protected]>
Co-authored-by: LucasZF <[email protected]>1 parent 7f8e673 commit ad7d3e3
File tree
5 files changed
+33
-15
lines changed- packages/core
- src/js/feedback
- test/feedback
- __snapshots__
5 files changed
+33
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| 239 | + | |
238 | 240 | | |
239 | 241 | | |
240 | 242 | | |
| |||
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
| 530 | + | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
| |||
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
537 | | - | |
| 540 | + | |
538 | 541 | | |
539 | 542 | | |
540 | 543 | | |
| |||
789 | 792 | | |
790 | 793 | | |
791 | 794 | | |
| 795 | + | |
792 | 796 | | |
793 | 797 | | |
794 | 798 | | |
| |||
798 | 802 | | |
799 | 803 | | |
800 | 804 | | |
801 | | - | |
| 805 | + | |
802 | 806 | | |
803 | 807 | | |
804 | 808 | | |
| |||
1116 | 1120 | | |
1117 | 1121 | | |
1118 | 1122 | | |
| 1123 | + | |
1119 | 1124 | | |
1120 | 1125 | | |
1121 | 1126 | | |
| |||
1125 | 1130 | | |
1126 | 1131 | | |
1127 | 1132 | | |
1128 | | - | |
| 1133 | + | |
1129 | 1134 | | |
1130 | 1135 | | |
1131 | 1136 | | |
| |||
1380 | 1385 | | |
1381 | 1386 | | |
1382 | 1387 | | |
| 1388 | + | |
1383 | 1389 | | |
1384 | 1390 | | |
1385 | 1391 | | |
| |||
1389 | 1395 | | |
1390 | 1396 | | |
1391 | 1397 | | |
1392 | | - | |
| 1398 | + | |
1393 | 1399 | | |
1394 | 1400 | | |
1395 | 1401 | | |
| |||
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
| 705 | + | |
705 | 706 | | |
706 | 707 | | |
707 | 708 | | |
| |||
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | | - | |
| 715 | + | |
715 | 716 | | |
716 | 717 | | |
717 | 718 | | |
| |||
1049 | 1050 | | |
1050 | 1051 | | |
1051 | 1052 | | |
| 1053 | + | |
1052 | 1054 | | |
1053 | 1055 | | |
1054 | 1056 | | |
| |||
1058 | 1060 | | |
1059 | 1061 | | |
1060 | 1062 | | |
1061 | | - | |
| 1063 | + | |
1062 | 1064 | | |
1063 | 1065 | | |
1064 | 1066 | | |
| |||
1396 | 1398 | | |
1397 | 1399 | | |
1398 | 1400 | | |
| 1401 | + | |
1399 | 1402 | | |
1400 | 1403 | | |
1401 | 1404 | | |
| |||
1405 | 1408 | | |
1406 | 1409 | | |
1407 | 1410 | | |
1408 | | - | |
| 1411 | + | |
1409 | 1412 | | |
1410 | 1413 | | |
1411 | 1414 | | |
| |||
1743 | 1746 | | |
1744 | 1747 | | |
1745 | 1748 | | |
| 1749 | + | |
1746 | 1750 | | |
1747 | 1751 | | |
1748 | 1752 | | |
| |||
1752 | 1756 | | |
1753 | 1757 | | |
1754 | 1758 | | |
1755 | | - | |
| 1759 | + | |
1756 | 1760 | | |
1757 | 1761 | | |
1758 | 1762 | | |
| |||
2090 | 2094 | | |
2091 | 2095 | | |
2092 | 2096 | | |
| 2097 | + | |
2093 | 2098 | | |
2094 | 2099 | | |
2095 | 2100 | | |
| |||
2099 | 2104 | | |
2100 | 2105 | | |
2101 | 2106 | | |
2102 | | - | |
| 2107 | + | |
2103 | 2108 | | |
2104 | 2109 | | |
2105 | 2110 | | |
| |||
2437 | 2442 | | |
2438 | 2443 | | |
2439 | 2444 | | |
| 2445 | + | |
2440 | 2446 | | |
2441 | 2447 | | |
2442 | 2448 | | |
| |||
2446 | 2452 | | |
2447 | 2453 | | |
2448 | 2454 | | |
2449 | | - | |
| 2455 | + | |
2450 | 2456 | | |
2451 | 2457 | | |
2452 | 2458 | | |
| |||
2784 | 2790 | | |
2785 | 2791 | | |
2786 | 2792 | | |
| 2793 | + | |
2787 | 2794 | | |
2788 | 2795 | | |
2789 | 2796 | | |
| |||
2793 | 2800 | | |
2794 | 2801 | | |
2795 | 2802 | | |
2796 | | - | |
| 2803 | + | |
2797 | 2804 | | |
2798 | 2805 | | |
2799 | 2806 | | |
| |||
0 commit comments