mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Onboarding] Hide card labels in search results (#213417)
Closes https://github.com/elastic/kibana/issues/200917 Looking at the code in Fleet search results screen, cards would also have the `Unverified` badges. ([this check](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/card_utils.tsx#L101) would return `true` because this specific page doesn't provides `packageVerificationKeyId` to the `isPackageUnverified()` function, this only happens on the individual integration details page. Fleet search just [hides the badges](https://github.com/elastic/kibana/blob/main/x-pack/platform/plugins/shared/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx#L188) for cards in search results. This change aligns Onboarding search results with Fleet search results and hides the card labels which fixes the issue with `Unverified` badge appearing for installed integrations. | Before | After | | --- | --- | |  |  |
This commit is contained in:
parent
9a3d83415d
commit
33f71ae678
3 changed files with 7 additions and 4 deletions
|
@ -325,7 +325,7 @@ export const OnboardingFlowForm: FunctionComponent = () => {
|
|||
</strong>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="m" />
|
||||
<PackageList list={featuredCardsForCategory} />
|
||||
<PackageList list={featuredCardsForCategory} showCardLabels={true} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -17,9 +17,10 @@ export const LazyPackageList = lazy(async () => ({
|
|||
interface Props {
|
||||
list: IntegrationCardItem[];
|
||||
searchTerm?: string;
|
||||
showCardLabels?: boolean;
|
||||
}
|
||||
|
||||
export function PackageList({ list, searchTerm = '' }: Props) {
|
||||
export function PackageList({ list, searchTerm = '', showCardLabels }: Props) {
|
||||
return (
|
||||
/**
|
||||
* Suspense wrapper is required by PackageListGrid, but
|
||||
|
@ -40,7 +41,7 @@ export function PackageList({ list, searchTerm = '' }: Props) {
|
|||
categories={[]}
|
||||
setUrlandReplaceHistory={() => {}}
|
||||
setUrlandPushHistory={() => {}}
|
||||
showCardLabels={true}
|
||||
showCardLabels={showCardLabels}
|
||||
/>
|
||||
</Suspense>
|
||||
);
|
||||
|
|
|
@ -77,7 +77,9 @@ const PackageListGridWrapper = ({
|
|||
}}
|
||||
query={searchQuery}
|
||||
/>
|
||||
{searchQuery !== '' && <PackageList list={list} searchTerm={searchQuery} />}
|
||||
{searchQuery !== '' && (
|
||||
<PackageList list={list} searchTerm={searchQuery} showCardLabels={false} />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue