-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Pipeline UI alignment with models (#1289)
Because - The pipelines UI was outdated This commit - Updated the pipeline related UI in alignment with models --------- Co-authored-by: EiffelFly <57251712+EiffelFly@users.noreply.github.com>
- Loading branch information
1 parent
50c30a3
commit 4bcdd1e
Showing
103 changed files
with
5,186 additions
and
1,861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion
3
.../src/app/[entity]/pipelines/[id]/page.tsx → ...pp/[entity]/pipelines/[id]/[tab]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"use client"; | ||
|
||
import * as React from "react"; | ||
|
||
import { IconBase, IconBaseProps } from "./IconBase"; | ||
|
||
export const GitMerge = React.forwardRef< | ||
SVGSVGElement, | ||
Omit<IconBaseProps, "viewBox" | "children"> | ||
>((props, ref) => { | ||
const { className, ...passThrough } = props; | ||
return ( | ||
<IconBase | ||
{...passThrough} | ||
ref={ref} | ||
viewBox="0 0 24 24" | ||
className={className} | ||
> | ||
<path | ||
d="M15 18C15 19.6569 16.3431 21 18 21C19.6569 21 21 19.6569 21 18C21 16.3431 19.6569 15 18 15C16.3431 15 15 16.3431 15 18ZM15 18C12.6131 18 10.3239 17.0518 8.63604 15.364C6.94821 13.6761 6 11.3869 6 9M6 9C7.65685 9 9 7.65685 9 6C9 4.34315 7.65685 3 6 3C4.34315 3 3 4.34315 3 6C3 7.65685 4.34315 9 6 9ZM6 9V21" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</IconBase> | ||
); | ||
}); | ||
GitMerge.displayName = "IconGitMerge"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"use client"; | ||
|
||
import * as React from "react"; | ||
|
||
import { IconBase, IconBaseProps } from "./IconBase"; | ||
|
||
export const Zap = React.forwardRef< | ||
SVGSVGElement, | ||
Omit<IconBaseProps, "viewBox" | "children"> | ||
>((props, ref) => { | ||
const { className, ...passThrough } = props; | ||
return ( | ||
<IconBase | ||
{...passThrough} | ||
ref={ref} | ||
viewBox="0 0 24 24" | ||
className={className} | ||
> | ||
<path | ||
d="M13 2L4.09344 12.6879C3.74463 13.1064 3.57023 13.3157 3.56756 13.4925C3.56524 13.6461 3.63372 13.7923 3.75324 13.8889C3.89073 14 4.16316 14 4.70802 14H12L11 22L19.9065 11.3121C20.2553 10.8936 20.4297 10.6843 20.4324 10.5075C20.4347 10.3539 20.3663 10.2077 20.2467 10.1111C20.1092 10 19.8368 10 19.292 10H12L13 2Z" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</IconBase> | ||
); | ||
}); | ||
Zap.displayName = "IconZap"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { cn, Icons } from "@instill-ai/design-system"; | ||
|
||
export type EmptyViewProps = { | ||
iconName: keyof typeof Icons; | ||
title: string; | ||
description?: string; | ||
className?: string; | ||
}; | ||
|
||
export const EmptyView = ({ | ||
iconName, | ||
title, | ||
description, | ||
className, | ||
}: EmptyViewProps) => { | ||
const Icon = Icons[iconName]; | ||
|
||
return ( | ||
<div | ||
className={cn( | ||
"h-full w-full flex items-center justify-center", | ||
className, | ||
)} | ||
> | ||
<div className="relative w-[513px] h-[480px]"> | ||
<img | ||
src="/images/empty-placeholder.svg" | ||
width={513} | ||
height={480} | ||
alt="Grid" | ||
/> | ||
<div className="flex items-center justify-center absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-sm border w-12 h-12 bg-semantic-fg-on-default border-semantic-bg-line shadow-[0_0_2_0_rgba(0,0,0,0.08)]"> | ||
<Icon className="h-6 w-6 stroke-semantic-fg-primary" /> | ||
</div> | ||
<div className="absolute top-1/2 left-0 w-full mt-12 flex flex-col gap-y-2"> | ||
<p className="font-semibold text-xl text-semantic-fg-primary text-center"> | ||
{title} | ||
</p> | ||
{description ? ( | ||
<p className="text-semantic-fg-secondary text-center"> | ||
{description} | ||
</p> | ||
) : null} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const HeadExternalLink = ({ | ||
children, | ||
href, | ||
}: { | ||
children: React.ReactNode; | ||
href: string; | ||
}) => { | ||
return ( | ||
<a | ||
href={href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex flex-row items-center gap-x-1 border-b border-zinc-700 text-sm font-semibold text-semantic-bg-secondary-alt-primary" | ||
> | ||
{children} | ||
</a> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.