Skip to content

Commit

Permalink
display filter results & bold matches
Browse files Browse the repository at this point in the history
  • Loading branch information
clairelin135 committed Mar 9, 2024
1 parent 6969854 commit 9f5aa2c
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,74 @@ export const SearchDialog = ({
transitionDuration={100}
>
<Container>
<<<<<<< HEAD
{searchInput}
{searchResults}
=======
<SearchBox hasQueryString={!!queryString.length}>
<Icon name="search" color={Colors.accentGray()} size={20} />
<SearchInput
data-search-input="1"
autoFocus
spellCheck={false}
onChange={onChange}
onKeyDown={onKeyDown}
placeholder={
isAssetSearch ? 'Search assets' : 'Search assets, jobs, schedules, sensors…'
}
type="text"
value={queryString}
/>
{loading ? <Spinner purpose="body-text" /> : null}
</SearchBox>
<SearchResults
highlight={highlight}
queryString={queryString}
results={renderedResults}
onClickResult={onClickResult}
filterResults={[]}
/>
>>>>>>> 60e496c9bd (display filter results & bold matches)
</Container>
</Overlay>
</>
);
} else {
return (
<<<<<<< HEAD
<SearchInputWrapper>
{searchInput}
<SearchResultsWrapper>{searchResults}</SearchResultsWrapper>
</SearchInputWrapper>
=======
<InPageSearchContainer>
<SearchBox hasQueryString={!!queryString.length}>
<Icon name="search" color={Colors.accentGray()} size={20} />
<SearchInput
data-search-input="1"
autoFocus
spellCheck={false}
onChange={onChange}
onKeyDown={onKeyDown}
placeholder={
isAssetSearch ? 'Search assets' : 'Search assets, jobs, schedules, sensors…'
}
type="text"
value={queryString}
/>
{loading ? <Spinner purpose="body-text" /> : null}
</SearchBox>
<SearchResultsWrapper>
<SearchResults
highlight={highlight}
queryString={queryString}
results={renderedResults}
filterResults={assetFilterResults}
onClickResult={onClickResult}
/>
</SearchResultsWrapper>
</InPageSearchContainer>
>>>>>>> 60e496c9bd (display filter results & bold matches)
);
}
};
Expand Down

0 comments on commit 9f5aa2c

Please sign in to comment.