Skip to content

Commit 24e6271

Browse files
[web] UI polish: inline durations, font fixes, trace viewer scrolling fix (#554)
1 parent 4aecb99 commit 24e6271

File tree

13 files changed

+21
-12
lines changed

13 files changed

+21
-12
lines changed

.changeset/honest-fans-change.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@workflow/web": patch
3+
"@workflow/web-shared": patch
4+
---
5+
6+
UI polish: inline durations, font fixes, trace viewer scrolling fix

packages/web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
useTabState,
1616
useWorkflowIdState,
1717
} from '@/lib/url-state';
18-
import { useWorkflowGraphManifest } from '@/lib/use-workflow-graph';
18+
import { useWorkflowGraphManifest } from '@/lib/flow-graph/use-workflow-graph';
1919

2020
export default function Home() {
2121
const router = useRouter();

packages/web/src/components/display-utils/status-badge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function StatusBadge({
6262
};
6363

6464
const content = (
65-
<span className={cn('flex flex-col', className)}>
65+
<span className={cn('flex flex-row gap-2', className)}>
6666
<span className="flex items-center gap-1.5">
6767
<span
6868
className={cn('size-2 rounded-full shrink-0', getCircleColor())}
@@ -73,7 +73,7 @@ export function StatusBadge({
7373
</span>
7474
{durationMs !== undefined && (
7575
<span className="text-muted-foreground/70 text-xs">
76-
{formatDuration(durationMs)}
76+
({formatDuration(durationMs)})
7777
</span>
7878
)}
7979
</span>

packages/web/src/components/workflow-graph-execution-viewer.tsx renamed to packages/web/src/components/flow-graph/workflow-graph-execution-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type {
2323
StepExecution,
2424
WorkflowGraph,
2525
WorkflowRunExecution,
26-
} from '@/lib/workflow-graph-types';
26+
} from '@/lib/flow-graph/workflow-graph-types';
2727

2828
interface WorkflowGraphExecutionViewerProps {
2929
workflow: WorkflowGraph;

packages/web/src/components/workflow-graph-viewer.css renamed to packages/web/src/components/flow-graph/workflow-graph-viewer.css

File renamed without changes.

packages/web/src/components/workflow-graph-viewer.tsx renamed to packages/web/src/components/flow-graph/workflow-graph-viewer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import { useEffect, useMemo } from 'react';
1515
import '@xyflow/react/dist/style.css';
1616
import { GitBranch, PlayCircle, StopCircle } from 'lucide-react';
1717
import './workflow-graph-viewer.css';
18-
import type { GraphNode, WorkflowGraph } from '@/lib/workflow-graph-types';
18+
import type {
19+
GraphNode,
20+
WorkflowGraph,
21+
} from '@/lib/flow-graph/workflow-graph-types';
1922

2023
interface WorkflowGraphViewerProps {
2124
workflow: WorkflowGraph;

packages/web/src/components/run-detail-view.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function RunDetailView({
252252
</AlertDialogContent>
253253
</AlertDialog>
254254

255-
<div className="flex flex-col h-[calc(100vh-88px)]">
255+
<div className="flex flex-col h-[calc(100vh-97px)]">
256256
<div className="flex-none space-y-4">
257257
<Breadcrumb>
258258
<BreadcrumbList>
@@ -409,7 +409,7 @@ export function RunDetailView({
409409
</p>
410410
</TooltipContent>
411411
</Tooltip>
412-
<div className="text-sm">
412+
<div className="text-xs">
413413
<RelativeTime date={run.expiredAt} />
414414
</div>
415415
</div>

packages/web/src/components/runs-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export function RunsTable({ config, onRunClick }: RunsTableProps) {
404404
{run.runId}
405405
</CopyableText>
406406
</TableCell>
407-
<TableCell className="py-2 align-top">
407+
<TableCell className="py-2">
408408
<StatusBadge
409409
status={run.status}
410410
context={run}

packages/web/src/components/workflows-list.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {
1919
TableHeader,
2020
TableRow,
2121
} from '@/components/ui/table';
22-
import { WorkflowGraphViewer } from '@/components/workflow-graph-viewer';
23-
import type { WorkflowGraph } from '@/lib/workflow-graph-types';
22+
import { WorkflowGraphViewer } from '@/components/flow-graph/workflow-graph-viewer';
23+
import type { WorkflowGraph } from '@/lib/flow-graph/workflow-graph-types';
2424
import { TableSkeleton } from './display-utils/table-skeleton';
2525

2626
interface WorkflowsListProps {
File renamed without changes.

0 commit comments

Comments
 (0)