-
Notifications
You must be signed in to change notification settings - Fork 3k
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
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] |
@@ -133,7 +135,8 @@ function BaseValidateCodeForm(props) { | |||
name="validateCode" | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you confirm that there's no case of backend error coming from props.account
?
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.
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.
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 |
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
@flodnv all yours!
@@ -133,7 +135,8 @@ function BaseValidateCodeForm(props) { | |||
name="validateCode" | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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