feat: Initial UI for search view(https://wearezeta.atlassian.net/browse/WPB-20721)#21189
feat: Initial UI for search view(https://wearezeta.atlassian.net/browse/WPB-20721)#21189arjita-mitra wants to merge 3 commits intodevfrom
Conversation
4ae2708 to
796b642
Compare
|
🔗 Download Full Report Artifact 🧪 Playwright Test Summary
specs/CriticalFlow/groupCalls-TC-8632.spec.ts (❌ 0 failed,
|
e-maad
left a comment
There was a problem hiding this comment.
LGTM, added few suggestions
| data-uie-name="full-search-dismiss" | ||
| aria-label={t('fullsearchCancelCloseBtn')} | ||
| onClick={onSearchClear} | ||
| <input |
There was a problem hiding this comment.
Did we stop consuming components from react-ui-kit?
|
|
||
| {searchValue && ( | ||
| <CloseIcon | ||
| css={{cursor: 'pointer', flexShrink: 0}} |
There was a problem hiding this comment.
Opportunity to move it in css file.
|
|
||
| import {rootHomeIconStyles} from './CellsHeader.styles'; | ||
|
|
||
| export const CellsRootHomeIcon = () => { |
There was a problem hiding this comment.
We have all the icons in react-ui-kit
| <div css={tabsWrapperStyles}> | ||
| <div | ||
| aria-hidden={isSharedDriveSearchViewOpen || undefined} | ||
| css={isSharedDriveSearchViewOpen ? tabsHiddenStyles : undefined} |
There was a problem hiding this comment.
| css={isSharedDriveSearchViewOpen ? tabsHiddenStyles : undefined} | |
| css={isSharedDriveSearchViewOpen && tabsHiddenStyles} |
There was a problem hiding this comment.
The ternary makes the "apply style vs apply nothing" contract explicit. && relies on truthy/falsy behavior. With Emotion this is usually fine but if typings are narrowed TypeScript could start to complain (false | SerializedStyles).
| css={{marginBottom: 0}} | ||
| onClick={onClickStartAudio} | ||
| onClick={event => { | ||
| currentFocusedElementRef.current = event.target as HTMLButtonElement; |
There was a problem hiding this comment.
Do we have to cast it as HTMLButtonElement?
|



Wire drive initial search view and default view. Epic Link