Create new SelectionListWithSections component#79957
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
blazejkustra
left a comment
There was a problem hiding this comment.
Looks solid and well-structured!!! 🚀
staszekscp
left a comment
There was a problem hiding this comment.
Great job! I love new hooks! 🎉
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e73c49cfe8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| try { | ||
| listRef.current.scrollToIndex({index}); | ||
| } catch (error) { | ||
| // FlashList may throw if layout for this index doesn't exist yet |
There was a problem hiding this comment.
I think we should add the log here
| initialFocusedIndex, | ||
| maxIndex: flattenedData.length - 1, | ||
| disabledIndexes, | ||
| isActive: isScreenFocused, |
There was a problem hiding this comment.
Should we active useArrowKeyFocusManager only when the flattenedData.length >0
There was a problem hiding this comment.
I can add this however in normal SelectionList it woks fine without this check, wdyt? I don't think we've experienced any problems with it
There was a problem hiding this comment.
@zfurtak I can't find the specific reason, but I see we're doing the same in other places like
App/src/pages/home/report/ReportActionCompose/SuggestionEmoji.tsx
Lines 56 to 59 in 03cf165
so I think we can do it here
|
@zfurtak Can you please check the failed tests? The rest looks good. I'll start testing now |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-22.at.22.27.21.movAndroid: mWeb ChromeScreen.Recording.2026-01-22.at.22.25.51.moviOS: HybridAppScreen.Recording.2026-01-22.at.22.27.55.moviOS: mWeb SafariScreen.Recording.2026-01-22.at.22.24.19.movMacOS: Chrome / SafariScreen.Recording.2026-01-22.at.22.20.51.mov |
these are some internal 500 errors, I guess they'll be fixed with a merge soon |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.8-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.8-3 🚀
|
Explanation of Change
This PR introduces a new,
FlashList-based version ofSelectionListWithSections. And also migratesTaxPickerto use new component.Changes:
Note
This version will be further developed during the migration of related components
Fixed Issues
$ #65657
PROPOSAL:
Tests
TaxesenabledWorkspace currency defaultandForeign currency defaultOffline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
screen-20260121-113905-1768991915409.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-01-20.at.12.08.15.mov