Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.36k stars 2.79k forks source link

[HOLD for payment 2023-06-01] [$1000] Show up to 4 participant avatars in the IOUPreview for a bill split #18641

Closed Julesssss closed 1 year ago

Julesssss commented 1 year ago

Problem

We introduced the IOUPreview for bill splits https://github.com/Expensify/Expensify/issues/270707. But we are only showing one avatar in the IOUPreview when a bill split is created. Instead, we should show up to 4, or 3 if more than 4 participants are included in the split.

Current

Screenshot 2023-05-09 at 15 35 57

Desired

Screenshot 2023-05-09 at 15 34 53

In addition, we should make sure the same order is used when the split is created while offline. (So when returning online, the order shouldn't change)

Solution

Yes please.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a91334bf09c52786
  • Upwork Job ID: 1658476194782515200
  • Last Price Increase: 2023-05-16
s77rt commented 1 year ago

May be related https://github.com/Expensify/App/issues/15644

allroundexperts commented 1 year ago

Proposal

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

Show up to 4 participant avatars in IOUPreview for split bill

What is the root cause of that problem?

The root cause is that we're not using the prop shouldStackHorizontally here.

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

We need to add shouldStackHorizontally and set size prop to small. Additionally, the secondAvatarStyle prop needs to be removed. These changes need to be done here only if the isBillSplit is true.

What alternative solutions did you explore? (Optional)

None

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Triggered auto assignment to @flaviadefaria (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Current assignee @Julesssss is eligible for the External assigner, not assigning anyone new.

Julesssss commented 1 year ago

The proposal from @allroundexperts looks good to me. @aimane-chnaif would you mind reviewing this before I assign it? Thanks

aimane-chnaif commented 1 year ago

Proposal looks good to me too. @allroundexperts let's make sure order doesn't change when become online from offline And need to customize styles. It looks ugly without them:

https://github.com/Expensify/App/assets/96077027/4aa2960b-dc35-4428-ac0a-b7e22524486c

allroundexperts commented 1 year ago

Proposal looks good to me too. @allroundexperts let's make sure order doesn't change when become online from offline And need to customize styles. It looks ugly without them:

Screen.Recording.2023-05-16.at.4.26.13.PM.mov

@aimane-chnaif Sure thing.

Julesssss commented 1 year ago

Great, let's get this done

melvin-bot[bot] commented 1 year ago

📣 @allroundexperts You have been assigned to this job by @Julesssss! Please apply to this job in Upwork 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 📖

allroundexperts commented 1 year ago

PR created https://github.com/Expensify/App/pull/19074

flaviadefaria commented 1 year ago

I'm OoO for 8 days so re-adding the BUG label, but keeping myself assigned. I'll be back at work on May 30th.

melvin-bot[bot] commented 1 year ago

Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.17-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-06-01. :confetti_ball:

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.

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

melvin-bot[bot] commented 1 year ago

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:

flaviadefaria commented 1 year ago

@aimane-chnaif can you please fill out the checklist above so that I can issue payment? Thanks!

aimane-chnaif commented 1 year ago

This is not a bug bug feature request. No regression tests needed. This is part of rolling out a new feature [manual request] and comprehensive regression test will be updated for money request pages.

flaviadefaria commented 1 year ago

@allroundexperts and @aimane-chnaif I'm sending you offers in UW. $1000 + $500 bonus = $1500 total payment for each of you.

flaviadefaria commented 1 year ago

Everyone has been paid so closing this.