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] Reports - While typing on search input, only a black line can be seen below it #57210

Open
2 of 8 tasks
lanitochka17 opened this issue Feb 20, 2025 · 11 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 20, 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.3-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open the Expensify app
  2. Tap on "Reports"
  3. Tap on "Search for something"
  4. Start writing and check if any content or suggestions are added below input

Expected Result:

Recents chats and suggestions depending on the search, should be displayed below search input while typing

Actual Result:

Only a black line can be seen displayed below input, instead of recents chats or suggestions, while typing

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence
Bug6749538_1740092976973.Black_Line.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021894113404752369707
  • Upwork Job ID: 1894113404752369707
  • Last Price Increase: 2025-02-24
  • Automatic offers:
    • ikevin127 | Reviewer | 106282300
Issue OwnerCurrent Issue Owner: @ikevin127
@lanitochka17 lanitochka17 added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 20, 2025
Copy link

melvin-bot bot commented Feb 20, 2025

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

@bernhardoj
Copy link
Contributor

Proposal

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

The search result is cut off.

What is the root cause of that problem?

The list is wrapped with a View that has a flex 1 style.

if (displayNarrowHeader) {
return (
<View
dataSet={{dragArea: false}}
style={[styles.flex1]}
>
<View style={[styles.appBG, styles.flex1]}>
<View style={[styles.flexRow, styles.mh5, styles.mb3, styles.alignItemsCenter, styles.justifyContentCenter, {height: variables.searchTopBarHeight}]}>

Flex depends on the parent available size, however, the parent component in this case doesn't define its size (no width, no flex).

<View style={[styles.flex1]}>
<Animated.View style={[topBarAnimatedStyle, !searchRouterListVisible && styles.narrowSearchRouterInactiveStyle, styles.flex1, styles.bgTransparent]}>
<View style={[styles.narrowSearchHeaderStyle]}>
<SearchPageHeader
queryJSON={queryJSON}

So, it actually has 0 height, but currently overflows and is visible. If we set overflow as hidden, then the input and list will be hidden.

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

Set flex: 1 to the parent View here.

<View style={[styles.narrowSearchHeaderStyle]}>
<SearchPageHeader
queryJSON={queryJSON}

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

N/A

@melvin-bot melvin-bot bot added the Overdue label Feb 24, 2025
Copy link

melvin-bot bot commented Feb 24, 2025

@alexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@alexpensify
Copy link
Contributor

I'm able to replicate when searching Reports via the application

Image

@melvin-bot melvin-bot bot removed the Overdue label Feb 24, 2025
@alexpensify alexpensify added External Added to denote the issue can be worked on by a contributor Overdue labels Feb 24, 2025
@melvin-bot melvin-bot bot changed the title Reports - While typing on search input, only a black line can be seen below it [$250] Reports - While typing on search input, only a black line can be seen below it Feb 24, 2025
Copy link

melvin-bot bot commented Feb 24, 2025

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

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

melvin-bot bot commented Feb 24, 2025

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

@melvin-bot melvin-bot bot removed the Overdue label Feb 24, 2025
@alexpensify
Copy link
Contributor

@ikevin127 can you please confirm if @bernhardoj's solution will fix this issue? Thanks!

@ikevin127
Copy link
Contributor

I hereby confirm that @bernhardoj's proposal makes sense. The root cause was identified correctly and the proposed solution fixes the issue. No tests are needed as this is a simple UI styling issue.

Here's a before / after applying the suggested solution:

iOS: Native
ba.mp4

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 26, 2025

Triggered auto assignment to @francoisl, 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 Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

📣 @ikevin127 🎉 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 melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 26, 2025
@bernhardoj
Copy link
Contributor

PR is ready

cc: @ikevin127

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

No branches or pull requests

5 participants