-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] Chat - Incorrect search result & Show More' Dropdown shown when one search result displayed #37267
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0113928963c9c991f9 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @puneetlath ( |
👋 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:
|
Current assignee @puneetlath is eligible for the Engineering assigner, not assigning anyone new. |
We think that this bug might be related to #vip-vsb |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect search result & Show More' Dropdown shown when one search result displayed What is the root cause of that problem?Let's take a look here: App/src/components/OptionsList/BaseOptionsList.tsx Lines 276 to 284 in 668df99
What changes do you think we should make in order to solve the problem?Add a new props called export default memo(
forwardRef(BaseOptionsList),
(prevProps, nextProps) =>
nextProps.focusedIndex === prevProps.focusedIndex &&
nextProps.shouldShowFooter === prevProps.shouldShowFooter &&
nextProps?.selectedOptions?.length === prevProps?.selectedOptions?.length &&
nextProps.headerMessage === prevProps.headerMessage &&
nextProps.isLoading === prevProps.isLoading &&
isEqual(nextProps.sections, prevProps.sections),
); // BaseOptionsList component
ListFooterComponent={shouldShowFooter && renderFooterContent} Finally update the shouldShowFooter={shouldShowShowMoreButton}
renderFooterContent={() =>
<ShowMoreButton
containerStyle={{...themeStyles.mt2, ...themeStyles.mb5}}
currentCount={CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * paginationPage}
totalCount={allOptions.length}
onPress={incrementPage}
/>
} What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Incorrect search result counter and "Show More' Dropdown button shown when one search result displayed. When the user taps on the 'Show More' button, nothing happens. What is the root cause of that problem?This is the regression of this PR #31606, we pass the wrong What changes do you think we should make in order to solve the problem?we should pass
What alternative solutions did you explore? (Optional)NA |
I could not reproduce the issue. @dukenv0307 @benjaminbennet Is the issue still reproducible? If yes, Can you please share the steps to reproduce the issue? |
I'm also not able to reproduce. Going to close, but feel free to comment if you're able to reproduce it. |
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 haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.44-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+omq1@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal Team
Action Performed:
Precondition: user Signed In with expensifail account
Expected Result:
The search result page should be properly displayed
Actual Result:
Incorrect search result counter and "Show More' Dropdown button shown when one search result displayed. When the user taps on the 'Show More' button, nothing happens.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6393599_1709009871871.RPReplay_Final1708998854.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: