-
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
[HOLD for payment 2023-09-15] HIGH: Request money - Unable to open a scanned receipt #26590
Comments
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease 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 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 here is how the code would lookconst imageSource = tryResolveUrlFromApiRoot(image);
let children;
if (thumbnail) {
const thumbnailSource = tryResolveUrlFromApiRoot(thumbnail);
children = (
<ThumbnailImage
previewSourceURL={thumbnailSource}
style={[styles.w100, styles.h100]}
isAuthTokenRequired
shouldDynamicallyResize={false}
/>
);
} else {
children = (
<Image
source={{uri: image}}
style={[styles.w100, styles.h100]}
/>
);
}
return !enablePreviewModal ? (
children
) : (
<ShowContextMenuContext.Consumer>
{({report}) => (
<PressableWithoutFocus
style={[styles.noOutline, styles.w100, styles.h100]}
onPress={() => {
const route = ROUTES.getReportAttachmentRoute(report.reportID, imageSource);
Navigation.navigate(route);
}}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
accessibilityLabel={translate('accessibilityHints.viewAttachment')}
>
{children}
</PressableWithoutFocus>
)}
</ShowContextMenuContext.Consumer>
); |
confirming in slack if this is an actual issue to solve now |
Adding this to the high bucket based on https://expensify.slack.com/archives/C057F53HR40/p1693766785919719 |
Job added to Upwork: https://www.upwork.com/jobs/~017e42c0a134392bbf |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @Ollyws ( |
@luacmartins can you take this on? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.65-7 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-09-15. 🎊 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.
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:
|
BZ checklist is complete. I think we need to pay @situchan for the PR review though |
Nice! Payment summary:
Upwork job! Please apply! |
@situchan bump on the above! 🙇♂️ |
Accepted invite. Thanks |
offer sent @situchan! |
done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #26155
Action Performed:
Expected Result:
The scanned receipt is opened
Actual Result:
Unable to open the scanned receipt. It prevents from complete smart scanning
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6186470_video_2023-09-02_14-22-55.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: