-
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
[Search] Selection Mode for small screens #44820
[Search] Selection Mode for small screens #44820
Conversation
I opened PR according to Slack convo - I will fill checklist and upload videos tomorrow |
@mkhutornyi 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/VideosAndroid: NativeScreen.Recording.2024-07-05.at.18.02.48.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-07-05.at.18.00.38.moviOS: mWeb SafariScreen.Recording.2024-07-05.at.18.03.36.movMacOS: DesktopScreen.Recording.2024-07-05.at.18.06.25.mov |
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.
@filip-solecki should we maintain the list of selected items when switching from mobile to desktop layout? If not in this PR, we should create an issue
Screen.Recording.2024-07-05.at.16.25.18.mov
It would probably be a good idea to do this |
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!
Created a follow-up issue for the above items as they're unrelated to the PR.
#44916
Hmm can we please fix the bold button in this PR? That doesn't exist anywhere else AFAIK. |
@shawnborton okayy def! @filip-solecki all yours |
{({hovered}) => ( | ||
<Animated.View style={[styles.tabSelectorButton, styles.tabBackground(hovered, true, theme.border), styles.w100, styles.mh3]}> | ||
<View style={[styles.flexRow]}> | ||
<Text>{translate('workspace.common.selected', {selectedNumber: itemsLength})}</Text> |
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.
styles.bold
here?
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.
Interesting, why does this use a custom component and not some kind of extension of our standard button components? Otherwise we run into issues just like this where we have inconsistent styles between buttons.
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.
Changed to Button
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!
So the cleanup issue is just for maintaining the selected items when moving from small to wide screens (and the other way around)? |
yes for maintaining selected items only |
@rlinoz I think it is all yours now! |
Let's fire up a test build, too. |
Really weird - it does not exist for me even on the same build and I am using Chrome too |
I can repro the issue Rodrigo is seeing on the build linked above. 2024-07-10_12-52-28.mp4I'm running a new build now for the avoidance of doubt. |
I can reproduce it right now, I am working on some solution |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
exists also on new build, working on it |
@trjExpensify @rlinoz |
Triggered a new build |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
It is fixed for me now! |
Same here, nice! |
Sorry, I was about to merge and realized we are not dismissing the bulk actions modal after executing the action. Screen.Recording.2024-07-10.at.14.00.25.mov |
@rlinoz Done |
✋ 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/rlinoz in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
<Button | ||
onPress={openMenu} | ||
ref={buttonRef} | ||
style={[styles.w100, styles.ph5]} | ||
text={translate('workspace.common.selected', {selectedNumber: itemsLength})} | ||
shouldShowRightIcon | ||
isContentCentered | ||
iconRight={Expensicons.DownArrow} | ||
/> |
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.
We forgot to disable this button when options.length
were 0. This caused #45445
Details
Fixed Issues
$ #44577
PROPOSAL:
Tests
Offline tests
QA Steps
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.mp4
Android: mWeb Chrome
Android_chrome.mp4
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Plus.-.2024-07-05.at.15.38.07.mp4
iOS: mWeb Safari
iOS_Safari.mp4
MacOS: Chrome / Safari
Web.mov
MacOS: Desktop
Desktop.mov