From 30248eabb42810ef1c88bd3ca5712065f05ef2a7 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Thu, 23 Mar 2023 08:20:30 +1300 Subject: [PATCH] fix(apps) UI release fixes [EE-5197] (#8702) * fix(apps) searchbar flex resizing and insights * UI fixes * update stacks datatable --------- Co-authored-by: testa113 --- app/docker/react/components/index.ts | 12 + .../applicationsDatatable.html | 230 +++++++++--------- .../applicationsStacksDatatable.html | 189 +++++++------- .../components/datatables/datatable.css | 7 +- .../components/InsightsBox/InsightsBox.tsx | 56 +++-- 5 files changed, 277 insertions(+), 217 deletions(-) diff --git a/app/docker/react/components/index.ts b/app/docker/react/components/index.ts index a34888528..fb815b58c 100644 --- a/app/docker/react/components/index.ts +++ b/app/docker/react/components/index.ts @@ -14,6 +14,7 @@ import { DockerfileDetails } from '@/react/docker/images/ItemView/DockerfileDeta import { HealthStatus } from '@/react/docker/containers/ItemView/HealthStatus'; import { GpusList } from '@/react/docker/host/SetupView/GpusList'; import { GpusInsights } from '@/react/docker/host/SetupView/GpusInsights'; +import { InsightsBox } from '@/react/components/InsightsBox'; export const componentsModule = angular .module('portainer.docker.react.components', []) @@ -53,4 +54,15 @@ export const componentsModule = angular 'gpusList', r2a(withControlledInput(GpusList), ['value', 'onChange']) ) + .component( + 'insightsBox', + r2a(InsightsBox, [ + 'header', + 'content', + 'setHtmlContent', + 'insightCloseId', + 'type', + 'className', + ]) + ) .component('gpusInsights', r2a(GpusInsights, [])).name; diff --git a/app/kubernetes/components/datatables/applications-datatable/applicationsDatatable.html b/app/kubernetes/components/datatables/applications-datatable/applicationsDatatable.html index 25fe51b06..0f4c6935b 100644 --- a/app/kubernetes/components/datatables/applications-datatable/applicationsDatatable.html +++ b/app/kubernetes/components/datatables/applications-datatable/applicationsDatatable.html @@ -1,132 +1,144 @@
-
-
+
+
Applications
-
-
- - - Namespace - - -
-
- -
- - - -
-
- - - - -