Fix magic code input border bottom does not turn red after receiving error from server#23101
Conversation
|
@aimane-chnaif Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| value={validateCode} | ||
| onChangeText={onTextInput} | ||
| errorText={formError.validateCode ? props.translate(formError.validateCode) : ErrorUtils.getLatestErrorMessage(props.account)} | ||
| errorText={formError.validateCode ? props.translate(formError.validateCode) : ''} |
There was a problem hiding this comment.
Do you confirm that there's no case of backend error coming from props.account?
There was a problem hiding this comment.
I checked and it's possible the backend sets an error in props.account in some edge cases, so let's keep it as it was before please
|
2 odd behaviors: Screen.Recording.2023-07-21.at.1.03.19.AM.mov
|
|
I don't think those are blockers. Going ahead checklist |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSAndroidandroid.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
LGTM
@flodnv all yours!
| value={validateCode} | ||
| onChangeText={onTextInput} | ||
| errorText={formError.validateCode ? props.translate(formError.validateCode) : ErrorUtils.getLatestErrorMessage(props.account)} | ||
| errorText={formError.validateCode ? props.translate(formError.validateCode) : ''} |
There was a problem hiding this comment.
I checked and it's possible the backend sets an error in props.account in some edge cases, so let's keep it as it was before please
|
@flodnv thanks for checking it! Added it back. |
|
@flodnv looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Hmmm, everything is passing |
|
✋ 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/flodnv in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|

Details
The magic code input on secondary login does not turn the bottom border to red when receiving an error from the server.
Fixed Issues
$ #22187
PROPOSAL: #22187 (comment)
Tests
Same as QA Steps
Offline tests
Requires internet connection
QA Steps
Prerequisite: have an unverified secondary login
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
Screen.Recording.2023-07-18.at.23.52.20.mov
Mobile Web - Chrome
Chrome.mp4
Mobile Web - Safari
Screen.Recording.2023-07-18.at.23.59.17.mov
Desktop
Screen.Recording.2023-07-19.at.00.00.55.mov
iOS
Screen.Recording.2023-07-18.at.23.57.14.mov
Android
Expensify.Chat.mp4