From d6151f1357a24b326c089fe1e6e50a380277f279 Mon Sep 17 00:00:00 2001 From: Vincent T Date: Wed, 15 May 2024 12:47:46 -0400 Subject: [PATCH] frontend: Add CNCF badge to charts Signed-off-by: Vincent T --- app-catalog/src/components/charts/List.tsx | 34 +++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/app-catalog/src/components/charts/List.tsx b/app-catalog/src/components/charts/List.tsx index 619cc31..60325fa 100644 --- a/app-catalog/src/components/charts/List.tsx +++ b/app-catalog/src/components/charts/List.tsx @@ -1,3 +1,4 @@ +import { Icon } from '@iconify/react'; import { Link as RouterLink, Loader, @@ -158,25 +159,50 @@ export function ChartsList({ fetchCharts = fetchChartsFromArtifact }) { ) : charts.length === 0 ? ( - {`No charts found for ${ - search ? `search term: ${search}` : `category: ${chartCategory.title}` - }`} + {`No charts found for ${search ? `search term: ${search}` : `category: ${chartCategory.title}` + }`} ) : ( charts.map(chart => { + console.log('chart', chart) return ( - + + + {chart.repository.cncf && ( + + + + )} + {chart.official && ( + + + + )} + {chart.repository.verified_publisher && ( + + + + )} +