-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
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] |
src/languages/en.ts
Outdated
@@ -2107,6 +2107,7 @@ export default { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we link them in the error to the place where they can update this?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
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.
What do you think about this @Gonals?
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.
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? |
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.
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 Travel
Repeat 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Only UI change is the error message in the tests