You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-09-15] HIGH: Request money - Unable to open a scanned receipt #26590
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staff
Please re-state the problem that we are trying to solve in this issue.
We can't open the receipt image.
What is the root cause of that problem?
The receipt image is rendered by ReportActionItemImage. Currently, we can click the image only if the image has a thumbnail. If the thumbnail is null, we just render an image without pressable.
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:
[@luacmartins] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
[@luacmartins] Determine if we should create a regression test for this bug. No regression needed
[@luacmartins] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staff
Activity
melvin-bot commentedon Sep 2, 2023
Triggered auto assignment to @muttmuure (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 2, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)bernhardoj commentedon Sep 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
We can't open the receipt image.
What is the root cause of that problem?
The receipt image is rendered by ReportActionItemImage. Currently, we can click the image only if the image has a thumbnail. If the thumbnail is null, we just render an image without pressable.
App/src/components/ReportActionItem/ReportActionItemImage.js
Lines 39 to 78 in 52b1e3e
When we do a request with a receipt, the initial value of
thumbnailis null.App/src/libs/ReceiptUtils.js
Lines 43 to 46 in 52b1e3e
The BE will then return a URL to the thumbnail. So, if we test it while offline, we won't be able to click it no matter how long we wait.
What changes do you think we should make in order to solve the problem?
Wrap the
Imagewith pressable too ifenablePreviewModalis true.here is how the code would look
mountiny commentedon Sep 3, 2023
confirming in slack if this is an actual issue to solve now
[-]Request money - Unable to open a scanned receipt[/-][+]HIGH: Request money - Unable to open a scanned receipt[/+]mountiny commentedon Sep 3, 2023
Adding this to the high bucket based on https://expensify.slack.com/archives/C057F53HR40/p1693766785919719
melvin-bot commentedon Sep 4, 2023
Job added to Upwork: https://www.upwork.com/jobs/~017e42c0a134392bbf
15 remaining items
melvin-bot commentedon Sep 8, 2023
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:
luacmartins commentedon Sep 18, 2023
BZ checklist is complete. I think we need to pay @situchan for the PR review though
dylanexpensify commentedon Sep 19, 2023
Nice! Payment summary:
Upwork job! Please apply!
dylanexpensify commentedon Sep 22, 2023
@situchan bump on the above! 🙇♂️
situchan commentedon Sep 22, 2023
Accepted invite. Thanks
dylanexpensify commentedon Sep 22, 2023
offer sent @situchan!
dylanexpensify commentedon Sep 22, 2023
done!