-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [Due for payment 2025-05-20] [$250] Report fields - Search field disappears after entering search term #61652
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
Comments
Triggered auto assignment to @OfstadC ( |
Triggered auto assignment to @nkuoch ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Report fields - Search field disappears after entering search term What is the root cause of that problem?we are showing the search bar only if the length of the filtered list items is greater than 15. Once we enter some text in the search bar and the matching items list length is less than 15, the search bar disappears. App/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx Lines 333 to 335 in f9942f1
Issue coming from this PR: #60488 What changes do you think we should make in order to solve the problem?Instead of using the filtered list length
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)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@daledah is already working on a fix |
Job added to Upwork: https://www.upwork.com/jobs/~021920379890102559140 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
oops, I should probably not have added the external label. Can you remove the upwork job @OfstadC ? |
ProposalPlease re-state the problem that we are trying to solve in this issue.On the "List values" screen for a report field, the search bar (labeled "Find report field") disappears if the user types a search term that reduces the number of displayed items to below a certain count. This happens even if the search bar was initially shown because the total list was long. This prevents the user from easily changing or clearing their search. What is the root cause of that problem?The search bar's visibility is currently determined by whether the number of filtered list items (items matching the search term) is greater than a predefined limit. If searching reduces the item count below this limit, the condition to show the search bar becomes false, and it disappears. The visibility should instead be based on the length of the original, complete list of values. App/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx Lines 333 to 340 in e339a93
What changes do you think we should make in order to solve the problem?We will modify the condition that decides whether to show the
This change ensures that if the search bar is displayed because the overall list is long enough, it will stay visible even if the user's search term results in few or no matching items. {!shouldShowEmptyState && data.length > CONST.SEARCH_ITEM_LIMIT && (
<SearchBar
label={translate('workspace.reportFields.findReportField')}
inputValue={inputValue}
onChangeText={setInputValue}
shouldShowEmptyState={!shouldShowEmptyState && filteredListValues.length === 0}
/>
)} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)None |
The search field in the List Values modal was disappearing after entering a search term due to unnecessary re-renders of the parent component. I refactored the component structure to ensure the search field remains persistently mounted and applied local filtering of the list values based on the search term. Tested and confirmed the fix works across Web, Desktop, iOS, and Android. |
📣 @Shehram33! 📣
|
Hi
I have create my account on your application but i want admin
Credential for debug your error because Workflow module created for Admin
I preferred share your screen & Anydesk etc for Debug your Issue
[image: image.png]
…On Thu, May 8, 2025 at 4:02 PM melvin-bot[bot] ***@***.***> wrote:
*melvin-bot[bot]* left a comment (Expensify/App#61652)
<#61652 (comment)>
📣 @Shehram33 <https://github.com/Shehram33>! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have
to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
1. Make sure you've read and understood the contributing guidelines
<https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md>
.
2. Get the email address used to login to your Expensify account. If
you don't already have an Expensify account, create one here
<https://new.expensify.com/>. If you have multiple accounts (e.g. one
for testing), please use your main account email.
3. Get the link to your Upwork profile. It's necessary because we only
pay via Upwork. You can access it by logging in, and then clicking on your
name. It'll look like this
<https://www.upwork.com/freelancers/~01ca8ad8ce36b9eceb>. If you don't
already have an account, sign up for one here
<https://www.upwork.com/nx/signup/?dest=home>.
4. Copy the format below and paste it in a comment on this issue.
Replace the placeholder text with your actual details.
[image: Screen Shot 2022-11-16 at 4 42 54 PM]
<https://user-images.githubusercontent.com/30609178/231263719-a8a3b7d3-36a0-4d7f-8ad4-cebe1f560fa4.png>
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
—
Reply to this email directly, view it on GitHub
<#61652 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3KCBEWR6RKJDBEL5QX3TKT25M2V5AVCNFSM6AAAAAB4VUPMB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNRSGY2DENZTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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. |
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. |
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. |
Withdrawing this proposal to comply with Expensify’s one-proposal-at-a-time policy. |
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. |
Search field will not disappear after entering the search term. - fixed 20250509_193610.mp4 |
If we need to raise a new issue, let us know |
It's the same RCA as #61752 so I think we don't need a new issue. |
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. |
|
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. 🎊 For reference, here are some details about the assignees on this issue:
|
@sobitneupane @OfstadC @sobitneupane 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] |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
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. 🎊 For reference, here are some details about the assignees on this issue:
|
@sobitneupane @OfstadC @sobitneupane 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] |
This was a regression, and it has been addressed. I believe the issue can now be closed. |
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.42-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check
If this was caught during regression testing, add the test name, ID and link from TestRail: #60488
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Workspace Settings
Action Performed:
Precondition:
Expected Result:
Search field will not disappear after entering search term.
Actual Result:
Search field disappears after entering search term.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6825246_1746684692248.20250508_140838.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: