From 83b0e229f2846fa177560459756ea32bdd78894e Mon Sep 17 00:00:00 2001 From: AleksandrGorodetskii Date: Fri, 29 Nov 2024 12:15:03 +0300 Subject: [PATCH] NEW GUI: Home page panels - add icons (#3780 #3781 #3782) --- .../lib/components/list/list-header.tsx | 4 +--- .../src/pages/home/components/pipelines-list.tsx | 10 +++++++++- .../src/pages/home/components/projects-list.tsx | 16 ++++++++++++++-- .../src/pages/home/components/runs-list.tsx | 8 +++++++- 4 files changed, 31 insertions(+), 7 deletions(-) diff --git a/portals-ui/packages/components/lib/components/list/list-header.tsx b/portals-ui/packages/components/lib/components/list/list-header.tsx index 6d3f64c763..1651562b01 100644 --- a/portals-ui/packages/components/lib/components/list/list-header.tsx +++ b/portals-ui/packages/components/lib/components/list/list-header.tsx @@ -14,9 +14,7 @@ const ListHeader = (props: ListHeaderProps) => { } = props; return (
-
+
{title} {controls ?
{controls}
: null}
diff --git a/portals-ui/sites/ngs-portal/src/pages/home/components/pipelines-list.tsx b/portals-ui/sites/ngs-portal/src/pages/home/components/pipelines-list.tsx index ac1feaf265..7517512edf 100644 --- a/portals-ui/sites/ngs-portal/src/pages/home/components/pipelines-list.tsx +++ b/portals-ui/sites/ngs-portal/src/pages/home/components/pipelines-list.tsx @@ -3,6 +3,7 @@ import { ItemsPanel } from '../../../widgets/items-panel/items-panel'; import { PipelineCard } from './pipeline-card'; import { memo } from 'react'; import cn from 'classnames'; +import NavigationDependencyOutlineIcon from '@epam/assets/icons/navigation-dependency-outline.svg?react'; type Props = { pipelines: Pipeline[] | undefined; @@ -23,7 +24,14 @@ export const PipelinesList = memo(({ pipelines }: Props) => { return ( + + + + Pipelines +
+ } items={pipelines} renderItem={renderItem} sliced diff --git a/portals-ui/sites/ngs-portal/src/pages/home/components/projects-list.tsx b/portals-ui/sites/ngs-portal/src/pages/home/components/projects-list.tsx index 816ea1bff5..31f99a08ee 100644 --- a/portals-ui/sites/ngs-portal/src/pages/home/components/projects-list.tsx +++ b/portals-ui/sites/ngs-portal/src/pages/home/components/projects-list.tsx @@ -4,6 +4,8 @@ import { ProjectCard } from './project-card'; import { ItemsPanel } from '../../../widgets/items-panel/items-panel'; import cn from 'classnames'; import { memo } from 'react'; +import ActionAddFillIcon from '@epam/assets/icons/action-add-outline.svg?react'; +import ActionJobFunctionOutlineIcon from '@epam/assets/icons/action-job_function-outline.svg?react'; type Props = { projects: Project[] | undefined; @@ -22,9 +24,19 @@ export const ProjectsList = memo(({ projects }: Props) => { return ( + + Projects +
+ } actions={ -