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

[HOLD for payment 2024-09-10] [$250] iOS - Composer - Add attachment modal is hidden behind the keyboard #48452

Closed
1 of 6 tasks
IuliiaHerets opened this issue Sep 3, 2024 · 22 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 Sep 3, 2024

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: 9.0.28-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify app
  2. Go to any chat
  3. Focus on the composer (important)
  4. Tap +
  5. Tap Add attachment

Expected Result:

Add attachment modal will not be hidden behind the keyboard

Actual Result:

Add attachment modal is hidden behind the keyboard

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6591208_1725321471394.ScreenRecording_09-03-2024_07-55-51_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01929e53bf6e5a45ee
  • Upwork Job ID: 1831044805586591004
  • Last Price Increase: 2024-09-03
  • Automatic offers:
    • ishpaul777 | Contributor | 103803636
Issue OwnerCurrent Issue Owner: @stephanieelliott
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Triggered auto assignment to @stephanieelliott (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 Sep 3, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 3, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

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

@danieldoglas
Copy link
Contributor

It looks like a glitch; I can't simulate that after several tries.

RPReplay_Final1725388834.MP4

@danieldoglas danieldoglas removed DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
@roryabraham
Copy link
Contributor

@danieldoglas looks like you're testing on iOS web, not iOS native

@roryabraham roryabraham reopened this Sep 3, 2024
@roryabraham roryabraham added DeployBlocker Indicates it should block deploying the API Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment and removed DeployBlocker Indicates it should block deploying the API labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Current assignee @stephanieelliott is eligible for the Bug assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Sep 3, 2024

Current assignee @danieldoglas is eligible for the DeployBlockerCash assigner, not assigning anyone new.

Copy link
Contributor

github-actions bot commented Sep 3, 2024

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

@danieldoglas danieldoglas added the External Added to denote the issue can be worked on by a contributor label Sep 3, 2024
@melvin-bot melvin-bot bot changed the title iOS - Composer - Add attachment modal is hidden behind the keyboard [$250] iOS - Composer - Add attachment modal is hidden behind the keyboard Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

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

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

ishpaul777 commented Sep 3, 2024

i found the Root cause :

Here when we close all modals

Modal.close(() => {
onItemSelected(selectedItem, index);
selectedItem.onSelected?.();
});

this onClose is triggered

which triggers this which triggers restoreKeyboardState here

Solution:
we have this case covered before in onItemSelected, now its just not called before the modal close

const onItemSelected = useCallback(() => {
isKeyboardVisibleWhenShowingModalRef.current = false;
}, []);

so we have to modify this

Modal.close(() => {
onItemSelected(selectedItem, index);
selectedItem.onSelected?.();
});

to

            onItemSelected(selectedItem, index);
            Modal.close(() => {
                selectedItem.onSelected?.();
            });

so onItemSelected is called before we close modal just like before

@danieldoglas
Copy link
Contributor

@ishpaul777 can you spin up a PR for that?

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

📣 @ishpaul777 🎉 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 📖

@situchan
Copy link
Contributor

situchan commented Sep 3, 2024

Looks like regression from #47991

@roryabraham
Copy link
Contributor

@roryabraham roryabraham removed the DeployBlockerCash This issue or pull request should block deployment label Sep 3, 2024
@roryabraham
Copy link
Contributor

Verified this is fixed on staging ✅

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 3, 2024
@melvin-bot melvin-bot bot changed the title [$250] iOS - Composer - Add attachment modal is hidden behind the keyboard [HOLD for payment 2024-09-10] [$250] iOS - Composer - Add attachment modal is hidden behind the keyboard Sep 3, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

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

Copy link

melvin-bot bot commented Sep 3, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.28-3 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-09-10. 🎊

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

Copy link

melvin-bot bot commented Sep 3, 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:

  • [@parasharrajat / @ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat / @ishpaul777] 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:
  • [@parasharrajat / @ishpaul777] 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:
  • [@parasharrajat / @ishpaul777] Determine if we should create a regression test for this bug.
  • [@parasharrajat / @ishpaul777] 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.
  • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@danieldoglas
Copy link
Contributor

Removing @parasharrajat

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 10, 2024
@stephanieelliott
Copy link
Contributor

Summarizing payment on this issue:

  • Contributor: @ishpaul777 $250 via Upwork -- PAID
  • Contributor+: n/a internal

Upwork job is here: https://www.upwork.com/jobs/~01929e53bf6e5a45ee

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
None yet
Development

No branches or pull requests

7 participants