-
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
[HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [$500] Request money - Description briefly displayed in preview after adding a receipt from a manual request #28380
Comments
Triggered auto assignment to @peterdbarkerUK ( |
Job added to Upwork: https://www.upwork.com/jobs/~01a6766bd5a43af155 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issueThe description is briefly displayed in the preview when adding a receipt from a manual request. What is the root cause of that problem?The problem comes from the
This code block is supposed to render the The problem is the OR operator between these two variables This changes as soon as What changes do you think we should make in order to solve the problem?I would create another component below the existing one where we will always render the request description like so: {!isScanning && (numberOfRequests > 1 || hasReceipts) && (
<View style={styles.flexRow}>
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20]}>
{previewSubtitle}
</Text>
</View>
</View>
)}
+{moneyRequestComment && (
+ <View style={styles.flexRow}>
+ <View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
+ <Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20]}>
+ {moneyRequestComment}
+ </Text>
+ </View>
+ </View>
)} What alternative solutions did you explore? (Optional)N/A Videosweb.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.When adding a receipt from a manual request, description is displayed for a brief moment What is the root cause of that problem?App/src/components/ReportActionItem/ReportPreview.js Lines 216 to 222 in bfda42d
As you can see above, we show previewSubtitle or moneyRequestComment (description).
Looking at the App/src/components/ReportActionItem/ReportPreview.js Lines 126 to 131 in bfda42d
The problem is in the value of App/src/pages/iou/ReceiptSelector/index.js Line 120 in bfda42d
And when we create optimistic transaction, we also set merchant to empty App/src/libs/TransactionUtils.js Line 70 in bfda42d
But when the API returns, it has merchant value: This inconsistency causes the description displayed for a brief moment What changes do you think we should make in order to solve the problem?We need to make consistent the optimistic data and API returns. Solution 1 App/src/libs/TransactionUtils.js Line 70 in bfda42d
Solution 2 Result28380.mp4What alternative solutions did you explore? (Optional) |
@ntdiary, @peterdbarkerUK Eep! 4 days overdue now. Issues have feelings too... |
Oh no, I missed this issue. I will ask on Slack if anyone has bandwidth to review this issue. 😔 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
sorry, I missed this due to travel at the weekend. BZ team review complete. |
@situchan - thanks for taking this on, what do you think of the current proposals? |
@s-alves10's proposal looks good to me. |
Triggered auto assignment to @bondydaa, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@peterdbarkerUK can you please assign me to this issue? |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Summarizing payouts for this issue: Issue reporter: @ayazhussain79 $50 (offer sent) Contributor: @s-alves10 $750 (inc urgency bonus) Contributor+: @situchan $750 (inc urgency bonus) - please complete the BZ checklist and notify me here so that I can complete the payout. |
@bondydaa, @peterdbarkerUK, @situchan, @s-alves10 Huh... This is 4 days overdue. Who can take care of this? |
@situchan could you complete the checklist? |
(Just a note for myself that ohter contribs have been paid, and contract closed) |
Regression Test Proposal
|
@peterdbarkerUK sorry for late. Can you also help with payment on #27710 please? |
@peterdbarkerUK can you please check you have ended contract on upwork without paying |
Ah shoot, my mistake @ayazhussain79 - I'd had to add you to the job and didn't correctly pay it out when closing. I'm sorry. I've sent you a new contract offer, bump me here once you've accepted it! |
@peterdbarkerUK Np, Offer accepted and thank you |
Paid, thanks Ayaz! |
@situchan I've updated the original issue, thanks for raising it and I'm sorry for the error. |
Haha one at a time! I'm working through these but being interrupted by an ongoing interview ;-) |
Paid! Leaving open so I can sort out the regression testing tomorrow. |
QA Update proposal is up, thanks everyone for the fine work! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The description should either be removed from the preview or not displayed at all
Actual Result:
The description is briefly displayed in the preview when adding a receipt from a manual request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.74-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
screen-recording-2023-09-25-at-110935-pm_hGxh7ohP.mp4
20230927_202141.mp4
Screen.Recording.2023-09-26.at.12.09.28.AM.mov
Screen.Recording.2023-09-26.at.12.05.01.AM.mov
20230926000212.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695666475040319
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @peterdbarkerUKIssue Owner
Current Issue Owner: @peterdbarkerUKThe text was updated successfully, but these errors were encountered: