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

[$500] Receipt - The border green line on top and bottom is shown in mweb but not displayed in android. #30284

Closed
1 of 6 tasks
lanitochka17 opened this issue Oct 24, 2023 · 22 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 24, 2023

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


Version Number: 1.3.90-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

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Tap fab
  3. Tap request money-----manual
  4. Enter an amount
  5. Tap next
  6. Select any user
  7. Tap 3 dots on top right to select "add receipt"
  8. Note the border green line on top and bottom as border in Receipt page
  9. Launch app
  10. Repeat step 2 to step 7
  11. Note no green border in top and bottom in Receipt page

Expected Result:

In receipt page, the border green line on top and bottom is shown in mweb but not displayed in android. The behavior must not be inconsistent in mweb and android.

Actual Result:

In receipt page, the border green line on top and bottom is shown in mweb but not displayed in android. The behavior is inconsistent in mweb and android

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

Android: Native
Android: mWeb Chrome
Bug6249110_1698167440346.inconsistent.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01181ed80e74e0488e
  • Upwork Job ID: 1716867465539047424
  • Last Price Increase: 2023-10-24
  • Automatic offers:
    • situchan | Reviewer | 27440828
    • Krishna2323 | Contributor | 27440830
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@melvin-bot melvin-bot bot changed the title Receipt - The border green line on top and bottom is shown in mweb but not displayed in android. [$500] Receipt - The border green line on top and bottom is shown in mweb but not displayed in android. Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01181ed80e74e0488e

@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@neonbhai
Copy link
Contributor

neonbhai commented Oct 24, 2023

Proposal

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

The border green line on top and bottom is shown in mweb but not displayed in android.

What is the root cause of that problem?

The receipt border is styled by styles.cameraView
Which is applied to the view in Receipt Selector web, but is missing in index.native file.

In the native file it is passed as a prop to <NavigationAwareCamera. But it does not use that style

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

Solution 1:

Change the style styles.cameraView in Receipt Selector index.native to be applied on a parent View here:

{cameraPermissionStatus === RESULTS.GRANTED && device != null && (
<NavigationAwareCamera
ref={camera}
device={device}
style={[styles.cameraView]}
zoom={device.neutralZoom}
photo
cameraTabIndex={pageIndex}
isInTabNavigator={isInTabNavigator}
selectedTab={selectedTab}
/>
)}

as we have applied here.

Solution 2:

Modify the NavigationAwareCamera component to take in the style prop and apply it to the parent views here and here

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@isabelastisser
Copy link
Contributor

Hey @situchan, can you please review the proposal above? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Oct 27, 2023
@situchan
Copy link
Contributor

@neonbhai can you please share screenshot on android/ios/mWeb?

@Krishna2323
Copy link
Contributor

Krishna2323 commented Oct 28, 2023

Proposal

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

The border green line on top and bottom is shown in mweb but not displayed in android.

What is the root cause of that problem?

We are adding wrong style to NavigationAwareCamera and not wrapping it with View element that has styles.cameraView applied to it.

{cameraPermissionStatus === RESULTS.GRANTED && device != null && (
<NavigationAwareCamera
ref={camera}
device={device}
style={[styles.cameraView]}
zoom={device.neutralZoom}
photo
cameraTabIndex={pageIndex}
isInTabNavigator={isInTabNavigator}
selectedTab={selectedTab}
/>
)}

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

We need to wrap NavigationAwareCamera with View element that has styles.cameraView and change the styles passed to it.

Styles to add to NavigationAwareCamera:

style={{...styles.videoContainer, display: cameraPermissionState !== 'granted' ? 'none' : 'block'}}

We can also wrap continue button, loader component and camera view in one View element and apply styles.cameraView to it.

Result

demo_round_borders.mp4

@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2023
@isabelastisser
Copy link
Contributor

Bump @situchan. Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@situchan
Copy link
Contributor

@Krishna2323's proposal looks good to me.
I tested @neonbhai's solution but bottom border radius didn't work
🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @Krishna2323 🎉 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 melvin-bot bot added the Weekly KSv2 label Oct 31, 2023
@situchan
Copy link
Contributor

@Julesssss sorry but I think we should open this back to proposals because accepted solution doesn't work on iOS.
The contributor must have iPhone on which newDot dev app is installable because camera doesn't work on simulator.

@situchan
Copy link
Contributor

cc: @allroundexperts if you're interested

@allroundexperts
Copy link
Contributor

Sure @situchan. I can take a look on my device.

@Krishna2323
Copy link
Contributor

@situchan, can you pls give me 1-2 more days. I will fix that otherwise I will ping you to assign someone else.

@situchan
Copy link
Contributor

@Krishna2323 sure, we can wait until next Monday

@isabelastisser
Copy link
Contributor

Hey @Krishna2323 @situchan, can you please provide an update? Thanks!

@situchan
Copy link
Contributor

This is ready for payment. PR deployed to production on Nov 21 - #31519 (comment)

@situchan
Copy link
Contributor

This was not a regression but design inconsistency.
This was reported by QA team so I don't think we need regression test.

@isabelastisser isabelastisser added Daily KSv2 and removed Weekly KSv2 labels Nov 30, 2023
@isabelastisser
Copy link
Contributor

Offers sent in Upwork. All set!

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

7 participants