Skip to content

Commit f612772

Browse files
Merge pull request #638 from zenml-io/staging
2 parents 9379d0c + c13644b commit f612772

File tree

82 files changed

+3125
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+3125
-599
lines changed

.github/workflows/unit-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Unit Tests
1+
name: Build & Unit Tests
22

33
on:
44
push:
@@ -10,6 +10,7 @@ on:
1010
- main
1111
- dev
1212
- future
13+
- staging
1314
workflow_dispatch:
1415

1516
jobs:
@@ -32,6 +33,9 @@ jobs:
3233

3334
- name: Install project dependencies
3435
run: pnpm install --frozen-lockfile
36+
37+
- name: "Run Build"
38+
run: pnpm build
3539

3640
- name: Run Unit Tests
3741
run: pnpm test:unit

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"@tanstack/react-table": "^8.17.3",
3131
"@tisoap/react-flow-smart-edge": "^3.0.0",
3232
"@zenml-io/react-component-library": "^0.18.0",
33+
"awesome-debounce-promise": "^2.1.0",
3334
"class-variance-authority": "^0.7.0",
35+
"immer": "^10.1.1",
3436
"lodash.debounce": "^4.0.8",
3537
"papaparse": "^5.4.1",
3638
"prismjs": "^1.29.0",

pnpm-lock.yaml

Lines changed: 76 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/pipelines/[namespace]/columns.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { InlineAvatar } from "@/components/InlineAvatar";
66
import { routes } from "@/router/routes";
77
import { CodeRepository } from "@/types/code-repository";
88
import { PipelineRun, PipelineRunBody } from "@/types/pipeline-runs";
9-
import { PipelineBody } from "@/types/pipelines";
109
import { Stack } from "@/types/stack";
1110
import { User } from "@/types/user";
1211
import { ColumnDef } from "@tanstack/react-table";
13-
import { Badge, Tag } from "@zenml-io/react-component-library";
12+
import { Tag } from "@zenml-io/react-component-library";
1413
import { Link } from "react-router-dom";
1514

1615
export function getPipelineDetailColumns(): ColumnDef<PipelineRun>[] {
@@ -48,19 +47,6 @@ export function getPipelineDetailColumns(): ColumnDef<PipelineRun>[] {
4847
);
4948
}
5049
},
51-
{
52-
id: "version",
53-
header: "Version",
54-
accessorFn: (row) => row.body?.pipeline?.body?.version,
55-
cell: ({ getValue }) => {
56-
const version = getValue<PipelineBody["version"]>();
57-
return (
58-
<Badge color="purple" className="inline-flex" size="sm">
59-
{version}
60-
</Badge>
61-
);
62-
}
63-
},
6450
{
6551
id: "stack",
6652
header: "Stack",

src/app/pipelines/columns.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import RunIcon from "@/assets/icons/terminal.svg?react";
21
import PipelineIcon from "@/assets/icons/pipeline.svg?react";
2+
import RunIcon from "@/assets/icons/terminal.svg?react";
3+
import { CopyButton } from "@/components/CopyButton";
34
import { ExecutionStatusIcon, getExecutionStatusColor } from "@/components/ExecutionStatus";
5+
import { routes } from "@/router/routes";
46
import { ExecutionStatus } from "@/types/pipeline-runs";
5-
import { PipelineNamespace, PipelineNamespaceBody } from "@/types/pipelines";
7+
import { Pipeline } from "@/types/pipelines";
68
import { ColumnDef } from "@tanstack/react-table";
79
import { Tag, TagProps } from "@zenml-io/react-component-library";
810
import { Link } from "react-router-dom";
9-
import { routes } from "@/router/routes";
10-
import { CopyButton } from "@/components/CopyButton";
1111

12-
export function getPipelineColumns(): ColumnDef<PipelineNamespace>[] {
12+
export function getPipelineColumns(): ColumnDef<Pipeline>[] {
1313
return [
1414
{
1515
id: "name",
1616
header: "Pipeline",
1717
accessorFn: (row) => ({ name: row.name, status: row.body?.latest_run_status }),
1818
cell: ({ getValue }) => {
1919
const { name, status } = getValue<{
20-
name: PipelineNamespace["name"];
21-
status: PipelineNamespaceBody["latest_run_status"];
20+
name: string;
21+
status: ExecutionStatus;
2222
}>();
2323

2424
return (
@@ -46,7 +46,7 @@ export function getPipelineColumns(): ColumnDef<PipelineNamespace>[] {
4646
cell: ({ getValue }) => {
4747
const { runId, status } = getValue<{
4848
runId?: string;
49-
status?: PipelineNamespaceBody["latest_run_status"];
49+
status?: ExecutionStatus;
5050
}>();
5151

5252
if (!runId || !status) return <div>No run</div>;

0 commit comments

Comments
 (0)