-
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
Prevent additional requests on settled request reports #19033
Conversation
Tests are still failing, but I think it's legit -- we are displaying options that we shouldn't. |
@mountiny @rushatgabhane 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] |
@mountiny the tests are still failing |
ios/Podfile.lock
Outdated
@@ -1135,4 +1135,4 @@ SPEC CHECKSUMS: | |||
|
|||
PODFILE CHECKSUM: 4ed1c7b099741c82e2b0411b95f6468e72be6c76 | |||
|
|||
COCOAPODS: 1.12.0 | |||
COCOAPODS: 1.11.3 |
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.
I keep getting this on main, anyone else?
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.
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.
I think we need to update cocoapods installed on our system
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.
yea an update of cocoapods fixed it
brew install cocoapods
cd ios && pod install
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.
oh nice, thank you!
|
{/* Need to confirm copy for the below with marketing, and then add to translations. */} | ||
{props.translate('reportActionsView.usePlusButton')} | ||
</Text> | ||
<Text>{props.translate('reportActionsView.usePlusButton')}</Text> |
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.
I just confirmed in slack the comment is not needed anymore
src/libs/ReportActionsUtils.js
Outdated
@@ -99,10 +99,10 @@ function getFormattedAmount(reportAction) { | |||
*/ | |||
function isTransactionThread(parentReportAction) { | |||
const originalMessage = lodashGet(parentReportAction, 'originalMessage', {}); | |||
return ( | |||
return Boolean( |
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.
NAB: @mountiny why is this change needed?
The logical operators should return a boolean anyway, right?
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.
oh nvm, just saw your comment after a page refresh https://github.com/Expensify/App/pull/19033/files#r1197091432
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.
removed
Reviewer Checklist
Screenshots/VideosMobile Web - Safari |
wasn't able to edit checklist for some reason |
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.
@jasperhuangg @mountiny LGTM!
some relevant discussion in case we look at this again in future - https://expensify.slack.com/archives/C02NK2DQWUX/p1684360467651169
…edReports Prevent additional requests on settled request reports (cherry picked from commit 55885ab)
…-19033 🍒 Cherry pick PR #19033 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.15-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
@mountiny @luacmartins
Details
Blocks users from:
Fix showing the description and amount in the send money transaction detail view
Fixed Issues
$ #19028
$ #19122
Tests
Send money flow
Offline tests
N/A
QA Steps
Run above test
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
Web
Mobile Web - Chrome
Cant sign in, not related to this PR
Mobile Web - Safari
iou report
Workspace
Desktop
transaction report
iOS
iou report
transaction
Android
iou report
DM