-
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
Do not make changes to IOU locally if currencies differ #12960
Conversation
@eVoloshchak @PauloGasparSv One of you needs to 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] |
lmao almost requested @vitHoracek for review 😆 |
@youssef-lr code changes look good, but let's get some screen recordings for all platforms :D Can help if you need |
@youssef-lr were we also going to add the change where we show the |
I think we're waiting for the new design and copy, I think for now this will fix the flickering issue, we can create a separate issue to handle how we show calculating state. cc @vitHoracek @JmillsExpensify what do you guys think? |
Reviewer ChecklistUpdating this checklist to make sure the check will pass, my checklist is below.
Screenshots/VideosWebWeb.movMobile Web - ChromeMobile Web - SafariiOS.Mobile.movDesktopDesktop.moviOSHad trouble with this test, couldn't fully test the offline feature and everything is buggy and flashing. I think it's a problem with my Simulator so I'll try again in a bit. Android |
@youssef-lr between steps 4 and 5 of the offline tests should there be an extra step saying to go back online? |
@PauloGasparSv you're right, updated! Thanks. |
Had some trouble with my VM while testing for Android and iOS, receiving a bunch of @mountiny @eVoloshchak feel free to merge if this gets approved, I think I'll be stuck for a while. |
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 looks good to me, but havent got around to test this right now, I will try tomorrow!
This should not be related, there is other issue for that. Testing now. |
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!
Reviewer ChecklistI have tested on all the platforms except Desktop, where the behaviour should be the same as on the web given the nature of this PR
Screenshots/VideosWebOnline pull12960webOnline.movOffline pull12960webOffline.movMobile Web - ChromeMobile Web - Safaripull12960mweb.movDesktopiOSUploading pull12960ios.mov… AndroidAppPull12926Android.mov |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Coming back from OOO. I agree with this approach. Do we have the related issue yet? |
@JmillsExpensify We have this open issue, looking into the slack discussion we came to the conclusion that we will show a |
@techievivek I think that is correct, we need to create some simple design change there too to make it look nice. The problem here I see is that the IOUPreview will get redesigned for N7 so maybe we dont want to spend too much time on this. |
🚀 Deployed to production by @luacmartins in version: 1.2.32-2 🚀
|
🚀 Deployed to production by @luacmartins in version: 1.2.32-2 🚀
|
@youssef-lr I'm seeing some sort of error from this on dev for some reason:
The Lines 43 to 44 in 96ed054
|
Interesting, let me try to reproduce #13074 and get back to you. |
Though @yuwenmemon if |
Interesting, let me try again then. |
Ah, I figured it out it's because of the migration from the |
Details
This PR will prevent any changes to be made to an IOU locally if the request create/cancelled has a different currency than the report's.
Fixed Issues
$ #12792
Online Tests
Offline Tests
QA Steps
The same steps as in the Offline and Online tests section above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting 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
have been tested & I retested again)/** 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)Screenshots/Videos
Web
Screen.Recording.2022-11-23.at.18.04.37.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android
cc @mountiny