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-08-28] [$1000] splitting bill with phone account shows @expensify.sms #22999

Closed kavimuru closed 1 year ago

kavimuru 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. login with an sms account
  2. split bill with a few members
  3. Check the who paid field's subtitle text

    Expected Result: @expensify.sms should not be shown

Actual Result:

@expensify.sms should is shown

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

Version Number: 1.3.41-2 Reproducible in staging?: y Reproducible in production?: y 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/43996225/050219d3-c177-41b7-b2a2-92168126c7dc

Snip - (33) New Expensify - Google Chrome

Expensify/Expensify Issue URL: Issue reported by: @chiragxarora Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688810314872429

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0128597348b75205c2
  • Upwork Job ID: 1682899214742786048
  • Last Price Increase: 2023-08-05
  • Automatic offers:
    • chiragxarora | Contributor | 26071204
    • chiragxarora | Reporter | 26071208
    • situchan | Contributor | 26071280
melvin-bot[bot] commented 1 year ago

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

kavimuru commented 1 year ago

PROPOSAL

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

splitting bill with phone account shows @expensify.sms

What is the root cause of that problem?

Root cause of the issue is that in split bill flow, when we are fetching the payee's personal details by the method getIOUConfirmationOptionsFromPayeePersonalDetail, we have not formatted the text and alternate text which we end up showing in <MoneyRequestConfirmationList/> > <OptionsSelector/>

https://github.com/Expensify/App/blob/60f48175c9e3342ef192d878218820e5ed5a76cd/src/libs/OptionsListUtils.js#L878-L894

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

We need to format the alternate text and display name fields using formatPhoneNumber() method in LocalePhoneNumber util

What alternative solutions did you explore? (Optional)

We can find other inconsistencies (if any) and fix them all at once

MitchExpensify commented 1 year ago

Commented in Slack

melvin-bot[bot] commented 1 year ago

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

MitchExpensify commented 1 year ago

Confirmed @expensify.sms is not expected to be shown anywhere in app

melvin-bot[bot] commented 1 year ago

Job added to Upwork: https://www.upwork.com/jobs/~0128597348b75205c2

melvin-bot[bot] commented 1 year ago

Current assignee @MitchExpensify 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 - @0xmiroslav (External)

KrAbhas commented 1 year ago

Proposal

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

If the payee is logged in using phone number, then @expensify.sms should not be displayed while splitting bill after login id.

What is the root cause of that problem?

The login information is displayed plainly from props without formatting and as it has the format <phone number>@expensify.sms

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

In the function getIOUConfirmationOptionsFromPayeePersonalDetail we need to provide check for if there is phone number(sms) based login, then we need to format that phone number by removing @expensify.sms in another variable and then put it in alternateText. Since we may want to have a different format in which the login detail is displayed and not like the displayName, we will write a formatter for this purpose and the end result will be something like the one attached in the image. https://github.com/Expensify/App/blob/cd851d0fbd901c70a32220472104ffc887639f2a/src/libs/OptionsListUtils.js#L905-L921

Finally :

Details

Screenshot 2023-07-23 at 6 32 09 AM

What alternative solutions did you explore? (Optional)

NA

MitchExpensify commented 1 year ago

One note to the internal engineer eventually assigned - Lets double check if we're actively removing @expensify.sms from the front end or the back end across the board just to be 100% sure

MitchExpensify commented 1 year ago

Friendly reminder to review the existing proposals @0xmiroslav πŸ‘

melvin-bot[bot] commented 1 year ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

chiragxarora commented 1 year ago

@0xmiroslav pls review the proposals πŸ˜…

melvin-bot[bot] commented 1 year ago

@MitchExpensify @0xmiroslav 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!

0xmiros commented 1 year ago

reviewing now

chiragxarora commented 1 year ago

Bump: @0xmiroslav

MitchExpensify commented 1 year ago

Waiting on @0xmiroslav's review of the existing proposals, Melvin

0xmiros commented 1 year ago

@chiragxarora is this still reproducible? I am not able to repro.

chiragxarora commented 1 year ago

yes @0xmiroslav

https://github.com/Expensify/App/assets/54641656/5cc9682d-0b87-4246-a1fa-e9c5c169b889

chiragxarora commented 1 year ago

were you able to reproduce @0xmiroslav ???

melvin-bot[bot] commented 1 year ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

MitchExpensify commented 1 year ago

Friendly bump @0xmiroslav

melvin-bot[bot] commented 1 year ago

@MitchExpensify @0xmiroslav this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

MitchExpensify commented 1 year ago

Sent a friendly bump to @0xmiroslav in Slack DM for their follow up here πŸ‘

chiragxarora commented 1 year ago

@0xmiroslav !!!!!!!!!!!!

situchan commented 1 year ago

Coming from @0xmiroslav's request, I will help review as C+

situchan commented 1 year ago

I agree with @chiragxarora's proposal. So it's consistent with alternativeText in participant options:

https://github.com/Expensify/App/blob/2b3fa65df828f719a00b90a4c8825a81ee59c490/src/libs/OptionsListUtils.js#L220

πŸŽ€ πŸ‘€ πŸŽ€ C+ reviewed

melvin-bot[bot] commented 1 year ago

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

stitesExpensify commented 1 year ago

Agreed!

melvin-bot[bot] commented 1 year ago

πŸ“£ @chiragxarora πŸŽ‰ 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 πŸ“–

melvin-bot[bot] commented 1 year ago

πŸ“£ @chiragxarora πŸŽ‰ An offer has been automatically sent to your Upwork account for the Reporter role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job

situchan commented 1 year ago

@stitesExpensify can you please assign me too?

melvin-bot[bot] commented 1 year ago

πŸ“£ @situchan πŸŽ‰ 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 πŸ“–

chiragxarora commented 1 year ago

PR https://github.com/Expensify/App/pull/24441 is ready for review @situchan

melvin-bot[bot] commented 1 year ago

🎯 ⚑️ Woah @situchan / @chiragxarora, great job pushing this forwards! ⚑️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus πŸŽ‰

On to the next one πŸš€

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.55-8 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-08-28. :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 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:

MitchExpensify commented 1 year ago

Bump on the BZ steps @situchan

MitchExpensify commented 1 year ago

Payment summary:

Reporting: @chiragxarora $250 (Upwork) C: @chiragxarora $1500 (Upwork) C+: @situchan $1500 (Upwork)

MitchExpensify commented 1 year ago

Paid!

melvin-bot[bot] commented 1 year ago

@MitchExpensify, @stitesExpensify, @chiragxarora, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

situchan commented 1 year ago

Regarding BZ checklist: This is minor inconsistent display issue specific to phone users and does not affect any app logic including split bill. No need regression test.

MitchExpensify commented 1 year ago

Great, thanks for confirming @situchan - All done here!