From 4e067ed3e007a17b4d7df47ec005a4221f42fa3b Mon Sep 17 00:00:00 2001 From: Leandro Beretta Date: Fri, 12 Jul 2024 09:38:36 -0300 Subject: [PATCH] add dev graph card --- plugins/kiali/dev/index.tsx | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/plugins/kiali/dev/index.tsx b/plugins/kiali/dev/index.tsx index a0d2e245e45..99d51ac30bf 100644 --- a/plugins/kiali/dev/index.tsx +++ b/plugins/kiali/dev/index.tsx @@ -13,7 +13,7 @@ import { EntityKialiResourcesCard, kialiPlugin } from '../src'; import { KialiHelper } from '../src/pages/Kiali/KialiHelper'; import { KialiNoAnnotation } from '../src/pages/Kiali/KialiNoAnnotation'; import { KialiNoResources } from '../src/pages/Kiali/KialiNoResources'; -import { pluginName } from '../src/plugin'; +import { EntityKialiGraphCard, pluginName } from '../src/plugin'; import { rootRouteRef } from '../src/routes'; import { kialiApiRef } from '../src/services/Api'; import { KialiChecker, ValidationCategory } from '../src/store/KialiProvider'; @@ -50,6 +50,28 @@ const MockEntityCard = () => { ); }; +const MockEntityGraphCard = () => { + const content = ( + +
+ + + + + + + +
+
+ ); + + return ( + + {content} + + ); +}; + const MockKialiError = () => { const errorsTypes: KialiChecker[] = [ { @@ -145,4 +167,9 @@ createDevApp() title: 'Resources card', path: '/kiali-entity-card', }) + .addPage({ + element: , + title: 'Graph card', + path: '/kiali-graph-card', + }) .render();