-
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
[No QA] Empty state modal #45690
[No QA] Empty state modal #45690
Conversation
@shawnborton padding fixed: |
Amazing - and just confirming that the modal uses 20px padding for mobile devices? |
@shawnborton yep, it now has the same styles as Workspace Empty page. I have some problems with building the app on mobile rn, so I can't make a screenshot. When I fix it I'll add one. |
Wonderful, thanks again! |
@koko57 making a build so you can at least test android @allgandalf @DylanDylann maybe you could test the native too and provide screenshots to unblock this? |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
I will take over this PR |
@@ -1,3 +1,4 @@ | |||
import EmptyCardState from '@assets/images/emptystate__expensifycard.svg'; |
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.
Comment to add reviewer
@shawnborton I'm looking into it. Not sure if it is one of the reasons, but in the SVG the screenshot element is subtly overflowing the green background |
Oh good catch on that... here is a new one to try, sorry for all of the different versions of this one. emptystate__expensifycard.svg.zip |
@koko57 It failed on native app |
@DylanDylann just pushed a fix for that - can you test on Android, please? I'm still having a problem with building for android, I have screenshots for iOS, will add them in a sec |
@shawnborton I've added the screenshots for padding fix for other platforms to the Author's Checklist |
@mountiny I'm still fighting with Andorid builds, should I open the PR anyway? |
I will test this PR on Android. Feel free to open this PR |
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.
Changes look good to me! @DylanDylann let us know when you are done, thanks
@koko57 I don't think we should use ScrollView in Screen.Recording.2024-07-22.at.13.58.35.mov |
What we're doing in the video is on purpose though, we want to make the fine print show below the fold here. |
@koko57 Please resolve conflict |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-22.at.14.38.30.movAndroid: mWeb ChromeScreen.Recording.2024-07-22.at.14.33.20.moviOS: NativeScreen.Recording.2024-07-22.at.14.38.04.moviOS: mWeb SafariScreen.Recording.2024-07-22.at.14.31.41.movMacOS: Chrome / SafariScreen.Recording.2024-07-22.at.14.27.46.movMacOS: DesktopScreen.Recording.2024-07-22.at.14.30.58.mov |
@DylanDylann conflicts resolved |
@koko57 Lint error 😄 |
@DylanDylann fixed |
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.
Thanks, changes looking good, just waiting for a final design confirmation @shawnborton
Yeah I think the desktop spacing looks pretty good but I think the mobile/small viewports could benefit from a little extra space below the buttons. Not a HUGE deal, but a nice little polish. |
Thanks, I think we can address that in the next design follow up as this is a larger PR to avoid conflicts, I will merge it now and link this to the design polish issue |
✋ 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/mountiny in version: 9.0.11-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.0.11-2 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.12-0 🚀
|
renderItem={renderItem} | ||
ListHeaderComponent={WorkspaceCardListHeader} | ||
/> | ||
{!isEmptyObject(cardsList) ? ( |
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.
@koko57 Please help to explain this line
As I understand, we display EmptyCardView if cardList í empty
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.
@DylanDylann yes, I did it probably bc I didn't want to remove mockedCard list in this PR. I'll tell Vicky (she's integrating BE with the cardList), to correct this condition
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.
yes, she did it in her PR https://github.com/Expensify/App/pull/47064/files
Details
Fixed Issues
$ #44306
PROPOSAL: -
Tests
PREREQUISITES: you need to have permissions for workspace card enabled
Offline tests
QA Steps
n/a
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
padding fix:
iOS: Native
padding fix:
iOS: mWeb Safari
padding fix:
MacOS: Chrome / Safari
https://github.com/user-attachments/assets/d212e7e7-b42a-4d6a-bae0-30092fa18811
padding fix:
MacOS: Desktop
padding fix: