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] Split - Split preview shows 0 instead of "Your split $0.00" when split amount is 0.00 #41752

Open
3 of 6 tasks
lanitochka17 opened this issue May 7, 2024 · 24 comments
Open
3 of 6 tasks
Assignees

Comments

@lanitochka17
Copy link

lanitochka17 commented May 7, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.71-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to group chat
  3. Go to + > Split expense
  4. Enter amount > Next
  5. Enter 0.00 amount on the first person (split creator)
  6. Split the expense
  7. Click on the split preview

Expected Result:

In Step 6, the expense preview will show "Your split $0.00"
In Step 7, the split creator under "Split amount" will show $0.00, or the split creator will not show up under the list

Actual Result:

In Step 6, the expense preview shows "0"
In step 7, the split creator shows up under "Split amount" list with no split amount (0.00) indicated

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

Bug6473649_1715080166491.split_zero.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label May 7, 2024
Copy link

melvin-bot bot commented May 7, 2024

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

Copy link
Contributor

github-actions bot commented May 7, 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.

@Nodebrute
Copy link
Contributor

Nodebrute commented May 7, 2024

Proposal

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

Split preview shows 0 instead of "Your split $0.00" when split amount is 0.00

What is the root cause of that problem?

splitShare will be 0 so instead of rendering next component react will render 0.

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

We should use a boolean value here. For example we can use isBillSplit or !!splitShare

The descriptiveText = ' ' that's why in split details we can't see amount. If we want to show $0 then we should also set descriptiveText

What alternative solutions did you explore? (Optional)

@kbecciv kbecciv added the DeployBlocker Indicates it should block deploying the API label May 7, 2024
@marcaaron
Copy link
Contributor

@youssef-lr Another one related to Splits. Off the top of my head it doesn't make a whole lot of sense to be able to "split $0" and have it say:

"You split $0.00"

So, curious if we got these steps right. Either way, new feature not a deploy blocker IMO.

@marcaaron marcaaron removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 DeployBlocker Indicates it should block deploying the API labels May 7, 2024
@marcaaron marcaaron assigned youssef-lr and unassigned nkuoch May 7, 2024
@marcaaron marcaaron added the Daily KSv2 label May 7, 2024
@youssef-lr
Copy link
Contributor

I don't think it makes sense for someone to be the payer of a split and set the amount 0 for themselves. So this seems like we should show an error in this case. I'll bring this up in Slack.

@youssef-lr
Copy link
Contributor

Will start a discussion today.

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

melvin-bot bot commented May 13, 2024

@youssef-lr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@youssef-lr
Copy link
Contributor

Haven't got to this yet, will try tomorrow

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 15, 2024
Copy link

melvin-bot bot commented May 20, 2024

@youssef-lr Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot removed the Overdue label May 21, 2024
@youssef-lr
Copy link
Contributor

I'm planning to tackle this in an ongoing PR for delegated splits as I think it's related. I think this might be a common scenario where someone pays for a bill even though they haven't ordered anything. So we should still allow them to input 0 for the amount.

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

melvin-bot bot commented May 27, 2024

@youssef-lr Eep! 4 days overdue now. Issues have feelings too...

@youssef-lr
Copy link
Contributor

No update yet

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2024
@youssef-lr youssef-lr added Weekly KSv2 and removed Daily KSv2 labels Jun 12, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jun 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Jun 20, 2024
@youssef-lr
Copy link
Contributor

No update yet

@melvin-bot melvin-bot bot removed the Overdue label Jun 21, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@youssef-lr
Copy link
Contributor

youssef-lr commented Jul 1, 2024

No update, I can't prioritize this now given vip-split is paused. Putting it on monthly.

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@youssef-lr youssef-lr added Monthly KSv2 and removed Weekly KSv2 labels Jul 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 2, 2024
@youssef-lr
Copy link
Contributor

Still paused.

@melvin-bot melvin-bot bot removed the Overdue label Aug 13, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 16, 2024
@youssef-lr
Copy link
Contributor

Same

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 21, 2024
@youssef-lr
Copy link
Contributor

Same

@melvin-bot melvin-bot bot removed the Overdue label Oct 21, 2024
@youssef-lr youssef-lr changed the title Split - Split preview shows 0 instead of "Your split $0.00" when split amount is 0.00 [HOLD] Split - Split preview shows 0 instead of "Your split $0.00" when split amount is 0.00 Oct 21, 2024
@melvin-bot melvin-bot bot added the Overdue label Nov 22, 2024
@youssef-lr
Copy link
Contributor

On hold.

@melvin-bot melvin-bot bot removed the Overdue label Nov 26, 2024
@melvin-bot melvin-bot bot added the Overdue label Dec 30, 2024
@youssef-lr
Copy link
Contributor

Same.

@melvin-bot melvin-bot bot removed the Overdue label Jan 8, 2025
@melvin-bot melvin-bot bot added the Overdue label Feb 10, 2025
@youssef-lr
Copy link
Contributor

Same

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants