Skip to content

[HOLD for payment 2024-05-02] Scan - "Let it go" copy is not centered when dragging and dropping a file to Scan RHP #40539

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

Closed
2 of 6 tasks
izarutskaya opened this issue Apr 19, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@izarutskaya
Copy link

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-5
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4494504
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Submit request > Scan.
  3. Drag and drop a file to the Scan RHP.

Expected Result:

"Let it go" copy is centered when dragging and dropping a file to Scan RHP.

Actual Result:

"Let it go" copy is not centered when dragging and dropping a file to Scan RHP.

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

Bug6454413_1713492432352.20240419_100401.mp4
Bug6454413_1713492432338!Screenshot_2024-04-19_at_10 04 42

View all open jobs on GitHub

@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 @danieldoglas (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 19, 2024

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

@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

@bfitzexpensify 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

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production

image (9)

@shahinyan11
Copy link

shahinyan11 commented Apr 19, 2024

Proposal

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

"Let it go" copy is not centered when dragging and dropping a file to Scan RHP

What is the root cause of that problem?

The Let it go image's container has absolute position and we get the top of Upload Receipt image's container and set to "Let it go" image's container. But we do not calculate that the parent of Upload Receipt image's container does not have full screen height but the parent of Let it go image's container has full screen height

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

Remove this style form image container

What alternative solutions did you explore?

Change nativeEvent.layout.y to nativeEvent.layout.top

@danieldoglas
Copy link
Contributor

@codinggeek2023 @MonilBhavsar @akinwale I think this is a regression from #36314. Can you please take a look?

@eucool
Copy link
Contributor

eucool commented Apr 19, 2024

Raising the PR ASAP :)

@shahinyan11
Copy link

@codinggeek2023 The correct change should be reverting nativeEvent.layout.y to nativeEvent.layout.top

@MonilBhavsar
Copy link
Contributor

Thank you @codinggeek2023
Mind explaining the root cause please

@eucool
Copy link
Contributor

eucool commented Apr 19, 2024

RCA here @MonilBhavsar

@shahinyan11
Copy link

shahinyan11 commented Apr 19, 2024

If this is a regression, NativeEvent.layout.y should be reverted to NativeEvent.layout.top and the Expected Result of the GH issue should also be changed since the container of Let it go should not be centered and should be in the same place as the container of Upload Receipt in background.

But if the Expected result of the GH issue is correct and it should be centered then it is not a regression and @codinggeek2023 used my solution to fix it

@eucool
Copy link
Contributor

eucool commented Apr 19, 2024

@codinggeek2023 used my solution to fix it

@shahinyan11 , help wanted label is not present over here and according to contributor guidelines, unless the help wanted label is present, you have to propose at your own risk, thanks :)

@shahinyan11
Copy link

shahinyan11 commented Apr 19, 2024

I'm not talking about Help Wanted If the solution I proposed is correct, I want to raise PR from my name and without payment.

@danieldoglas danieldoglas removed their assignment Apr 19, 2024
@thienlnam
Copy link
Contributor

It's not centered - but not breaking the app in any way so demoting

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Apr 20, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 25, 2024
@melvin-bot melvin-bot bot changed the title Scan - "Let it go" copy is not centered when dragging and dropping a file to Scan RHP [HOLD for payment 2024-05-02] Scan - "Let it go" copy is not centered when dragging and dropping a file to Scan RHP Apr 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

Copy link

melvin-bot bot commented Apr 25, 2024

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

If no regressions arise, payment will be issued on 2024-05-02. 🎊

Copy link

melvin-bot bot commented Apr 25, 2024

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:

  • [@MonilBhavsar] The PR that introduced the bug has been identified. Link to the PR:
  • [@MonilBhavsar] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@MonilBhavsar] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@MonilBhavsar] Determine if we should create a regression test for this bug.
  • [@MonilBhavsar] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
Copy link

melvin-bot bot commented May 2, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@MonilBhavsar
Copy link
Contributor

No action required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

7 participants