Skip to content

[Due for payment 2025-03-24] [$250] Reports- A white area is covering half of the Attachment search result section #57369

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
1 of 8 tasks
mitarachim opened this issue Feb 25, 2025 · 27 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 External Added to denote the issue can be worked on by a contributor

Comments

@mitarachim
Copy link

mitarachim commented Feb 25, 2025

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.1.5-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
If this was caught during regression testing, add the test name, ID and link from TestRail: #54228
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: SS S20 FE/ Àndroid 13
App Component: Other

Action Performed:

Precondition: User has some attachements on Chat

  1. Tap on Reports on the bottom menu and tap on Bookmark icon
  2. Select type is Chat
  3. Add "an" to the end of search keyword then search
  4. Tap on Attachment tab
  5. Delete "an" search keyword then search

Expected Result:

The search result is fully displayed to the bottom of screen

Actual Result:

There is a white area is covering half of the Attachment search result section

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6753232_1740451769042.az_recorder_20250225_092906.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021894434848739943598
  • Upwork Job ID: 1894434848739943598
  • Last Price Increase: 2025-02-25
  • Automatic offers:
    • daledah | Contributor | 106418300
Issue OwnerCurrent Issue Owner: @mananjadhav
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 25, 2025
Copy link

melvin-bot bot commented Feb 25, 2025

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

@sakluger sakluger moved this to Bugs and Follow Up Issues in #expensify-bugs Feb 25, 2025
@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label Feb 25, 2025
@melvin-bot melvin-bot bot changed the title Reports- A white area is covering half of the Attachment search result section [$250] Reports- A white area is covering half of the Attachment search result section Feb 25, 2025
Copy link

melvin-bot bot commented Feb 25, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 25, 2025
Copy link

melvin-bot bot commented Feb 25, 2025

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

@gurus00
Copy link

gurus00 commented Feb 25, 2025

Proposal

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

A white area is covering half of the Attachment search result section

What is the root cause of that problem?

Viewport height is not set correctly on the search page or Keyboard layout has an error

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

Check the viewport height and keyboard layout and fix it

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

What alternative solutions did you explore? (Optional)

@mananjadhav
Copy link
Collaborator

The current proposal is incomplete. Waiting for better proposals.

@gurus00
Copy link

gurus00 commented Feb 25, 2025

Sure I will

@daledah
Copy link
Contributor

daledah commented Feb 26, 2025

Proposal

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

There is a white area is covering half of the Attachment search result section

What is the root cause of that problem?

We always open a new search page when a new search query is submitted:

Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query: updatedQuery}));

Each search page is wrapped inside the ScreenWrapper component:

which utilizes KeyboardAvoidingView to automatically adjust the screen height when the keyboard is open.

In this bug, when the keyboard is open and a new search query is submitted, a new search screen is opened. At that moment, KeyboardAvoidingView still detects the keyboard as open, leaving extra space for it. As a result, a white area appears at the bottom of the screen.

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

Make sure the keyboard is closed successfully before navigating to a new search screen can address the issue:

                                    KeyboardUtils.dismiss().then(() => {
                                        submitSearch(textInputValue);
                                    });

Only apply the fix with android native if the bug only appear in this platform.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

What alternative solutions did you explore? (Optional)

Update:

Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query: updatedQuery}));

            KeyboardUtils.dismiss().then(() => {
                Navigation.navigate(ROUTES.SEARCH_ROOT.getRoute({query: updatedQuery}));
            });

or we can wrap the navigate logic inside InteractionManager.runAfterInteractions instead of KeyboardUtils.dismiss.

@sakluger
Copy link
Contributor

Hey @mananjadhav, could you please review the new proposal?

@melvin-bot melvin-bot bot added the Overdue label Feb 28, 2025
@mananjadhav
Copy link
Collaborator

mananjadhav commented Feb 28, 2025

I think we should use the alternative solution KeyboardUtils.dismiss() / InteractionManager while calling the navigate method. Will let the internal engineer comment too. @daledah's proposal looks good.

🎀 👀 🎀 C+ reviewed.

Copy link

melvin-bot bot commented Feb 28, 2025

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

Copy link

melvin-bot bot commented Mar 4, 2025

@mananjadhav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2025
@daledah
Copy link
Contributor

daledah commented Mar 4, 2025

@mananjadhav Could you link the proposal to your review to make it easier for the internal team to track?

@mananjadhav
Copy link
Collaborator

Yes. Thank you. Done.

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2025
@sakluger
Copy link
Contributor

sakluger commented Mar 4, 2025

@marcochavezf could you take a look at the @mananjadhav's recommendation? #57369 (comment)

@melvin-bot melvin-bot bot added the Overdue label Mar 6, 2025
@daledah
Copy link
Contributor

daledah commented Mar 6, 2025

@marcochavezf Could you help review this issue when you have a sec?

@marcochavezf
Copy link
Contributor

Apologies for the delay guys, and thanks for the review @mananjadhav, the proposal also LGTM. Assigning @daledah 🚀

@melvin-bot melvin-bot bot removed the Overdue label Mar 6, 2025
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 6, 2025
Copy link

melvin-bot bot commented Mar 6, 2025

📣 @daledah 🎉 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 Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 7, 2025
@daledah
Copy link
Contributor

daledah commented Mar 7, 2025

@mananjadhav PR is ready for review.

@mananjadhav
Copy link
Collaborator

Testing the PR.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 17, 2025
@melvin-bot melvin-bot bot changed the title [$250] Reports- A white area is covering half of the Attachment search result section [Due for payment 2025-03-24] [$250] Reports- A white area is covering half of the Attachment search result section Mar 17, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 17, 2025
Copy link

melvin-bot bot commented Mar 17, 2025

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

Copy link

melvin-bot bot commented Mar 17, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.13-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 2025-03-24. 🎊

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

Copy link

melvin-bot bot commented Mar 17, 2025

@mananjadhav @sakluger @mananjadhav 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]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 24, 2025
@sakluger
Copy link
Contributor

@mananjadhav can you please complete the BZ checklist?

@sakluger
Copy link
Contributor

Summarizing payment on this issue:

Contributor: @daledah $250, paid via Upwork
Contributor+: @mananjadhav $250, please request on Newdot after completing the BZ checklist

@mananjadhav
Copy link
Collaborator

mananjadhav commented Mar 24, 2025

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

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:
  • [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: Couldn't pinpoint a specific as this was limited to specific platform (Android Hybrid App).

  • [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: NA

  • [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.

@sakluger I don't think we need a regression test for this one, as it's a very edge case with one platform and that would generally occur in some devices only.

@garrettmknight
Copy link
Contributor

$250 approved for @mananjadhav

@sakluger
Copy link
Contributor

Sounds good @mananjadhav. Looks like we're good to close this one out!

@github-project-automation github-project-automation bot moved this from Bugs and Follow Up Issues to Done in #expensify-bugs Mar 25, 2025
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 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

7 participants