-
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
[Workspace feeds] Add search bar if cards assignment list has 8+ cards #51955
[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] |
src/pages/workspace/companyCards/assignCard/CardSelectionStep.tsx
Outdated
Show resolved
Hide resolved
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 |
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
@dubielzyk-expensify updated! Screenshots/Videos |
Good catch @dubielzyk-expensify! Those updated screens look better to me 👍 |
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 for the changes and the design team for help with nailing this down
@@ -2803,6 +2803,7 @@ const CONST = { | |||
RESTRICT: 'corporate', | |||
ALLOW: 'personal', | |||
}, | |||
CARD_LIST_THRESHOLD: 8, |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 🚀
|
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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.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