You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting checklist] [$250] [Search v2] [POLISH] Icons Overflow from Dropdown Button on Search Results Page on Mobile #46664
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:
Deep-linked to new-expensify://search/filters/ on mobile.
Selected multiple filters.
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?
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
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 numberOfLineshere 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 FormHelpMessagehere and also HoldMenuSectionListhere
No need to hardcode any width for the container.
It works fine now:
What alternative solutions did you explore? (Optional)
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
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:
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:
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
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
Go to /search/filters/ on mobile.
Select multiple filters.
Click on "View Results."
Verify that the icons of the dropdown button on the results page are contained entirely within the button.
Activity
melvin-bot commentedon Aug 1, 2024
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.rayane-d commentedon Aug 1, 2024
cc @luacmartins
[-][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[/+]melvin-bot commentedon Aug 1, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0184ce67444300c7ba
melvin-bot commentedon Aug 1, 2024
Current assignee @rayane-djouah is eligible for the External assigner, not assigning anyone new.
ShridharGoel commentedon Aug 1, 2024
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.
App/src/pages/Search/SearchStatusMenuNarrow.tsx
Lines 77 to 92 in c664c4b
What changes do you think we should make in order to solve the problem?
Add
styles.flex1to TextShridharGoel commentedon Aug 1, 2024
@shawnborton Can you have a look at the above screenshot?
nkdengineer commentedon Aug 1, 2024
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
TextwithnumberOfLineshere alone without any wrapperView, so it takes the full width of the container and pushes the buttons outsideWhat changes do you think we should make in order to solve the problem?
Just need to wrap the
Textin aViewwithflex: 1, theViewitself will take only the spaces left after accounting for the buttons' spaces. And then theTextinside theViewwill only take the full size of thatView.Same solution above was used for other components with
Icon+Textcombination likeFormHelpMessagehere and alsoHoldMenuSectionListhereNo need to hardcode any width for the container.
It works fine now:

What alternative solutions did you explore? (Optional)
NA
20 remaining items
[-][$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[/+]melvin-bot commentedon Aug 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 7, 2024
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:
melvin-bot commentedon Aug 7, 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:
twisterdotcom commentedon Aug 15, 2024
Payment Summary:
[-][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[/+]rayane-d commentedon Aug 15, 2024
Regression Test Proposal