diff --git a/web/src/lib/components/repo/pipelines/WorkflowLogs.svelte b/web/src/lib/components/repo/pipelines/WorkflowLogs.svelte index de29117e0..9e624e7e8 100644 --- a/web/src/lib/components/repo/pipelines/WorkflowLogs.svelte +++ b/web/src/lib/components/repo/pipelines/WorkflowLogs.svelte @@ -33,7 +33,7 @@ step: 44, command: 22, line: 22, - gap: 12 + gap: 8 }; diff --git a/web/src/lib/components/repo/pipelines/WorkflowSidebar.svelte b/web/src/lib/components/repo/pipelines/WorkflowSidebar.svelte index 5b53ef863..1339e61f3 100644 --- a/web/src/lib/components/repo/pipelines/WorkflowSidebar.svelte +++ b/web/src/lib/components/repo/pipelines/WorkflowSidebar.svelte @@ -4,21 +4,22 @@ export const workflowSidebar = tv({ slots: { list: "flex flex-col gap-2", - card: "flex flex-col gap-1.5 rounded border px-3 py-2.5 transition-colors", + // the whole card is the link to the workflow + card: "flex flex-col gap-1.5 rounded-sm border px-3 py-2.5 no-underline transition-colors hover:no-underline", top: "flex items-center justify-between gap-3", - link: "flex min-w-0 items-center gap-0.5 no-underline hover:no-underline", name: "truncate font-medium text-foreground-default", - arrow: "size-4 shrink-0 text-foreground-default", age: "shrink-0 text-foreground-muted", bottom: "flex items-center justify-between gap-2", status: "flex min-w-0 items-center gap-1.5", label: "truncate font-semibold text-foreground-default", - duration: "shrink-0 tabular-nums text-foreground-muted" + duration: "shrink-0 text-foreground-muted tabular-nums" }, variants: { active: { true: { card: "border-transparent bg-background-inset" }, - false: { card: "border-border-default bg-background-default" } + false: { + card: "border-border-default bg-background-default hover:bg-background-subtle" + } } }, defaultVariants: { active: false } @@ -26,7 +27,7 @@
{#each workflows as workflow (workflow.name)} {@const slots = classes({ active: workflow.name === active })} -
+
- - {workflow.name} - + {workflow.name} {formatDuration(workflow.duration)} {/if}
-
+ {/each}
diff --git a/web/src/lib/components/repo/pipelines/WorkflowView.stories.svelte b/web/src/lib/components/repo/pipelines/WorkflowView.stories.svelte new file mode 100644 index 000000000..c6129b61c --- /dev/null +++ b/web/src/lib/components/repo/pipelines/WorkflowView.stories.svelte @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + diff --git a/web/src/lib/components/repo/pipelines/WorkflowView.svelte b/web/src/lib/components/repo/pipelines/WorkflowView.svelte new file mode 100644 index 000000000..6a6fbb327 --- /dev/null +++ b/web/src/lib/components/repo/pipelines/WorkflowView.svelte @@ -0,0 +1,65 @@ + + +
+
+ +
+
+ {#if workflow.error} + +
+
+ {/if} + +
+
diff --git a/web/src/routes/[handle]/[repo]/pipelines/[pipeline]/workflow/[workflow]/+page.svelte b/web/src/routes/[handle]/[repo]/pipelines/[pipeline]/workflow/[workflow]/+page.svelte index 1e35c4314..e89afbd70 100644 --- a/web/src/routes/[handle]/[repo]/pipelines/[pipeline]/workflow/[workflow]/+page.svelte +++ b/web/src/routes/[handle]/[repo]/pipelines/[pipeline]/workflow/[workflow]/+page.svelte @@ -1,9 +1,7 @@