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

[PAYMENT MAY 29][$250] Split - Expense text is missing from the preview tile when creating split expense #41010

Closed
1 of 6 tasks
lanitochka17 opened this issue Apr 25, 2024 · 26 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 25, 2024

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: 1.4.66.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #40961

Action Performed:

  1. Navigate to a group chat
  2. Do a manual split there
  3. Use the quick action button to do another split

Expected Result:

Expense text should be visible

Actual Result:

Expense text is missing from the preview tile when creating split expense. It's visible if you use the quick action button to do the same split

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6461792_1714061520908!IMG_1932

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cb074043a26909ea
  • Upwork Job ID: 1785399966337712128
  • Last Price Increase: 2024-04-30
  • Automatic offers:
    • s77rt | Reviewer | 0
    • gijoe0295 | Contributor | 0
Issue OwnerCurrent Issue Owner: @garrettmknight
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Triggered auto assignment to @slafortune (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.

@gijoe0295
Copy link
Contributor

Proposal

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

Expense text is missing from the preview tile when creating split expense. It's visible if you use the quick action button to do the same split

What is the root cause of that problem?

The Expense text is the transaction's merchant.

For quick action, we skip the confirmation screen and pass merchant as empty:

while in confirmation screen (split without quick action), merchant is (none) which was initiated here.

For the first case, merchant is eventually evaluated to Expense while kept as (none) for the second case:

merchant || Localize.translateLocal('iou.expense'),

That's why splitting through QAB has Expense merchant while normal split does not.

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

There are 2 options:

  1. Keep Expense for both cases

I think in general we fallback to Expense for bill split transactions if merchant was empty in createSplitsAndOnyxData.

merchant || Localize.translateLocal('iou.expense'),

const isMerchantEmpty = !merchant || merchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT

...

merchant: isMerchantEmpty ? Localize.translateLocal('iou.expense') : merchant
  1. Do not show Expense for both cases

That means we fallback to (none).

merchant: merchant || CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

@slafortune Eep! 4 days overdue now. Issues have feelings too...

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Apr 30, 2024
@melvin-bot melvin-bot bot changed the title Split - Expense text is missing from the preview tile when creating split expense [$250] Split - Expense text is missing from the preview tile when creating split expense Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01cb074043a26909ea

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

melvin-bot bot commented Apr 30, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Apr 30, 2024
@s77rt
Copy link
Contributor

s77rt commented May 2, 2024

@gijoe0295 Thanks for the proposal. Your RCA makes sense. Let's align on the expected behavior and discuss the solution.

🎀 👀 🎀 The expected behavior is not clear, when creating a split should we:

  1. Set the merchant to "Expense"
  2. Keep the merchant empty

Copy link

melvin-bot bot commented May 2, 2024

Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@gijoe0295
Copy link
Contributor

@thienlnam Could you check for assignment please?

Copy link

melvin-bot bot commented May 7, 2024

@slafortune, @s77rt, @thienlnam Eep! 4 days overdue now. Issues have feelings too...

@s77rt
Copy link
Contributor

s77rt commented May 7, 2024

@thienlnam Can you please check #41010 (comment)

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
Copy link

melvin-bot bot commented May 9, 2024

@slafortune @s77rt @thienlnam this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@slafortune
Copy link
Contributor

@thienlnam when you get a chance can you review the assignment?

@melvin-bot melvin-bot bot added the Overdue label May 13, 2024
Copy link

melvin-bot bot commented May 13, 2024

@slafortune, @s77rt, @thienlnam Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@thienlnam
Copy link
Contributor

Ah yes, thanks for the bump - was OOO last week

@melvin-bot melvin-bot bot removed the Overdue label May 13, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 13, 2024
@thienlnam
Copy link
Contributor

We would want to keep the merchant empty

@s77rt
Copy link
Contributor

s77rt commented May 13, 2024

@gijoe0295 Let's just change the merchant value to CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 14, 2024
@slafortune
Copy link
Contributor

This was merged yesterday -
image
That would make the payment on the 29th - looks like the title didn't update.

@s77rt - C+ Role ~ will be due $250 via Upworks
@gijoe0295 - Contributor Role ~ will be due $250 via Upworks

I'll be on vacation until June 4th so adding a BZ in the meantime.

@slafortune slafortune changed the title [$250] Split - Expense text is missing from the preview tile when creating split expense [PAYMENT MAY 29][$250] Split - Expense text is missing from the preview tile when creating split expense May 23, 2024
@slafortune slafortune removed the Bug Something is broken. Auto assigns a BugZero manager. label May 23, 2024
@slafortune slafortune removed their assignment May 23, 2024
@slafortune slafortune added the Bug Something is broken. Auto assigns a BugZero manager. label May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

Triggered auto assignment to @garrettmknight (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.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 23, 2024
@slafortune slafortune self-assigned this May 23, 2024
@slafortune slafortune added Weekly KSv2 and removed Daily KSv2 labels May 23, 2024
@garrettmknight
Copy link
Contributor

Payment Summary:
@s77rt - C+ Role - $250 paid via upwork
@gijoe0295 - Contributor Role - $250 paid via upwork

@garrettmknight
Copy link
Contributor

@s77rt can you complete the checklist when you get a chance?

@s77rt
Copy link
Contributor

s77rt commented May 30, 2024


Regression Test Proposal

  1. Click on FAB
  2. Click on Split expense
  3. Split the expense with an individual without specifying the merchant
  4. Click on the split preview
  5. Verify that the merchant field is empty
  6. Click on FAB
  7. Verify that the QAB reflects the split option
  8. Click on the QAB
  9. Verify that the split expense flow opens
  10. Submit the expense
  11. Click on the split preview
  12. Verify that the merchant field is empty

suggested test suite group

@s77rt
Copy link
Contributor

s77rt commented May 30, 2024

@garrettmknight Done! ^

@garrettmknight
Copy link
Contributor

Legend, thank you!

@garrettmknight garrettmknight added Daily KSv2 and removed Weekly KSv2 Reviewing Has a PR in review labels May 31, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jun 3, 2024
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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants