Skip to content

Commit

Permalink
NEW GUI: Home page panels - add icons (#3780 #3781 #3782)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrGorodetskii committed Nov 29, 2024
1 parent 1811261 commit 83b0e22
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const ListHeader = (props: ListHeaderProps) => {
} = props;
return (
<div className={classNames(className, 'divide-y')} style={style}>
<div
className="flex items-center no-wrap p-2"
style={{ color: 'var(--uui-text-secondary)' }}>
<div className="flex text items-center no-wrap p-2">
<b>{title}</b>
{controls ? <div className="ml-auto">{controls}</div> : null}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -23,7 +24,14 @@ export const PipelinesList = memo(({ pipelines }: Props) => {
return (
<ItemsPanel
className="max-h-full list-container overflow-auto"
title="Pipelines"
title={
<div className="fill-current flex flex-nowrap gap-1">
<span className="rotate-90">
<NavigationDependencyOutlineIcon />
</span>
<span>Pipelines</span>
</div>
}
items={pipelines}
renderItem={renderItem}
sliced
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,9 +24,19 @@ export const ProjectsList = memo(({ projects }: Props) => {
return (
<ItemsPanel
className="max-h-full list-container overflow-auto"
title="Projects"
title={
<div className="fill-current flex flex-nowrap gap-1">
<ActionJobFunctionOutlineIcon />
<span>Projects</span>
</div>
}
actions={
<Button caption="Create project" size="24" onClick={() => null} />
<Button
icon={ActionAddFillIcon}
caption="Create project"
size="24"
onClick={() => null}
/>
}
items={projects}
renderItem={renderItem}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import type { Run } from '@cloud-pipeline/core';
import { ItemsPanel } from '../../../widgets/items-panel/items-panel.tsx';
import { useAuthenticatedUserRuns } from '../../../shared/hooks/use-runs-filter.ts';
import MediaPlayOutlineOptIcon from '@epam/assets/icons/media-play-outline-opt.2.svg?react';

export const RunsList = () => {
const { runs } = useAuthenticatedUserRuns({ reloadIntervalMs: 5000 });
return (
<ItemsPanel
className="max-h-full list-container overflow-auto"
title="Runs history"
title={
<div className="fill-current flex flex-nowrap gap-1">
<MediaPlayOutlineOptIcon />
<span>Runs history</span>
</div>
}
renderItem={(run: Run) => (
<div className="px-2 py-1">
<span>
Expand Down

0 comments on commit 83b0e22

Please sign in to comment.