[8.16] [Observability Onboarding] Show search bar even when category is not selected (#197825) (#197973)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Observability Onboarding] Show search bar even when category is not
selected (#197825)](https://github.com/elastic/kibana/pull/197825)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Mykola
Harmash","email":"mykola.harmash@gmail.com"},"sourceCommit":{"committedDate":"2024-10-28T11:21:07Z","message":"[Observability
Onboarding] Show search bar even when category is not selected
(#197825)\n\nCloses
https://github.com/elastic/observability-dev/issues/4065 🔒\r\n\r\nFixes
an issue when search bar is not visible unless a category
is\r\nselected.\r\n\r\n![CleanShot 2024-10-25 at 14
53\r\n44@2x](https://github.com/user-attachments/assets/774d2fe2-e4f0-4a46-a851-a0f756a96b12)","sha":"97f227ef714b3ffe83cbd6a9db5db9d11e6d23fd","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-logs","v8.16.0"],"title":"[Observability
Onboarding] Show search bar even when category is not
selected","number":197825,"url":"https://github.com/elastic/kibana/pull/197825","mergeCommit":{"message":"[Observability
Onboarding] Show search bar even when category is not selected
(#197825)\n\nCloses
https://github.com/elastic/observability-dev/issues/4065 🔒\r\n\r\nFixes
an issue when search bar is not visible unless a category
is\r\nselected.\r\n\r\n![CleanShot 2024-10-25 at 14
53\r\n44@2x](https://github.com/user-attachments/assets/774d2fe2-e4f0-4a46-a851-a0f756a96b12)","sha":"97f227ef714b3ffe83cbd6a9db5db9d11e6d23fd"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197825","number":197825,"mergeCommit":{"message":"[Observability
Onboarding] Show search bar even when category is not selected
(#197825)\n\nCloses
https://github.com/elastic/observability-dev/issues/4065 🔒\r\n\r\nFixes
an issue when search bar is not visible unless a category
is\r\nselected.\r\n\r\n![CleanShot 2024-10-25 at 14
53\r\n44@2x](https://github.com/user-attachments/assets/774d2fe2-e4f0-4a46-a851-a0f756a96b12)","sha":"97f227ef714b3ffe83cbd6a9db5db9d11e6d23fd"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Mykola Harmash <mykola.harmash@gmail.com>
This commit is contained in:
Kibana Machine 2024-10-29 00:07:46 +11:00 committed by GitHub
parent 12da822e3d
commit 51da2182b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>
);