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
[Due for payment 2025-05-22] [Due for payment 2025-05-20] Tags - Introduction sentence is below the search field, instead of above the search field #61687
Version Number: 9.1.42-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from TestRail: Exp Email or phone of affected tester (no customers):applausetester+khcategory19@applause.expensifail.com Issue reported by: Applause Internal Team Device used: iPhone 15 Pro Max / iOS 18.4 App Component: Workspace Settings
Action Performed:
Precondition:
Workspace has at least 16 categories and 16 tags.
Launch Expensify app.
Go to workspace settings > Categories.
Note that the introduction sentence is above the search field.
Go to workspace settings > Tags.
Expected Result:
In Tags page, the introduction sentence should be above the search field.
Actual Result:
In Tags page, the introduction sentence is below the search field, which is not consistent with the placement in Categories page.
👋 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:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
On the "Workspace Settings > Tags" page, the introductory sentence (e.g., "Tags add more detailed ways to classify costs.") appears below the "Find tag" search field. This is inconsistent with the "Workspace Settings > Categories" page, where a similar introductory sentence appears above its search field. We need to make the Tags page consistent by placing its introductory sentence above the search field.
What is the root cause of that problem?
The root cause is the conditional rendering logic and component structure, particularly for narrow (mobile) layouts.
When the Tags page has data to display on a narrow screen:
The SearchBar component was rendered directly in the page's main body.
The introductory text, generated by getHeaderText(), was then rendered inside the SelectionListWithModal component via its listHeaderContent prop.
This resulted in the SearchBar appearing visually before the introductory text because the text was part of a child component rendered later. On wide screens, or when the narrow screen was loading or showing an empty state, the introductory text was rendered in the main body, which was correct, but the "narrow screen with data" case was handled differently, leading to the inconsistency.
What changes do you think we should make in order to solve the problem?
We should adjust the rendering order in the WorkspaceTagsPage component to ensure the introductory text consistently appears before the search bar when appropriate.
Consolidate Rendering Logic: The introductory text (from getHeaderText()) and the SearchBar should both be rendered directly within the main component structure, outside of the SelectionListWithModal.
Conditional Visibility: This entire section (introductory text + search bar) should only be visible if the page is not in the narrow-screen multi-select mode (i.e., when selectionModeHeader is false).
Order of Elements:
First, render the introductory text using getHeaderText(). This function already wraps its content in a <View> with appropriate styling.
Second, conditionally render the SearchBar. The SearchBar should only appear if there are tags to search, the data is not loading, and the list of tags is long enough to warrant a search. It should be wrapped in a <View> with horizontal padding consistent with the introductory text and appropriate vertical spacing.
Remove from List Header: The listHeaderContent prop of the SelectionListWithModal component should no longer be used to render the introductory text. It can be set to null or used for other list-specific header content if needed in the future.
This approach ensures that if the introductory text and search bar are meant to be shown, they are always rendered in the correct order (text above search) in the main page flow.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We should add or update tests to verify the layout of the introductory text and search bar on the Tags page under various conditions:
None
What alternative solutions did you explore? (Optional)
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.44-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@srikarparsi@adelekennedy@srikarparsi 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]
changed the title [-][Due for payment 2025-05-20] Tags - Introduction sentence is below the search field, instead of above the search field[/-][+][Due for payment 2025-05-22] [Due for payment 2025-05-20] Tags - Introduction sentence is below the search field, instead of above the search field[/+]on May 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@srikarparsi@adelekennedy@srikarparsi 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]
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
Activity
melvin-bot commentedon May 8, 2025
Triggered auto assignment to @adelekennedy (
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.melvin-bot commentedon May 8, 2025
Triggered auto assignment to @srikarparsi (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon May 8, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 8, 2025
👋 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:
melvin-bot commentedon May 8, 2025
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
olivierhabi commentedon May 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
On the "Workspace Settings > Tags" page, the introductory sentence (e.g., "Tags add more detailed ways to classify costs.") appears below the "Find tag" search field. This is inconsistent with the "Workspace Settings > Categories" page, where a similar introductory sentence appears above its search field. We need to make the Tags page consistent by placing its introductory sentence above the search field.
What is the root cause of that problem?
The root cause is the conditional rendering logic and component structure, particularly for narrow (mobile) layouts.
When the Tags page has data to display on a narrow screen:
SearchBarcomponent was rendered directly in the page's main body.getHeaderText(), was then rendered inside theSelectionListWithModalcomponent via itslistHeaderContentprop.This resulted in the
SearchBarappearing visually before the introductory text because the text was part of a child component rendered later. On wide screens, or when the narrow screen was loading or showing an empty state, the introductory text was rendered in the main body, which was correct, but the "narrow screen with data" case was handled differently, leading to the inconsistency.App/src/pages/workspace/tags/WorkspaceTagsPage.tsx
Lines 487 to 495 in 819bf62
What changes do you think we should make in order to solve the problem?
We should adjust the rendering order in the
WorkspaceTagsPagecomponent to ensure the introductory text consistently appears before the search bar when appropriate.getHeaderText()) and theSearchBarshould both be rendered directly within the main component structure, outside of theSelectionListWithModal.selectionModeHeaderis false).getHeaderText(). This function already wraps its content in a<View>with appropriate styling.SearchBar. TheSearchBarshould only appear if there are tags to search, the data is not loading, and the list of tags is long enough to warrant a search. It should be wrapped in a<View>with horizontal padding consistent with the introductory text and appropriate vertical spacing.listHeaderContentprop of theSelectionListWithModalcomponent should no longer be used to render the introductory text. It can be set tonullor used for other list-specific header content if needed in the future.This approach ensures that if the introductory text and search bar are meant to be shown, they are always rendered in the correct order (text above search) in the main page flow.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We should add or update tests to verify the layout of the introductory text and search bar on the Tags page under various conditions:
None
What alternative solutions did you explore? (Optional)
None
Result
Screen.Recording.2025-05-08.at.16.41.12.mov
melvin-bot commentedon May 8, 2025
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
16 remaining items
melvin-bot commentedon May 13, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 13, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.44-8 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-05-20. 🎊
melvin-bot commentedon May 13, 2025
@srikarparsi @adelekennedy @srikarparsi 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]
[-][Due for payment 2025-05-20] Tags - Introduction sentence is below the search field, instead of above the search field[/-][+][Due for payment 2025-05-22] [Due for payment 2025-05-20] Tags - Introduction sentence is below the search field, instead of above the search field[/+]melvin-bot commentedon May 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 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-05-22. 🎊
melvin-bot commentedon May 15, 2025
@srikarparsi @adelekennedy @srikarparsi 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 commentedon May 22, 2025
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
adelekennedy commentedon May 22, 2025
no payment required here I believe