-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[HOLD] Optimistically add expenses to submitted reports in Control #47602
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
[HOLD] Optimistically add expenses to submitted reports in Control #47602
Conversation
| return false; | ||
| } | ||
|
|
||
| if (isIOUReport(moneyRequestReport) && currentUserAccountID !== moneyRequestReport?.managerID && currentUserAccountID !== moneyRequestReport?.ownerAccountID) { |
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.
This is bad code form a PR I'm reverting here #47595
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.
@youssef-lr Since we just merged the other PR, can you update this branch with main to make sure everything looks right?
|
@pecanoro I think this can't be fully tested yet as it needs a Web-E PR, specifically this change. Which we can't deploy because Auth has to be deployed first, but we can't deploy Auth first because we need this App code first haha. So let's just make sure for tests here that:
|
…sing_reports_without_instant_submit
|
I'll repurpose this PR in light of this comment https://expensify.slack.com/archives/C07CACYRTJS/p1724064419177089?thread_ts=1723746687.845299&cid=C07CACYRTJS |
| return false; | ||
| } | ||
|
|
||
| if (isIOUReport(moneyRequestReport) && currentUserAccountID !== moneyRequestReport?.managerID && currentUserAccountID !== moneyRequestReport?.ownerAccountID) { |
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.
@youssef-lr Since we just merged the other PR, can you update this branch with main to make sure everything looks right?
|
Will do @pecanoro, but the changes from this PR are no longer needed, I'll push new code once Auth/Web-E deploys |
|
@youssef-lr Should we close this PR then so you can create a new one when the new changes are ready? I am not sure if you are planning to push new code here or a new PR 😄 |
|
sounds good |
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/411548#top
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
MacOS: Desktop