-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2025-01-07] [$125] Add placeholder thumbnail to expenses with no receipt #52638
Comments
Job added to Upwork: https://www.upwork.com/jobs/~021857479879812113121 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Add placeholder thumbnail to expenses with no receipt What is the root cause of that problem?Improvement. What changes do you think we should make in order to solve the problem?
Note The styles shown in the result video might not be perfect, but they can be discussed and updated during the PR phase. What alternative solutions did you explore? (Optional)ResultMonosnap.screencast.2024-11-16.00-10-52.mp4 |
Edited by proposal-police: This proposal was edited at 2024-11-15 19:20:07 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?A feature request What changes do you think we should make in order to solve the problem?Change receipt placeholder iconThe second point to change receipt placeholder icon is straightforward, just change the icon in Then add the green plus icon to absolutely position like the mockup. Add placeholder thumbnail to expenses preview with no receiptNote that for this point, we must display the number of empty receipt placeholder based on the number of empty receipt transactions in the expense report. Not just one placeholder for the whole report. Currently we're filtering the last three receipts in the expense report to display their thumbnails: App/src/components/ReportActionItem/ReportPreview.tsx Lines 165 to 166 in d41a331
I'm not sure about the expected behavior here in case there're both transactions with and without receipts. I can think of 2 scenarios, given I have 2 empty and 2 receipt transactions: 1️⃣ Show most recent transactions' thumbnails regardless of whether they have receipt or not: ![]() 2️⃣ Prioritize the ones with receipts, i.e., show the receipt thumbnails as much as possible, then leave the rest with receipt placeholder: ![]()
In if (isEmptyReceipt) {
return <ReceiptEmptyState />;
}
if (!TransactionUtils.hasReceipt(transaction)) {
return {isEmptyReceipt: true};
} Branch: main...gijoe0295:App:gijoe/52638 |
Thank you all for the proposals. @Krishna2323, your suggestion to update the icon is noted, but I didn’t see any mention of displaying placeholder thumbnails for expenses without receipts, which is a key part of the solution. @gijoe0295, your proposal seems to cover everything we need. Could you list the details that need confirmation before moving forward to the PR? I believe the main thing left is the Quick tests on gijoe0295's branchScreen.Recording.2024-11-18.at.11.19.00.movWith that, I believe we can proceed with @gijoe0295's proposal. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Here's the green circle svg:
Personally I think it makes sense to keep them in chronological order (option 1). But if others feel strongly that option 2 is better that's fine with me. |
@dannymcclain One last thing 😄: Will this number here only accounts for the transactions with receipts (current behavior), or the ones without receipts as well (as shown in the below image)? |
I think now that every expense has a thumbnail, it should account for ALL transactions. cc @Expensify/design for a gut check on that one (and to weigh in on the order of receipt thumbnails implementation). |
Agree. To me that number indicates how many extra expenses are beyond the thumbnail previews. So 3 + 2 = 5 in that instance. I think that should be the same regardless of whether there's a receipt or not. |
Totally agree with that as well. Also wanted to cc @grgia too for vis since I believe you were the one that implemented that feature. |
Also very much agree with this statement. |
@shawnborton @JmillsExpensify @dubielzyk-expensify From what I recall, the rule was: Since we're adding receipt thumbnails, we can use the same number for both, or remove one of these entirely as it's the same info |
📣 @brunovjk 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @gijoe0295 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I think @gijoe0295's proposal should work, going to assign them first. We can work out any design details in the PR review. |
Not overdue. Thank you @jasperhuangg. @gijoe0295, no rush on my part, but do you have an ETA for it? Thank you! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.71-2 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 2024-12-12. 🎊 For reference, here are some details about the assignees on this issue:
|
@gijoe0295 is raising the PR to resolve the regression. Should we wait before filling out the BZ checklist and proceeding with payment? |
Issue is ready for payment but no BZ is assigned. @garrettmknight you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
Upwork job price has been updated to $125 |
Update: PR under review |
Update: PR still under review. |
@garrettmknight, @dannymcclain, @jasperhuangg, @brunovjk, @gijoe0295 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Both PRs went to production: |
@brunovjk please complete the checklist when you get a chance. |
Will wait the day before payment, is that ok? Thanks |
@garrettmknight, @dannymcclain, @jasperhuangg, @brunovjk, @gijoe0295 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This comment was marked as outdated.
This comment was marked as outdated.
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:Test 1:
Test 2:
Do we agree 👍 or 👎 |
Summary: We raised a PR to implement the Improvement. We found a blocker, which was handled by the original contributor in the following PR. In this second PR, we made changes to fit the changed files into the "no-default-id-values" rule, therefore, we had another blocker, which was handled by another contributor, @nkdengineer, here. |
All paid up! |
Problem
Expenses that don’t have an attached receipt (or eReceipt/map preview) look much different than expenses that do. This can lead to confusion especially for report previews that have a mix of expenses with and without a receipt image.
Solution
Coming from this thread, let’s add a placeholder thumbnail to expense previews that don't have any type of receipt so they more closely match our other expense previews (receipt image, eReceipt, and map preview). We can reuse styles from other preview placeholders and create a nice, consistent preview for all expenses.
Additionally, let’s update the “add receipt placeholder” on the expense view to more closely match the thumbnail presented on the preview.
Figma file
cc @Expensify/design
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: