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.78k forks source link

[HOLD for payment 2023-10-18] [Wave 6: Categories] Low: Shouldn't be able to select categories on split bill that doesn't involve workspace #26506

Closed lanitochka17 closed 10 months ago

lanitochka17 commented 1 year ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Click the + icon in announce room
  2. Select Split Bill
  3. Click on "Show More"
  4. Click on "Category"
  5. Select any category from the dropdown menu

Expected Result:

Selected category should be displayed after making selection

Actual Result:

When user click on any category there is no selection made

Workaround:

Unknown

Platforms:

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

Version Number: 1.3.61-1

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

https://github.com/Expensify/App/assets/78819774/2fb29e5b-428d-419c-bc17-6368e0cf2092

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal team

Slack conversation:

View all open jobs on GitHub

melvin-bot[bot] commented 1 year ago

Triggered auto assignment to @muttmuure (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)

BhuvaneshPatil commented 1 year ago

How do we create categories in workspace?

melvin-bot[bot] commented 1 year ago

@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick!

muttmuure commented 1 year ago

Not sure I can reproduce this without categories being live for Split bills, so I asked in the Wave 6 channel

puneetlath commented 1 year ago

The solution here is that we should only show the Category selector if one of the people you are splitting the bill with is the workspace. Even if the split is happening in the workspace room, we shouldn't show the category selector unless the workspace itself is involved in the split.

melvin-bot[bot] commented 1 year ago

@puneetlath this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

puneetlath commented 1 year ago

Dropping to weekly since this is a beta feature, so it shouldn't affect anyone. We'll handle it as a wave6 polish item.

@rezkiy37 perhaps you want to take it when you're done with the editing categories feature.

rezkiy37 commented 1 year ago

Hello, I am Mykhailo from Callstack. I would like to work on this issue.

rezkiy37 commented 1 year ago

Looks like the split bill flow is a little bit broken down. I am on the latest main and once I confirm with any kind of participants, the app has an infinity recursion. So, do we have an issue where it is already reported?

https://github.com/Expensify/App/assets/57314631/36b5ec51-bb47-47c5-8708-8acb38a84902

puneetlath commented 1 year ago

Huh, interesting. Does it work if you just choose two people and not a workspace as one of them?

rezkiy37 commented 1 year ago

@puneetlath, it does not work for me.

https://github.com/Expensify/App/assets/57314631/1083c871-b458-426d-95da-8bb525dbceb6

rezkiy37 commented 1 year ago

They just fixed the loop bug - https://github.com/Expensify/App/pull/27793.

puneetlath commented 1 year ago

Oh nice. Good find.

rezkiy37 commented 1 year ago

Hi, @puneetlath! Can I ask you: is it expected that I cannot split a bill with multiple participants, when at least one workspace selected?

https://github.com/Expensify/App/assets/57314631/ca721870-8f59-4b5e-a553-d9417fc584f8

rezkiy37 commented 1 year ago

Looks like it is expected. So, we are showing categories when selecting a workspace.

Screenshot 2023-09-20 at 12 39 34
puneetlath commented 1 year ago

Looks like yes you're right that is on purpose.

melvin-bot[bot] commented 1 year ago

@puneetlath @rezkiy37 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

rezkiy37 commented 1 year ago

I am preparing a PR - https://github.com/Expensify/App/pull/27936.

rezkiy37 commented 1 year ago

The PR is under internal review.

rezkiy37 commented 1 year ago

Melvin, the PR is actively being reviewed internally now.

melvin-bot[bot] commented 11 months ago

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

melvin-bot[bot] commented 11 months ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.80-3 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-10-18. :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.

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

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

melvin-bot[bot] commented 11 months 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:

hoangzinh commented 11 months ago

@puneetlath I'm assigned as a C+ review on this PR https://github.com/Expensify/App/pull/27936. Could you help to add me to this issue so we can trigger payment properly? Thanks

puneetlath commented 11 months ago

Thanks for letting me know. Please fill out the checklist and I'll pay on Wednesday 🙂

hoangzinh commented 11 months ago

BugZero Checklist:

hoangzinh commented 11 months ago

Regression Test Proposal

Note: the backend is not ready yet to handle categories for split bills. Also, there is no UI to verify that in a newly created split bill there is a category.

Tests

Case 1. Split bill for workspace participants with categories

  1. Click on "+" (FAB)
  2. Click on "Request Money".
  3. Click on "Split" on a participant that is a workspace and has categories.
  4. Click on "Show more".
  5. Verify that there is a "Category" field.
  6. Click on the field.
  7. Verify that you can select/deselect a category.
  8. Click on "Split".
  9. Verify that the app redirects you to a chat page with a newly created split bill.

Case 2. Split bill for regular users without categories

  1. Click on "+" (FAB).
  2. Click on "Request Money".
  3. Click on "Split" on any participant that does not have categories like a regular user.
  4. Click on "Show more".
  5. Verify that there isn't a "Category" field.
  6. Click on "Split".
  7. Verify that the app redirects you to a chat page with a newly created split bill.

Do we agree 👍 or 👎

melvin-bot[bot] commented 11 months ago

@puneetlath, @hoangzinh, @rezkiy37 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] commented 11 months ago

@puneetlath, @hoangzinh, @rezkiy37 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

puneetlath commented 11 months ago

Looks like only @hoangzinh requires payment here. Sent you an offer @hoangzinh: https://www.upwork.com/nx/wm/offer/27368549

And the back-end still needs to be updated.

hoangzinh commented 11 months ago

Accepted offer. Thanks @puneetlath

rezkiy37 commented 11 months ago

I have to inform that starting tomorrow I have a short vocation until next Monday (6.11.2023). Feel free to left any comments, I will address them. See you soon 😉

hoangzinh commented 11 months ago

cc @puneetlath on payout https://github.com/Expensify/App/issues/26506#issuecomment-1779320238

melvin-bot[bot] commented 10 months ago

@puneetlath, @hoangzinh, @rezkiy37 Huh... This is 4 days overdue. Who can take care of this?

puneetlath commented 10 months ago

Whoops, sorry for the delay @hoangzinh. Paid!