-
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-11-01] [$500] Chat - Blank space appears with no preview or error message when corrupted file is sent #27292
Comments
Triggered auto assignment to @maddylewis ( |
Bug0 Triage Checklist (Main S/O)
|
@lanitochka17 - should i be testing this using a specific txt to pdf file? |
@maddylewis Hello |
@maddylewis Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
thanks for confirming -- reviewing again now |
Job added to Upwork: https://www.upwork.com/jobs/~01665e174bbccf204b |
Current assignee @maddylewis is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Failed PDF preview displays an empty comment. What is the root cause of that problem?When a pdf file is corrupt, the preview won't be possible which is a normal behavior of A css class is applied in both cases, when applied to the comments section it will make the text disappear pretty much.
What changes do you think we should make in order to solve the problem?First thing will be getting rid of the css class here as removing didnt affect the current behavior. the text in the attahcment modal was still centered correctly. Lines 14 to 19 in 6be8fca
Then we will need a way to allow the to distinguish both cases. We can pass a prop from
The styling of the text message can be improved to look like a message, or maybe display an error icon or something similar. What alternative solutions did you explore? (Optional)To avoid any potential regression from removing the css class .react-pdf__message we can simply create new class for the error messages, and apply them based on where the error message appears. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Blank space appears with no preview or error message when corrupted file is sent What is the root cause of that problem?We already have error handler which show the failed message on attachment modal but it's not showing here. If a PDF is correct and valid backend send us the preview of the PDF as a image and we render that image. App/src/components/PDFView/index.js Line 286 in bd6f8f7
But due to the component rendering (PDFView) because backend is not sending any html preview image we're rendering the error message but it's not appearing because of styling issues. What changes do you think we should make in order to solve the problem?We can use What alternative solutions did you explore? (Optional)NA We might need design review from expensify on how we want to show the error preview.
|
@abdel-h66's proposal looks good to me!
Im not sure if we need to display a different message in this case, 🎀👀🎀 C+ reviewed! |
Triggered auto assignment to @joelbettner, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@eVoloshchak, @joelbettner, @maddylewis Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This comment was marked as duplicate.
This comment was marked as duplicate.
PR ready @eVoloshchak ! :) |
This bug isn't present in native platforms, but while testing I discovered another bug that is specific to native platforms only Screen.Recording.2023-10-19.at.19.34.18.mov@joelbettner, should we handle this here or in a separate issue? This has a different root cause, but the bugs are related |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.90-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 2023-11-01. 🎊 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:
|
Payments
Details I have - PR merged on Oct 23 / Contributor hired on Oct 11 |
hey @abdel-h66 - will you link your Upwork profile? I need to invite you to the job, and can't locate you on Upwork. here is the job posting for reference - https://www.upwork.com/jobs/~0132e836fa8add0c70 |
Hey @maddylewis the calculations don't seem right to me, These are what I believe to be the correct ones. Please double-check and let me know :) thanks Assigned: October 11 at 11:47PM And for my freelance profile it should be this |
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@maddylewis, this doesn't seem correct |
thanks for clarifying - updated payment amounts to $500 |
offer sent @abdel-h66 ! |
@abdel-h66 - could you accept the offer i sent you in Upwork so i can process payment/close this out? ty! |
paid - #27292 (comment) |
$500 payment approved for @eVoloshchak based on this comment. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
'Uploading attachment...' is shown with error message that the attachment cannot be uploaded
Actual Result:
Attachment is uploaded but blank space appears in the chat with no preview or error message
On Android app, it shows 'Failed to load PDF file' instead of blank space
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.68-15
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
Bug6198056_20230913_014856.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: