Skip to content

[Awaiting checklist] [$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile #46664

Closed

Description

@rayane-d

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.15-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @rayane-djouah
Slack conversation:

Action Performed:

  1. Deep-linked to new-expensify://search/filters/ on mobile.
  2. Selected multiple filters.
  3. Clicked on "View Results."

Expected Result:

The icons of the dropdown button should be contained entirely within the button.

Actual Result:

The icons of the dropdown button overflow beyond the button's boundaries.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

Simulator_Screenshot_-iPhone_15_Pro_Max-_2024-08-01_at_12 02 16

Screenshot_2024-08-01_at_12 17 19_PM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0184ce67444300c7ba
  • Upwork Job ID: 1819040519824038842
  • Last Price Increase: 2024-08-01
  • Automatic offers:
    • rayane-djouah | Reviewer | 103360495
    • nkdengineer | Contributor | 103360498
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @rayane-djouah

Activity

  1. added
    Bug
    Daily
    on Aug 1, 2024
  2. melvin-bot commented on Aug 1, 2024

    @melvin-bot

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

  3. rayane-d commented on Aug 1, 2024

    @rayane-d
    ContributorAuthor
  4. added
    External
    on Aug 1, 2024
  5. changed the title [-][Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/-] [+][$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/+] on Aug 1, 2024
  6. melvin-bot commented on Aug 1, 2024

    @melvin-bot
  7. added
    Help Wanted
    on Aug 1, 2024
  8. melvin-bot commented on Aug 1, 2024

    @melvin-bot

    Current assignee @rayane-djouah is eligible for the External assigner, not assigning anyone new.

  9. ShridharGoel commented on Aug 1, 2024

    @ShridharGoel
    Contributor

    Proposal

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

    Icons Overflow from Dropdown Button on Search Results Page on Mobile.

    What is the root cause of that problem?

    There's only number of lines defined and no way to limit the width of the Text.

    <View style={[styles.flexRow, styles.gap2, titleViewStyles]}>
    <Icon
    src={menuIcon}
    fill={theme.icon}
    />
    <Text
    numberOfLines={1}
    style={[styles.textStrong]}
    >
    {menuTitle}
    </Text>
    <Icon
    src={Expensicons.DownArrow}
    fill={theme.icon}
    />
    </View>

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

    Add styles.flex1 to Text

    <Text
        numberOfLines={1}
        style={[styles.textStrong, styles.flex1]}
    >
    
  10. ShridharGoel commented on Aug 1, 2024

    @ShridharGoel
    Contributor

    @shawnborton Can you have a look at the above screenshot?

  11. nkdengineer commented on Aug 1, 2024

    @nkdengineer
    Contributor

    Proposal

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

    The icons of the dropdown button overflow beyond the button's boundaries.

    What is the root cause of that problem?

    We're letting the Text with numberOfLines here alone without any wrapper View, so it takes the full width of the container and pushes the buttons outside

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

    Just need to wrap the Text in a View with flex: 1, the View itself will take only the spaces left after accounting for the buttons' spaces. And then the Text inside the View will only take the full size of that View.

    <View style={styles.flex1}>
    

    Same solution above was used for other components with Icon + Text combination like FormHelpMessage here and also HoldMenuSectionList here

    No need to hardcode any width for the container.

    It works fine now:
    Screenshot 2024-08-01 at 11 55 04 PM

    What alternative solutions did you explore? (Optional)

    NA

  12. 20 remaining items

  13. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Aug 7, 2024
  14. changed the title [-][$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/-] [+][HOLD for payment 2024-08-14] [$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/+] on Aug 7, 2024
  15. melvin-bot commented on Aug 7, 2024

    @melvin-bot

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

  16. removed
    Reviewing
    on Aug 7, 2024
  17. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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-08-14. 🎊

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

  18. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    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:

    • [@rayane-djouah] The PR that introduced the bug has been identified. Link to the PR:
    • [@rayane-djouah] 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:
    • [@rayane-djouah] 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:
    • [@rayane-djouah] Determine if we should create a regression test for this bug.
    • [@rayane-djouah] 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.
    • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  19. added
    Daily
    and removed
    Weekly
    on Aug 14, 2024
  20. twisterdotcom commented on Aug 15, 2024

    @twisterdotcom
    Contributor

    Payment Summary:

  21. removed
    Awaiting Payment
    on Aug 15, 2024
  22. changed the title [-][HOLD for payment 2024-08-14] [$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/-] [+][Awaiting checklist] [$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile[/+] on Aug 15, 2024
  23. rayane-d commented on Aug 15, 2024

    @rayane-d
    ContributorAuthor
    • The PR that introduced the bug has been identified. Link to the PR: [Search v2] [App] Create search results page #45409
    • 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: We've already discussed this on New.dot, and the author and reviewers have been informed.
    • 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: N/A
    • Determine if we should create a regression test for this bug. Yes
    • 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.

    Regression Test Proposal

    1. Go to /search/filters/ on mobile.
    2. Select multiple filters.
    3. Click on "View Results."
    4. Verify that the icons of the dropdown button on the results page are contained entirely within the button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions