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

[$250] Share code - For split expense, share code is showing E logo in center of QR code. #40546

Closed
3 of 6 tasks
izarutskaya opened this issue Apr 19, 2024 · 19 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 19, 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.63-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Launch app
  2. Tap on a report
  3. Tap plus icon -- split expense--manual
  4. Enter an amount and tap split
  5. Open the iou preview
  6. Tap on header --- share code

Expected Result:

On split expense, in iou details page, share code must show avatar in center of QR code and must not show E logo.

Actual Result:

On split expense, in iou details page, share code is not showing avatar in center of QR code instead showing E logo.

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

Bug6454495_1713500832080.split.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d4d48d347af843c9
  • Upwork Job ID: 1781311072111943680
  • Last Price Increase: 2024-04-19
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

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

Copy link

melvin-bot bot commented Apr 19, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 19, 2024
Copy link
Contributor

👋 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.

@izarutskaya
Copy link
Author

@strepanier03 I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

izarutskaya commented Apr 19, 2024

We think this issue might be related to the #vip-vsb.

@izarutskaya
Copy link
Author

Production

20240419_131344.mp4

@grgia grgia added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 19, 2024
@melvin-bot melvin-bot bot changed the title Share code - For split expense, share code is showing E logo in center of QR code. [$250] Share code - For split expense, share code is showing E logo in center of QR code. Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

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

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

melvin-bot bot commented Apr 19, 2024

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

@grgia
Copy link
Contributor

grgia commented Apr 19, 2024

Not a deploy blocker, though I'm not actually sure if this is technically a bug

@shahinyan11
Copy link

shahinyan11 commented Apr 19, 2024

Proposal

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

Share code - For split expense, share code is showing E logo in center of QR code.

What is the root cause of that problem?

Here we always show the Expensify icon if report exists

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

There is no exact information in which cases the Expensify icon should be displayed and in which user avatar. But i suggest to make below changes.

  1. Since in there is not enough information whether the current report is split expenses or not we should try to get the required information from parentReportAction. But in this case, paentReportAction is a preview for the previous reportAction and also does not contain this information. And that's why we have to get the previous reportAction from the current report's parrentReportAction to get the information we need.
    To do that we can add below code here. ( We can also move below cod to new function in `ReportUtils.ts )
const parentAction = ReportActionsUtils.getReportAction(report?.parentReportID, report?.parentReportActionID)
const prevActionOfParentAction = ReportActionsUtils.getReportAction(parentAction?.reportID, parentAction?.previousReportActionID)
const isPrevActionOfParentActionSplit = ReportActionsUtils.isSplitBillAction(prevActionOfParentAction)
const shouldDisplayLogo = isReport && parentAction?.actionName !== CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && !isPrevActionOfParentActionSplit
  1. Update this condition as follows: shouldDisplayLogo ?

What alternative solutions did you explore? (Optional)

BE should add needed information in current report and we can use this info in this condition

@dragnoir
Copy link
Contributor

We don't support this feature yet.

The only possible displayed pictures are

In other cases we display only the Expensify logo.

@DmitrievichLevin
Copy link

Proposal

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

For Split Expense ShareCodeQR is showing E logo.

What is the root cause of that problem?

  • ShareCode Logo is determined by boolean isReport
  • There are four report types in CONST.ts thus creating ambiguity

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

Short-Term:

introduce another bool for whether report === CONST.REPORT.TYPE.IOU

Long-Term:

Encapsulate logo ternary, would move to switch case to handle different report types with the default being expensifyLogo which is scalable.

Demo

ExpensifyDemo.mov

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link

melvin-bot bot commented Apr 19, 2024

📣 @DmitrievichLevin! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@DmitrievichLevin
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01b18edd2e975b1033

Copy link

melvin-bot bot commented Apr 19, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@allroundexperts
Copy link
Contributor

Taking over!

@melvin-bot melvin-bot bot added the Overdue label Apr 21, 2024
@getusha getusha removed their assignment Apr 21, 2024
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 21, 2024
@strepanier03
Copy link
Contributor

Confirming some expected behavior here.

@melvin-bot melvin-bot bot removed the Overdue label Apr 25, 2024
@shahinyan11
Copy link

Confirming some expected behavior here.

We do not have access to this link

@strepanier03
Copy link
Contributor

We've decided to close this and do nothing, make no changes.

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 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

8 participants