From 7fb70d57f12379bcdca953a2b5be564c82583059 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Thu, 25 Dec 2025 19:08:33 +0000 Subject: [PATCH] Migrate workflow run UI to MUI --- .../nextjs/src/components/WorkflowRunCard.tsx | 33 +++++++++++++------ .../src/components/WorkflowRunStatus.tsx | 19 ++++++----- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/frontends/nextjs/src/components/WorkflowRunCard.tsx b/frontends/nextjs/src/components/WorkflowRunCard.tsx index b3055183a..0f9013ce9 100644 --- a/frontends/nextjs/src/components/WorkflowRunCard.tsx +++ b/frontends/nextjs/src/components/WorkflowRunCard.tsx @@ -1,4 +1,4 @@ -import { Card, CardContent } from '@/components/ui/card' +import { Box, Card, CardContent, Stack, Typography } from '@mui/material' import { WorkflowRunStatus } from './WorkflowRunStatus' export { WorkflowRunStatus } from './WorkflowRunStatus' @@ -22,18 +22,31 @@ export function WorkflowRunCard({ }: WorkflowRunCardProps) { return ( - -
-

{name}

+ + + + {name} + -
-

Branch: {branch}

-

Created: {new Date(createdAt).toLocaleString()}

-
-
+ + + Branch: {branch} + + + Created: {new Date(createdAt).toLocaleString()} + + +
) diff --git a/frontends/nextjs/src/components/WorkflowRunStatus.tsx b/frontends/nextjs/src/components/WorkflowRunStatus.tsx index 892b351c7..c23cc8141 100644 --- a/frontends/nextjs/src/components/WorkflowRunStatus.tsx +++ b/frontends/nextjs/src/components/WorkflowRunStatus.tsx @@ -1,5 +1,6 @@ -import { Badge } from '@/components/ui/badge' -import { CheckCircle, XCircle } from '@phosphor-icons/react' +import { Chip, Stack, Typography } from '@mui/material' +import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline' +import HighlightOffOutlinedIcon from '@mui/icons-material/HighlightOffOutlined' interface WorkflowRunStatusProps { status: string @@ -12,11 +13,13 @@ export function WorkflowRunStatus({ status, conclusion }: WorkflowRunStatusProps const isInProgress = status === 'in_progress' return ( -
- {isSuccess && } - {isFailure && } - {isInProgress && Running...} - {conclusion || status} -
+ + {isSuccess && } + {isFailure && } + {isInProgress && } + + {conclusion || status} + + ) }