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} + + ) }