Adjust padding in new SelectionList#74362
Conversation
SelectionList and fix it in ReportFieldsListValuesPageSelectionList
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.
One prop less 🤌🇮🇹🍝 Bellissimo
|
@aimane-chnaif 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] |
| const paddingBottomStyle = useMemo(() => !isKeyboardShown && safeAreaPaddingBottomStyle, [isKeyboardShown, safeAreaPaddingBottomStyle]); | ||
|
|
||
| const hasFooter = footerContent ?? confirmButtonConfig?.showButton; | ||
|
|
There was a problem hiding this comment.
❌ PERF-6 (docs)
This value derivation should be wrapped in useMemo with specific property dependencies to prevent unnecessary recalculations when unrelated confirmButtonConfig properties change.
Suggested fix:
const hasFooter = useMemo(() => footerContent ?? confirmButtonConfig?.showButton, [footerContent, confirmButtonConfig?.showButton]);There was a problem hiding this comment.
I think it's fine. Not much performance benefit
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromemchrome.moviOS: HybridAppios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktop |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No PR review required from a product perspective. Unsubscribing.
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.49-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.49-0 🚀
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.54-1 🚀
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.2.52-0 🚀
|
Explanation of Change
Fixed Issues
$ #74155 (and
SelectionListmigration issue)PROPOSAL:
Tests
WorkspacesReports-> andAdd fieldlisttypeInitial valueOffline tests
QA Steps
as above
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-20251106-135304.mp4
Android: mWeb Chrome
screen-20251106-135638.mp4
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop