Repository navigation
update empty state for ws feed - #53118
Conversation
|
@DylanDylann Can you please review the PR? Thanks |
|
@dukenv0307 Great Job |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-11-26.at.15.58.20.mov |
mountiny
left a comment
There was a problem hiding this comment.
Looks great, thanks for the changes
| const policy = PolicyUtils.getPolicy(policyID); | ||
|
|
||
| const filteredCardList = CardUtils.getFilteredCardList(cardsList); | ||
|
|
There was a problem hiding this comment.
NAB
| const policy = PolicyUtils.getPolicy(policyID); | |
| const filteredCardList = CardUtils.getFilteredCardList(cardsList); | |
| const policy = PolicyUtils.getPolicy(policyID); | |
| const filteredCardList = CardUtils.getFilteredCardList(cardsList); |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To Duration
Show details
Meaningless Changes To DurationShow entries
Show details
|
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
|
@mountiny I don't think our QA team can validate this. We cannot test assigning company cards. Can this be internally verified? |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.68-0 🚀
|
|
I dont think this PR could cause such regression |
|
worked |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.68-7 🚀
|
|
@mountiny @dukenv0307 @dukenv0307 I don't think this PR did quite exactly what we wanted. We're showing the |
|
Bring the discussion on Slack |
|
I can't join this room, @mountiny @joekaufmanexpensify Can you invite me to this room/thread? Thanks |
| <WorkspaceCompanyCardsListHeaderButtons | ||
| policyID={policyID} | ||
| selectedFeed={selectedFeed} | ||
| shouldShowAssignCardButton={isPending || !isEmptyObject(cardsList)} |
There was a problem hiding this comment.
I think its because the cardList contains a nested cardList for the custom feeds with the cards available to assign so it its not empty object potentially, I think we need to filter out the cardList key and only look at the cards with the cardIDs @dukenv0307 @DylanDylann @VickyStash








Explanation of Change
As part of an on-going update throughout the app, we are updating the empty state of workspace feeds to include the call-to-action directly within the empty state modal, like so.
Fixed Issues
$ #53091
PROPOSAL:
Tests
If the feed is pending, we show the greyed assign card button in the top right of the page.
If there is an empty state and we want you to take an action (in this case assign your first card), we put a (green) button in the empty state
Once you take the action (assign one card), we move the (green) button to where it's located now in the top right of the page.
Verify that no errors appear in the JS console
Offline tests
Same as above
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Details
Screen.Recording.2024-11-26.at.16.10.38.mov
Android: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-11-26.at.16.11.20.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-11-26.at.15.21.45.mov
Screen.Recording.2024-11-26.at.16.06.10.mov
MacOS: Desktop
Screen.Recording.2024-11-26.at.16.13.22.mov