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

[HOLD for payment 2024-08-14] [Search v1] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable #44240

Closed
shawnborton opened this issue Jun 24, 2024 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@shawnborton
Copy link
Contributor

shawnborton commented Jun 24, 2024

For all rows on the Search page, we use a receipt thumbnail empty state with a reciept icon that has a "+" in it, insinuating that you can add a receipt. However, in cases where the expense is no longer editable and the expense does not have a receipt, we should use an icon that is less confusing to the user and indicates that no receipt is present:

CleanShot 2024-06-24 at 11 55 29@2x

The correct we need to use is here: receipt-slash.svg.zip

cc @Expensify/design @luacmartins

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015da17aa3988f430a
  • Upwork Job ID: 1805308817829198566
  • Last Price Increase: 2024-06-24
  • Automatic offers:
    • s77rt | Reviewer | 102861602
    • neonbhai | Contributor | 102861603
Issue OwnerCurrent Issue Owner: @mallenexpensify
@neonbhai
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable

What is the root cause of that problem?

This is a Feature Request.

What changes do you think we should make in order to solve the problem?

We will add the svg to the codebase and export it from our Expensicons.ts file.

When assigning a Fallback icon (shown when no receipt is present) here:

fallbackIcon={Expensicons.ReceiptPlus}

We will use a check for ReportUtils.isSettled(transactionItem.reportID) to display the new slashed receipt svg.

Additionally

We will add any other check that would detemine if the receipt should be shown

@melvin-bot melvin-bot bot added the Daily KSv2 label Jun 24, 2024
@luacmartins luacmartins self-assigned this Jun 24, 2024
@luacmartins luacmartins added NewFeature Something to build that is a new item. External Added to denote the issue can be worked on by a contributor labels Jun 24, 2024
@melvin-bot melvin-bot bot changed the title Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable [$250] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015da17aa3988f430a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Triggered auto assignment to @mallenexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@luacmartins luacmartins changed the title [$250] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable [Search v1] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable Jun 24, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 24, 2024
@s77rt
Copy link
Contributor

s77rt commented Jun 24, 2024

@neonbhai Your proposal makes sense to me. Let's get this done!

🎀 👀 🎀 C+ reviewed
Link to proposal

Copy link

melvin-bot bot commented Jun 24, 2024

Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@s77rt
Copy link
Contributor

s77rt commented Jun 24, 2024

@neonbhai

We will add any other check that would detemine if the receipt should be shown

We can follow the logic from canEditMoneyRequest which considers a money request editable if it's not approved and not settled i.e. it's:

  • OPEN
  • SUBMITTED
  • CLOSED

The CLOSED being editable may be a mistake cc @luacmartins for confirmation (are reports with STATUS_NUM=CLOSED editable?)

@luacmartins
Copy link
Contributor

luacmartins commented Jun 24, 2024

It seems like some values can be edited on a closed expense report, e.g. merchant, description, category. Other fields can't be edited on closed expense reports, e.g. date, amount, receipt

@s77rt
Copy link
Contributor

s77rt commented Jun 24, 2024

@luacmartins Thanks for checking that! Can you please assign @neonbhai if the proposal looks good to you

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jun 24, 2024

📣 @neonbhai 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@neonbhai
Copy link
Contributor

Raising PR soon!

@melvin-bot melvin-bot bot added the Overdue label Jun 27, 2024
Copy link

melvin-bot bot commented Jul 2, 2024

@s77rt, @luacmartins, @mallenexpensify, @neonbhai Huh... This is 4 days overdue. Who can take care of this?

@s77rt
Copy link
Contributor

s77rt commented Jul 2, 2024

PR is in draft status

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot removed the Weekly KSv2 label Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

This issue has not been updated in over 15 days. @s77rt, @luacmartins, @mallenexpensify, @neonbhai eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@melvin-bot melvin-bot bot added the Monthly KSv2 label Aug 7, 2024
@neonbhai
Copy link
Contributor

neonbhai commented Aug 7, 2024

PR has been merged and deployed to staging

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Aug 7, 2024
@melvin-bot melvin-bot bot changed the title [Search v1] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable [HOLD for payment 2024-08-14] [Search v1] Use different fallback receipt icon when displaying a Search row that has no receipt and isn't editable Aug 7, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Aug 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-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 2024-08-14. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Aug 7, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@s77rt] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@s77rt
Copy link
Contributor

s77rt commented Aug 11, 2024

Regression Test Proposal

  1. Go to Search
  2. In the receipt column, verify that:
    • If the report has a receipt, the receipt preview is shown
    • If the report has no receipt and is open/submitted then the "Receipt Plus" icon is shown
    • If the report has no receipt and is settled then the "Receipt Slash" icon is shown

@mallenexpensify
Copy link
Contributor

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 14, 2024
@mallenexpensify
Copy link
Contributor

Contributor: @neonbhai paid $250 via Upwork
Contributor+: @s77rt owed $250 via NewDot (automation above stating payment via Upwork in incorrect)

Thx!

@JmillsExpensify
Copy link

$250 approved for @s77rt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants