Repository navigation
fix: Tags - List jumps to “Show More” when selecting tag after 500. #66780
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
Merged
rafecolton
merged 16 commits into
Expensify:main
from
Krishna2323:krishna2323/issue/65977
Aug 5, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
655fdca
fix: Tags - List jumps to “Show More” when selecting tag after 500.
Krishna2323 2d2ff2d
Merge branch 'Expensify:main' into krishna2323/issue/65977
Krishna2323 e186b1a
resolve merge conflicts.
Krishna2323 17b4e2e
resolve merge conflicts.
Krishna2323 05d59d8
Merge branch 'Expensify:main' into krishna2323/issue/65977
Krishna2323 0dbcc61
update unit tests.
Krishna2323 3e8a6ae
comment update
Krishna2323 364ac0c
update comment.
Krishna2323 63c507e
Merge branch 'main' into krishna2323/issue/65977
Krishna2323 daa7675
fix unit tests.
Krishna2323 ce1a622
comment update.
Krishna2323 334b499
fix merge conflicts.
Krishna2323 45070f5
Merge branch 'Expensify:main' into krishna2323/issue/65977
Krishna2323 cac3654
re-implement tests.
Krishna2323 0291827
remove redundant code.
Krishna2323 181f146
Merge branch 'Expensify:main' into krishna2323/issue/65977
Krishna2323 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rerender to mock sections look here looks incorrect to me. Btw, we should simulate the behavior that user tap on the checkbox, not the "show more" button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does re-rendering seem incorrect to you? We just need to update the selected options array and ensure that the
currentPageis not reset to 1. I think this is the correct way to handle it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm expecting we should simulate press checkbox like this
App/tests/unit/BaseSelectionListTest.tsx
Line 52 in 4b0bfd6
Re-render only makes sense if the props is updated from outside like this
App/tests/unit/BaseSelectionListTest.tsx
Lines 67 to 77 in 4b0bfd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From this recording #66780 (comment). Are you saying that we can't write test for this simulate press checkbox case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can simulate a checkbox press, but it will have no effect because the options with property
isSelectedcome from the parent component, which usesSelectionList. The selected options only change if the parent component handles theonSelectRowcallback and provides updated sections to theSelectionListviasections={[{data: updatedLargeMockSections}]}.