[Workspace feeds] Add search bar if cards assignment list has 8+ cards#51955
Conversation
|
@dukenv0307 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] |
Reviewer Checklist
Screenshots/Videos |
|
native devices are so lagging for now, so I can't record video on iOS |
|
Can you upload a video with showing the scrolling list? 😇 |
|
@VickyStash Can you share the video when users scroll the list? Thanks |
|
@dubielzyk-expensify @dukenv0307 Here are scrolling videos Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromeandroid_web.mp4iOS: Nativeios.mp4iOS: mWeb Safariios_web.mp4MacOS: Chrome / Safariweb.mp4MacOS: Desktopdesktop.mp4 |
|
@VickyStash I think we should scroll the card list only, not all RHP. You can refer to another page like currency. wdyt? Screen.Recording.2024-11-07.at.15.58.21.mov |
|
@dukenv0307 Please, see the related discussion in the issue. |
|
@VickyStash Thanks for pointing that out |
|
@dubielzyk-expensify updated! Screenshots/Videos |
|
Good catch @dubielzyk-expensify! Those updated screens look better to me 👍 |
mountiny
left a comment
There was a problem hiding this comment.
Thanks for the changes and the design team for help with nailing this down
| RESTRICT: 'corporate', | ||
| ALLOW: 'personal', | ||
| }, | ||
| CARD_LIST_THRESHOLD: 8, |
There was a problem hiding this comment.
I think we should make a generic const for this, any list like this should turn into a searchable list if it has more than 8 elements
| /> | ||
| </View> | ||
| )} | ||
| <View style={[styles.flex1, (!isKeyboardShown || !!footerContent || showConfirmButton) && includeSafeAreaPaddingBottom && safeAreaPaddingBottomStyle, containerStyle]}> |
There was a problem hiding this comment.
@dukenv0307 @VickyStash, let's be on the lookout for any bugs related to these. Changing the base components is like pandora box
|
✋ 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.60-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.60-3 🚀
|
| } | ||
| shouldShowTextInputAfterHeader | ||
| includeSafeAreaPaddingBottom={false} | ||
| shouldShowListEmptyContent={false} |
There was a problem hiding this comment.
We should implement empty content instead of setting it to false here to make the UI consistent with other places.
More details at: #56078 (comment)



















Explanation of Change
[Workspace feeds] Add search bar if cards assignment list has 8+ cards
Fixed Issues
$ #51906
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as in the Tests sections.
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
Android: Native
android.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4