-
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 2024-09-23] [$250] Search - Receipt thumbnail becomes gray & blank after changing receipt from JPG to PDF file #47387
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
We think that this bug might be related to #wave-collect - Release 1 |
@joekaufmanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Job added to Upwork: https://www.upwork.com/jobs/~0130e8b27688b14ba0 |
cc @luacmartins |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
Waiting for proposals |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search - Receipt thumbnail becomes gray & blank after changing receipt from JPG to PDF file What is the root cause of that problem?When we change the receipt to pdf file, the PDFThumbnail file doesn't handle the thumbnail image properly and seems not working, in other file like DistanceEReceipt file we use the image thumbnail for PDF provided by the BE, by invoking the App/src/components/DistanceEReceipt.tsx Line 30 in 6a9a976
App/src/components/DistanceEReceipt.tsx Line 33 in 6a9a976
But in our case we not we use the PDF file link url
What changes do you think we should make in order to solve the problem?We can use the same way used in other file i.e DistanceEReceipt So inside the What alternative solutions did you explore? (Optional)Inside the TransactionListItemRow file we can retrieve the new transaction value from the Onyx by using the current transaction id i.e |
Why is this the case? |
@luacmartins I don't know, when i see on other page like report page it showing white background seems not working |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search - Receipt thumbnail becomes gray & blank after changing receipt from JPG to PDF file What is the root cause of that problem?The component that renders the thumbnail is What changes do you think we should make in order to solve the problem?We'll need to modify this source prop to send the correct uri using the
We can apply the following logic, to check whether the file is PDF or not and pass the correct uri.
|
@Pujan92 do you expect to be able to review the new proposal today? |
@Pujan92, @luacmartins, @joekaufmanexpensify Eep! 4 days overdue now. Issues have feelings too... |
Bump @Pujan92 when you have a sec |
Sorry for the delay @joekaufmanexpensify, I will review it tomorrow. |
I see the pdf thumbnail image correctly when I revisit the page, I think Screen.Recording.2024-08-21.at.12.29.14.mov |
As an fyi, going to be OOO from tomorrow - Monday. Not adding another BZ since should be nothing BZ-related till then. Please ask in slack if something comes up! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Pujan92 Yes, when the receipt gets uploaded the file for that transaction gets updated with the new file which is a pdf. Pdf files are not rendered correctly from that Image component. In that page we get the data via a snapshot, so when you revisit that page it gets a new snapshot which internally seems to apply a similar logic(as the proposal) to pdf files, and returns the transaction with a valid uri for the thumbnail. |
@Pujan92, @luacmartins, @joekaufmanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Pujan92 @luacmartins Is any more discussion needed here before we can evaluate the proposals on the issue? |
I think my latest comment should resolve the issue, maybe we need some updated proposals to account for that. |
@Pujan92, @luacmartins, @joekaufmanexpensify Eep! 4 days overdue now. Issues have feelings too... |
Got it. Sounds good! @AlfredoAlc @NJ-2020 could you please update your proposals? |
Thanks @luacmartins. RCA from the @NJ-2020 seems incorrect as we aren't using PDFThumbnail for the 🎀👀🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @AlfredoAlc You have been assigned to this job! |
PR in review |
PR merged |
Looks like this one is due for payment but automation did not work. |
I do see the second PR. Seems like that second PR was not a regression, is that right @luacmartins |
Yea, it was a side effect but didn't cause a blocker |
Got it. TY! |
No regression penalty here then. Payment we need to issue here is:
|
@AlfredoAlc $250 sent and contract ended! |
Closing as all that's left is for @Pujan92 to request payment via NewDot. TY everyone! |
$250 approved for @Pujan92 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.20-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The receipt thumbnail in search expense list will update to show the pdf receipt.
Actual Result:
The receipt thumbnail in search expense list shows blank gray thumbnail after changing to a pdf receipt.
Workaround:
Unknown
Platforms:
Screenshots/Videos
20240814_141831.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Pujan92The text was updated successfully, but these errors were encountered: