Skip to content

Commit

Permalink
[Observability Onboarding] Show search bar even when category is not …
Browse files Browse the repository at this point in the history
…selected (elastic#197825)

Closes elastic/observability-dev#4065 🔒

Fixes an issue when search bar is not visible unless a category is
selected.

![CleanShot 2024-10-25 at 14 53
44@2x](https://github.com/user-attachments/assets/774d2fe2-e4f0-4a46-a851-a0f756a96b12)
  • Loading branch information
mykolaharmash authored Oct 28, 2024
1 parent b6de3b7 commit 97f227e
Showing 1 changed file with 28 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,33 +316,34 @@ export const OnboardingFlowForm: FunctionComponent = () => {
flowCategory={searchParams.get('category')}
/>
</div>
<div ref={searchResultsRef}>
<EuiSpacer size="m" />
<EuiText size="s" color="subdued">
<strong>
<FormattedMessage
id="xpack.observability_onboarding.experimentalOnboardingFlow.form.searchPromptText"
defaultMessage="Search through other ways of ingesting data:"
/>
</strong>
</EuiText>
<EuiSpacer size="m" />
<OnboardingFlowPackageList
showSearchBar={true}
searchQuery={integrationSearch}
flowSearch={integrationSearch}
setSearchQuery={setIntegrationSearch}
flowCategory={searchParams.get('category')}
customCards={customCards
?.filter(
// Filter out collection cards and regular integrations that show up via search anyway
(card) => card.type === 'virtual' && !card.isCollectionCard
)
.concat(virtualSearchResults)}
excludePackageIdList={searchExcludePackageIdList}
joinCardLists
/>
</div>
</div>

<div ref={searchResultsRef}>
<EuiSpacer size="xxl" />
<EuiText size="s" color="subdued">
<strong>
<FormattedMessage
id="xpack.observability_onboarding.experimentalOnboardingFlow.form.searchPromptText"
defaultMessage="Search through other ways of ingesting data:"
/>
</strong>
</EuiText>
<EuiSpacer size="m" />
<OnboardingFlowPackageList
showSearchBar={true}
searchQuery={integrationSearch}
flowSearch={integrationSearch}
setSearchQuery={setIntegrationSearch}
flowCategory={searchParams.get('category')}
customCards={customCards
?.filter(
// Filter out collection cards and regular integrations that show up via search anyway
(card) => card.type === 'virtual' && !card.isCollectionCard
)
.concat(virtualSearchResults)}
excludePackageIdList={searchExcludePackageIdList}
joinCardLists
/>
</div>
</EuiPanel>
);
Expand Down

0 comments on commit 97f227e

Please sign in to comment.