-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Copy email with text when IOU settled message is copied #26151
Copy email with text when IOU settled message is copied #26151
Conversation
@Ollyws I noticed that we show name/email with the "Owns" message in LHN I think for consistency we should match behaviour for "Owns" and "Paid" message in LHN, i.e either show name/email for both in LHN or hide or both in LHN. Thoughts? |
@huzaifa-99 Yes I'm inclined to agree, that is inconsistent. I've asked in Slack. |
@Beamanator What do you think about this comment? I've asked on slack but no replies. |
@Ollyws, just to be clear you mean for the LHN right and not for the report message? |
Yeah in the LHN |
@Ollyws I saw some discussion on Slack suggestion fixing the other texts/msgs for IOU reports in LHN. I don't know the full list of msgs/texts there but will investigate today and update here. |
Discussion is still ongoing. I left a message in slack here. Edit: Internal engineers are busy with the new feature launch. Will ping them again in a day or 2. |
I have bumped the message in slack, will wait for the team's response. |
From the slack convo, we seem to align on showing the username in LHN for paid messages and for other messages (which we are already doing). I have updated the PR to show the payer name for paid IOU/Expense messages in LHN. cc: @Ollyws |
Updated test videos. This is ready for review again. |
src/languages/types.ts
Outdated
@@ -124,11 +124,11 @@ type WaitingOnBankAccountParams = {submitterDisplayName: string}; | |||
|
|||
type SettledAfterAddedBankAccountParams = {submitterDisplayName: string; amount: string}; | |||
|
|||
type PaidElsewhereWithAmountParams = {amount: string}; | |||
type PaidElsewhereWithAmountParams = {payer: string; amount: number}; |
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.
Why have we set this type as number
while all the others are string
?
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.
paidWithExpensifyWithAmount: ({amount}: PaidWithExpensifyWithAmountParams) => `paid ${amount} with Expensify`, | ||
paidElsewhereWithAmount: ({payer, amount}: PaidElsewhereWithAmountParams) => `${payer} paid ${amount} elsewhere`, | ||
paidUsingPaypalWithAmount: ({payer, amount}: PaidUsingPaypalWithAmountParams) => `${payer} paid ${amount} using Paypal.me`, | ||
paidWithExpensifyWithAmount: ({payer, amount}: PaidWithExpensifyWithAmountParams) => `${payer} paid ${amount} using Expensify`, |
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.
Just wondering why we're changing this from with
to using
, was that something from the slack discussion?
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.
Reviewer Checklist
Screenshots/VideosWebMacOS_Chrome.mp4Mobile Web - ChromeAndroid_Chrome.mp4Mobile Web - SafariiOS_Safari.mp4DesktopMacOS_Desktop.mp4iOSiOS_Native.mp4AndroidAndroid_Native.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.
Thanks for all your effort here @huzaifa-99!
LGTM.
Thanks so much for your efforts @Ollyws and @huzaifa-99 ! 🙏 So sorry for the delay, but I should be back and ready to help push this forward :D @huzaifa-99 again sorry for my delay, it looks like there's conflicts now 🙃 |
@Beamanator Thank you and no worries 😊. I fixed the merge conflicts. |
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
✋ 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/Beamanator in version: 1.3.72-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.72-11 🚀
|
Details
Fixed Issues
$ #25567
PROPOSAL: #25567 (comment)
Tests
Offline tests
We need to have settled a Money request report online.
QA Steps
Same as "Tests" section above
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
Chrome
Web.Chrome.mp4
Safari
Web.Safari.mp4
Mobile Web - Chrome
mWeb.Chrome.mp4
Mobile Web - Safari
mWeb.Safari.mp4
Desktop
Desktop.Native.mp4
iOS
IOS.Native.mp4
Android
Android.Native.mp4