fix: text disappear before modal closure#27635
Conversation
Reviewer Checklist
Screenshots/VideosWebchrome-desktop-2023-09-18_17.38.01.mp4Mobile Web - Chromeandroid-chrome.mp4Mobile Web - Safariios-native-2023-09-18_16.45.33.mp4Desktopmac-desktop-2023-09-18_16.23.10.mp4iOSios-native-2023-09-18_16.48.43.mp4Androidandroid-native.mp4 |
|
@dukenv0307 Please clarify the third test step |
|
Just noting here too that I've tested on iOS native by selecting a tiny PNG (<240 bytes) from the gallery, but no file size validation seemed to run. I don't think that's related to the changes here and think adding validation would be OOS for this PR. Since there's no validation running for native, I've just done a basic test of taking a photo/scan and submitting it. |
I uploaded an invalid text file like this, but not sure how to upload this file in native 😄 Please let me know if any concerns. |
|
@dukenv0307 For native can you just make a recording showing the normal flow (take a picture to scan)? This just validates that nothing in your changes breaks native behaviour. Also can you update the test steps according to this comment. Thanks! |
|
@jjcoffee I just updated the records for native and verified that everything works well |
|
@dukenv0307 Great, thanks! Can you also update the test steps according to #27635 (comment). |
|
@jjcoffee Updated. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.3.72-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.72-11 🚀
|
Details
Text disappears before modal closure when scanning an invalid file
Fixed Issues
$ #27274
PROPOSAL: #27274 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.3.mp4
iOS
Screen.Recording.2023-09-19.at.16.44.09.1.mp4
Android
Screen.Recording.2023-09-19.at.17.50.49.mov