Prevent travel booking for SMS logins#48180
Conversation
|
@puneetlath 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] |
| tripSummary: 'Trip summary', | ||
| departs: 'Departs', | ||
| errorMessage: 'Something went wrong. Please try again later.', | ||
| phoneError: 'To book travel, your primary login must be a valid email', |
There was a problem hiding this comment.
Could we link them in the error to the place where they can update this?
There was a problem hiding this comment.
Maybe! Giving it a shot.
I'm also considering rephrasing this, as we call it "Default contact method" in newdot, istead of "primary login" like we do in oldDot. What do you think?
There was a problem hiding this comment.
Ok, it can be done, but we don't really have an existing structure for it. We could do something similar to what we do for receipt errors in DotIndicatorMessage, but it would be, basically, writing another exception for this specific error. Since we have other similar errors that don't really link anywhere, I don't think it is worth it for this case.
Thoughts?
There was a problem hiding this comment.
I think it would make for a better, more useful error message if we did. Perhaps we have a contributor do it as follow-up?
puneetlath
left a comment
There was a problem hiding this comment.
Looks good to me but I'm going to ask a C+ to review as well.
Reviewer Checklist
Screenshots/Videos |
|
@thienlnam 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] |
|
🎯 @ishpaul777, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #48289. |
|
I agree with that. @Gonals can we make that look better? |
Sure thing! Added a small margin. Updated the image in the original post
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Ready for merge @lakchote? |
thienlnam
left a comment
There was a problem hiding this comment.
Looks like Melvin did a double assignee - looks good, will ship it
|
✋ 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/thienlnam in version: 9.0.29-0 🚀
|
|
@Gonals QA team do not have Book travel option when use a phone account. Recording.3875.mp4 |
|
Your account should be in travel beta, you can add yourself temporarily by executing this in js console on web.
|
|
@ishpaul777 Works well according to your comment, but only on Web |
|
Yeah it just seems like your account is not on the beta then - otherwise looks like it passes QA |
|
@thienlnam @ishpaul777 Can you check another platforms |
|
it works well, i am also not in beta to check on staging, videos for dev env. can be found in checklist #48180 (comment) |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.29-12 🚀
|











Details
Fixed Issues
https://github.com/Expensify/Expensify/issues/423889
PROPOSAL:
Tests
+->Book Travel->Book TravelRepeat the same, but with an email as primary login. Confirm it does NOT display
Verify that no errors appear in the JS console
Offline tests
None
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Only UI change is the error message in the tests