SelectionList: Added listEmptyContent prop + QBO: Added an illustration for empty lists (when there is no accounts found)#42561
Conversation
Added listEmptyContent prop and useed it in QBO/Xero pages to display a no accounts found message
|
cc @trjExpensify @Expensify/design |
|
Thanks for the PR, @s77rt! Just checking you actioned on this for both Xero and QBO, right? |
|
@shawnborton Done! |
|
@trjExpensify Yes! 6 QBO pages and 3 Xero pages |
|
@rushatgabhane on yah! |
Spanish translation Co-authored-by: Rocio Perez-Cano <pecanoro@users.noreply.github.com>
|
@s77rt would you mind updating the screenshots for this one? I think we're there, I'm just having a hard time testing with the QBO connection involved. |
|
@dannymcclain Updated! |
|
Nice, looks good to me |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chromemy android mweb sim is broken. resinstalling doesn't help |
|
@rushatgabhane @s77rt Can you guys retest this pretty quick to make sure the renaming didn't break anything? |
|
@pecanoro Retested and works as expected |
|
@hayata-suenaga tagging you as per this comment |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
| ListFooterComponent={listFooterContent ?? ShowMoreButtonInstance} | ||
| ListHeaderComponent={listHeaderContent && listHeaderContent} | ||
| ListEmptyComponent={listEmptyContent} | ||
| contentContainerStyle={isEmptyList && listEmptyContent ? styles.flexGrow1 : undefined} |
There was a problem hiding this comment.
Hi @s77rt Could you explain why we need flexGrow1 here? Is it to let the listEmptyContent occupy all remaining space. If so, BlockingView already has flex1 which covers that case.
There was a problem hiding this comment.
@tienifr That's correct however the style on the BlockingView is not enough because the blocking view is rendered inside another view. contentContainerStyle sets the style on that wrapping view.












Details
Fixed Issues
$ #42544
PROPOSAL:
Tests
Preconditions:
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: mWeb Chrome
Networking issue
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop