-
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
[NoQA] Optimistically update receipt state to OPEN when the request is edited #25385
Conversation
@joelbettner 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] |
@joelbettner would we be able to get to this today? We're hoping to have merged on Monday as part of our external deadline for wave4's Launch SmartScan at SaaStr! |
I can help review |
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.
@situchan I think we dont need c+ review here, thanks!
Reviewer Checklist
Screenshots/VideosSimple logic changes, no need for screenshots WebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
@Gonals there are conflicts @joelbettner would you like to give this another look? |
@@ -69,6 +69,7 @@ function buildOptimisticTransaction(amount, currency, reportID, comment = '', so | |||
function getUpdatedTransaction(transaction, transactionChanges, isFromExpenseReport) { | |||
// Only changing the first level fields so no need for deep clone now | |||
const updatedTransaction = _.clone(transaction); | |||
let shouldStopSmartscan = false; | |||
|
|||
// The comment property does not have its modifiedComment counterpart |
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 leave a comment explaining the smartscan is not stopped when Comment is changed?
@Gonals Also shouldnt the smartscan stop also when merchant is edited? this is not implemented in the App yet but its in the Auth so I can add it there
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, it should, but we still didn't have merchants when I coded this. We do need to add it to auth (and eventually here)
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.
Actually, I just added it here too. No harm in doing so.
I've also created an issue to handle it in Auth too and will fix that tomorrow: https://github.com/Expensify/Expensify/issues/309894
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.
@joelbettner, @mountiny, conflicts solved! All yours! |
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.
Thanks I will ship this 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/mountiny in version: 1.3.57-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/295246
PROPOSAL:
Tests
console.log(transaction);
here (or you can just check local storage)+ -> Request Money -> receipt
Offline tests
Same as tests
QA Steps
None, as there are no visible changes
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting 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)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
No visible changes to screenshot 🤷
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android