Skip to content
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

Expense - Receipt placeholder is blank without receipt icon when expense is deleted offline #53532

Open
8 tasks done
IuliiaHerets opened this issue Dec 4, 2024 · 19 comments
Open
8 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

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: 9.0.71-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+kh1311020@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to chat.
  3. Submit an expense.
  4. Go offline.
  5. Go to transaction thread.
  6. Click on the report header > Delete expense.
  7. Delete the expense.

Expected Result:

The receipt placeholder in the expense preview will show the receipt icon when the expense is deleted offline.

Actual Result:

The receipt placeholder in the expense preview is blank without receipt icon when the expense is deleted offline.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6683851_1733283433010.20241204_113335.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Dec 4, 2024
Copy link

melvin-bot bot commented Dec 4, 2024

Triggered auto assignment to @youssef-lr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Dec 4, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Dec 4, 2024

💬 A slack conversation has been started in #expensify-open-source

@melvin-bot melvin-bot bot added the Daily KSv2 label Dec 4, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@IuliiaHerets
Copy link
Author

Different behavior in Prod

Screen.Recording.2024-12-04.at.11.17.07.AM.mov

@shubham1206agra
Copy link
Contributor

Offending PR #52848

@brunovjk
Copy link
Contributor

brunovjk commented Dec 4, 2024

Do you have any idea what might be causing this bug @gijoe0295? I'll look into it in a moment. Thanks

@gijoe0295
Copy link
Contributor

Checking

@youssef-lr
Copy link
Contributor

any update @gijoe0295?

@puneetlath puneetlath added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 4, 2024
@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 4, 2024

@brunovjk I found the root cause but want to confirm the expected behavior before implementing the PR.

What do we want to show in receipt placeholder when the expense is deleted offline? Both in report preview & in expense preview.

  1. Empty receipt placeholder:

Screenshot 2024-12-04 at 22 49 22

  1. Nothing (current production behavior):

Screenshot 2024-12-04 at 22 48 53

cc @Expensify/design

@brunovjk
Copy link
Contributor

brunovjk commented Dec 4, 2024

I believe the first option, but @youssef-lr can you confirm it please? Thanks

@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 4, 2024

If we go with (1) then we should consider the case where there are more than 1 expense in the report and delete 1 of those offline, which would be shown in the report preview thumbnails? Hide the deleted ones or show empty placeholder for them (the deleted)?

I myself suggest (2). Because:

  • When we delete an expense WITH receipt, we also do not show anything in receipt thumbnail (option 2)
  • we clear the whole transaction data so it could be quite complicated if follow (1).

@youssef-lr
Copy link
Contributor

I like option 2 as well.

@brunovjk
Copy link
Contributor

brunovjk commented Dec 6, 2024

Thank you @youssef-lr. Do you have everything you need to raise the PR @gijoe0295? Thank you :D

@melvin-bot melvin-bot bot added the Overdue label Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

@youssef-lr, @bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@gijoe0295
Copy link
Contributor

Just need to test carefully. Will be ready tomorrow.

@bfitzexpensify
Copy link
Contributor

Great, thank you @gijoe0295

@melvin-bot melvin-bot bot removed the Overdue label Dec 10, 2024
@brunovjk
Copy link
Contributor

Any updates on the PR @gijoe0295? Thanks

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 12, 2024
@gijoe0295
Copy link
Contributor

gijoe0295 commented Dec 12, 2024

@brunovjk Here is the PR #54051.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants