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] [HOLD for payment 2024-12-11] Android - Expense - Save button moves up and down when keyboard is open #53183

Closed
2 of 8 tasks
IuliiaHerets opened this issue Nov 27, 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 External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Nov 27, 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: 9.0.67-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
**Email or phone of affected tester (no customers):**[email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch ND or hybrid app.
  2. Go to workspace chat.
  3. Tap + > Submit expense > Manual.
  4. Enter amount > Next.
  5. Tap Merchant.
  6. Might have to exit merchant editor and tap Merchant field again to see Save button move when keyboard is open.

Expected Result:

Save button will not move up and down when the keyboard is open.

Actual Result:

Save button moves up and down when the keyboard is open.

Similar behavior is seen across the app when keyboard is open and where there is Save or Submit button.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6677463_1732657689882.Screen_Recording_20241127_054453.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021865866933542877637
  • Upwork Job ID: 1865866933542877637
  • Last Price Increase: 2024-12-08
Issue OwnerCurrent Issue Owner: @jliexpensify
Issue OwnerCurrent Issue Owner: @jliexpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 27, 2024
Copy link

melvin-bot bot commented Nov 27, 2024

Triggered auto assignment to @kadiealexander (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 Nov 27, 2024

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

Copy link

melvin-bot bot commented Nov 27, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 27, 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.

@kirillzyusko
Copy link
Contributor

I already mentioned this problem here - #42143 (comment)

This is PR that introduced new hook useSafePaddingBottomStyle hook, that updates style from JS thread. However new implementation of KeyboardAvoidingView is based on reanimated usage (i. e. synchronous style changes depending on keyboard position), but this hook performs updates in JS (which are slower) and because of that we see this two stage update on Android.

We can fix it:

  • by making useSafePaddingBottomStyle returning an instance of useAnimatedStyle;
  • or by specifying necessary margin pb5 as keyboardVerticalOffset property in KeyboardAvoidingView (this approach is preferable, because we don't need to create many animated views and a single view will control keyboard interpolation).

However it's pretty big changes in both variants and it will take some time to implement (because useSafePaddingBottomStyle implicitly gets used in many places already, so we will have to go through each screen and verify that there is no jumps).

@mountiny do you think we can deprioritise this and remove blocker label? It was kind of something expected to see such instant button shifts, and I wanted to handle it in follow up tickets (but again it'll take some time to prepare a PR).

@mountiny
Copy link
Contributor

I agree, lets do this properly without rushing. I think its not that major to block deploy, user can use the app fine

@kadiealexander
Copy link
Contributor

I have a standing Android <> ios bug swap with @jliexpensify.

@jliexpensify
Copy link
Contributor

@mountiny - if @kirillzyusko needs some time to work on this, shall we make this a weekly?

@mountiny
Copy link
Contributor

I think we can keep it daily so @kirillzyusko can work on this with urgency in the coming days.

Can you base your changes on this PR, @kirillzyusko please? #53250

@mountiny
Copy link
Contributor

mountiny commented Dec 2, 2024

PR in main

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Dec 3, 2024
@kirillzyusko
Copy link
Contributor

@mountiny should we change PR title to show that the fix in main branch?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 4, 2024
@melvin-bot melvin-bot bot changed the title Android - Expense - Save button moves up and down when keyboard is open [HOLD for payment 2024-12-11] Android - Expense - Save button moves up and down when keyboard is open Dec 4, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 4, 2024
Copy link

melvin-bot bot commented Dec 4, 2024

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

Copy link

melvin-bot bot commented Dec 4, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.70-9 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-12-11. 🎊

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

Copy link

melvin-bot bot commented Dec 4, 2024

@allroundexperts / @ZhenjaHorbach @jliexpensify @allroundexperts / @ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label Dec 8, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-12-11] Android - Expense - Save button moves up and down when keyboard is open [$250] [HOLD for payment 2024-12-11] Android - Expense - Save button moves up and down when keyboard is open Dec 8, 2024
Copy link

melvin-bot bot commented Dec 8, 2024

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

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

melvin-bot bot commented Dec 8, 2024

Current assignees @allroundexperts and @ZhenjaHorbach are eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 8, 2024
@jliexpensify
Copy link
Contributor

jliexpensify commented Dec 8, 2024

Payment Summary

Upworks job

@melvin-bot melvin-bot bot removed the Overdue label Dec 8, 2024
@allroundexperts
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user

  • 3b. Expensify employee

  • 3c. Contributor

  • 3d. QA

  • 3z. Other: Agency member

  • [Contributor] 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: fix: messages content overlap when bottom sheet is shown #42143 (comment)

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

  • Login to the App using an account that has a workspace chat.

Test:

  1. Launch NewDot App.
  2. Go to workspace chat.
  3. Tap + > Submit expense > Manual.
  4. Enter amount > Next.
  5. Tap Merchant.
  6. Exit the merchant editor and tap Merchant field again.

Verify that the save button will not move up and down when the keyboard is open.

Do we agree 👍 or 👎

@mountiny mountiny removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 8, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Dec 10, 2024
@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Dec 10, 2024
@jliexpensify
Copy link
Contributor

Paid and job closed, @allroundexperts here is the payment summary.

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Dec 12, 2024
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 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

7 participants