Fix: error message when accepting Travel terms#57537
Conversation
|
@shubham1206agra 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] |
Screen.Recording.2025-03-06.at.7.51.50.PM.mov |
Screen.Recording.2025-03-06.at.7.53.00.PM.mov |
Screen.Recording.2025-03-06.at.7.54.23.PM.mov |
|
@rlinoz @shubham1206agra please check the videos attached above, do let me know if there is any deviation from the expected result |
|
@rlinoz I want to increase the scope of this PR. @twilight2294 Can you please a similar fix in |
|
@shubham1206agra can you please let me know what exactly is needed? by similar fix ? I can update no issue but would need a bit more info on the conditions |
|
@twilight2294 I think the conditions are similar. We are currently checking activePolicy instead of the conditions defined in this issue. |
|
Alright 👍 , it's late for me now, I will update this tomorrow |
|
was out of office today, I will update this tomorrow |
| if (!isPaidGroupPolicy(policy)) { | ||
| if (isUserMemberOfSingleGroupPolicy) { |
There was a problem hiding this comment.
@shubham1206agra updated the requested change
There was a problem hiding this comment.
I don't think this is correct, if the user is member of a single group policy we should still ask them to select that policy as default.
We should only show the travel upgrade modal if the user has no group policies.
There was a problem hiding this comment.
Then the previous condition was correct, I updated it according to the request, here @shubham1206agra can you please address this one?
|
Hey, sorry, one new thing came up today. I was talking to @stitesExpensify and we can't really send a policy that is not the user's default, as it can cause problems in the future, i.e. the user selects a different default policy other than the one we used. So, can you update it to just show the error for when the user doesn't have a default policy, please? |
|
Hey @twilight2294 were you able to take a look at the previous comment? |
|
I was OoO most of last week, working on it today! |
|
I think that will work, and cc @Expensify/design in case you have any strong feelings about margins/spacing |
|
@twilight2294 Can you make the change please? |
|
@shawnborton @shubham1206agra , does the following work for you? Desktop: Screen.Recording.2025-03-31.at.11.10.39.PM.movMobile: Screen.Recording.2025-03-31.at.11.12.17.PM.mov |
|
@twilight2294 It's fine here. But remember under Report tab in trips empty view, the error should be above. |
Reviewer Checklist
Screenshots/Videos |
|
@shubham1206agra can you please approve this one |
|
That looks fine to me, though I maybe prefer it above the buttons? It being close to the demo buttons might feel wrong though so happy to go with this. Maybe @dannymcclain feels strongly one way or another? |
|
No strong feelings from me. I think it looks fine. It's just unfortunate how long the error message is haha. But no big deal! |
|
Yeah, true. Alright, let's just move on with that then 👍 |
|
@twilight2294 there are some conflcits, can you merge main please? @shubham1206agra can you approve then? |
|
@rlinoz I am waiting on @twilight2294 to make the change. |
|
@twilight2294 Bump here |
|
@shubham1206agra which changes are you referring too? did you mean to fix the conflicts ? |
|
I'm sorry, but I thought you needed to fix the placed error message. cc @rlinoz for confirmation |
|
From what I understood we are moving on with what we have here #57537 (comment) and here #57537 (comment) Correct me if I am wrong @dannymcclain @dubielzyk-expensify |
|
@rlinoz that's my understanding as well. |
|
@twilight2294 Can you do the fix please then? |
|
Forgot abou this one yesterday, reviewing/testing now. |
|
✋ 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/rlinoz in version: 9.1.24-2 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|







Explanation of Change
Fixed Issues
$ #57114
PROPOSAL: #57114 (comment)
Tests
Same as QA
Offline tests
Cannot test offline
QA Steps
Verify the result for the following cases:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-03-31.at.11.42.26.PM.mov
MacOS: Desktop