-
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
SelectionList: Added listEmptyContent prop + QBO: Added an illustration for empty lists (when there is no accounts found) #42561
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 |
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.
LGTM
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
Networking issue
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop