fix: Workspace switcher search bar is in the wrong place.#41158
fix: Workspace switcher search bar is in the wrong place.#41158blimpich merged 15 commits intoExpensify:mainfrom
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
In the design the input placeholder is |
|
@Expensify/design could you please confirm if this is looking as expected? thanks! |
|
Hmm if we do want to add the icon, I would say we should add it to the right side of the input. Can you try that and show us what it looks like? |
|
@Krishna2323 any updates? |
@shawnborton @getusha, IMO, we shouldn't add this because no other input in the app has this icon, or if we want, we can add this as default for every selection list input.
|
I actually don't mind the idea of making it so that every search box above a selection list uses that same style, which has the magnifying glass. What do you think @Expensify/design ? The alternative is to just omit the Search icon entirely, but I do think the icon helps this particular component look more like a search box and less like a heading. |
Yeah I don't think that's a bad idea at all. At the same time, the right side in this workspace switcher is looking a little crazy, so I could be persuaded to drop the icon as well. I'll be happy with whatever you and @dubielzyk-expensify think is best! |
|
True, but that's a good point - maybe we just need the search icon to be properly aligned all the way to the right side of the input. @Krishna2323 can you try that please? |
|
@dannymcclain @shawnborton, currently the search icon has 8px padding right, if we remove the padding right from the icon it will still not look aligned with above 2 icons, so I reduced it to 4px instead. Padding right 4px
No Padding
|
|
Hmm that feels like a strange exception to make though, because we can't always guarantee these kinds of inputs will be in the same view as those kinds of list items. So I think I would prefer we just drop the icon altogether if that's the case. |
Yeah same. |
|
Feels like you landed in a good place by dropping it. Makes sense to me 👍 |
|
@getusha, I think we don't want to make any changes here, can you pls start reviewing. |
|
I think we missed a case, we should include the Everything option to be selectable using a keyboard Screen.Recording.2024-05-07.at.9.46.49.in.the.morning.mov |
|
@getusha, including the Everything option as a selectable using keyboard will be tricky, can we pls confirm if that is required. cc: @shawnborton @rlinoz |
|
Personally I don't think |
|
Yup, I agree with that |
|
@dannymcclain @shawnborton thanks! @getusha, you can continue the review. |
|
@getusha, bump for review. |
|
Screen.Recording.2024-05-12.at.12.34.14.in.the.afternoon.mov |
|
@dubielzyk-expensify @getusha, does this look correct?
|
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
it looks good to me |
100% agree with Jon. I think it's looking good—here's a little screenshot with 20px rectangles on the left and right to help visualize the alignment in this comment. |
|
Also for this one:
Can you pull main? We recently merged this one which might fix some of those issues. Particularly this comment here. |
|
Yep that looks good to me. Defs do what @shawnborton said as well. Last question for design. Do we want the search icon on the right of the input field or not? I know we've gone back and forth on that one, but forget if we made a call. |
|
Good question - last I remember, we decided to punt the icon? |
|
@shawnborton @dubielzyk-expensify, Yep we agreed to drop the icon because of the alignment issue. #41158 (comment) #41158 (comment) |
|
Other than the bugs, the visuals look good to me 👍 |
|
will fix the bug today. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@getusha, loading placeholder bug fixed. |
|
@Krishna2323 lint is failing |
| listFooterContent={shouldShowCreateWorkspace ? WorkspaceCardCreateAWorkspaceInstance : null} | ||
| initiallyFocusedOptionKey={activeWorkspaceID ?? CONST.WORKSPACE_SWITCHER.NAME} | ||
| showLoadingPlaceholder={fetchStatus.status === 'loading' || !didScreenTransitionEnd} | ||
| />{' '} |
There was a problem hiding this comment.
why is this? it's causing a warning on native
There was a problem hiding this comment.
showLoadingPlaceholder prop?
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
✋ 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 production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|











Details
Fixed Issues
$ #40826
PROPOSAL: #40826 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4