-
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
fix: hold Expense option is displayed on expenses on a closed report #42574
Conversation
@nkdengineer First we need to get the English text reviewed with marketing team. Only then we have to post in the slack channel. We can do this here in the PR itself. |
@Expensify/marketing We want to display an error message when BE sends an error response to the Does the following error messages in English look good? |
Actually one question - do we know any reason for these errors, so we can tell the user what's going on and be more specific about how to fix the issue? |
@jamesdeanexpensify Well! No. We just wanted to capture any unexpected error as currently there is no error message displayed if the API request failed. |
Getting some quick internal thoughts! Back in a bit. |
Let's go with:
|
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
@rojiphil @pecanoro @jamesdeanexpensify i updated, please check again 🙏 |
I think the next step is just @pecanoro taking a look at the Spanish translations of:
|
I did already! Waiting for @rojiphil to leave a review so I can leave my final one! |
Oh! Sorry. Completely missed this. |
@pecanoro Here are the computer generated translations for the approved wordings. English: Unexpected error while holding the expense. Please try again later. English: Unexpected error while taking the expense off hold. Please try again later. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari42574-web-safari-001.mp4Android: Native42574-android-native-001.mp4Android: mWeb Chrome42574-mweb-chrome-001.mp4iOS: Native42574-ios-native-001.mp4iOS: mWeb Safari42574-mweb-safari-001.mp4MacOS: Desktop42574-desktop-001.mp4 |
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.
Code LGTM. Tests well on web platform. Looking forward to complete the checklist once the following comments are addressed.
@nkdengineer Here are few comments for addressal.
- We can remove Step 7 in the
Tests
section asHold
menu option will not be present. - Please add test cases and screenshots/videos to demonstrate display of error messages due to failure in
Hold
andUnhold
API requests.
3. While we wait for the correct translations, let us, meanwhile, use the computer generated ones as mentioned here
3rd point can be ignored as it is going to be updated anyway in the final review as mentioned here
@rojiphil For the error case that I mentioned in my proposal, we have a BE issue here. When device 1 hold a request in offline and device 2 hold the request online, after device 1 go online I think we can create a separate internal issue for this case that will return as an error API if the request is already held. cc @dangrous adc-1.mov |
I already left suggestions for the translations so we are covered in that sense |
Oh wait forget it, I though I did, but it seems I didn't |
Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
Thanks for pointing this out. I did another test which involved holding the expense offline in first device while submitting and closing the report from second device. In this case too, the So, we have two options to take this forward:
I also think 2. may be better. @dangrous Please advice 42574-hold-error.mp4 |
@dangrous I also think we should do option 2, 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.
While we await the final decision from @dangrous, I have verified that the original issue is resolved on all platforms and have completed the checklist.
However, if we go with option 1 I will rerun the checklist.
Yep, I agree - let's make a separate issue for that BE issue. Will review/merge this in one sec! |
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
Did we make the internal issue for #42574 (comment) yet? I did not, but I can shortly if not! |
We didn't. I think you can create an internal issue for it. |
Internal issue created! https://github.com/Expensify/Expensify/issues/406394 . Screenshot below for non-internal folks. ![]() |
@@ -6749,6 +6749,7 @@ function putOnHold(transactionID: string, comment: string, reportID: string) { | |||
comment: { | |||
hold: null, | |||
}, | |||
errors: ErrorUtils.getMicroSecondOnyxError('iou.genericHoldExpenseFailureMessage'), |
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.
we used the wrong path for this key causing #43279
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.
Ah, thank you!
Details
Fixed Issues
$ #42202
PROPOSAL: #42202 (comment)
Tests
Offline tests
QA Steps
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
Android: Native
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
MacOS: Desktop