From 81c53ea63205ca5dcbdbd033addb230478d2a4f7 Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Tue, 30 Dec 2025 18:20:15 +0000 Subject: [PATCH] code: tsx,runlistalerts,nextjs (1 files) --- .../github/views/run-list/RunListAlerts.tsx | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/frontends/nextjs/src/components/misc/github/views/run-list/RunListAlerts.tsx b/frontends/nextjs/src/components/misc/github/views/run-list/RunListAlerts.tsx index 1e565d85d..463cbb3dc 100644 --- a/frontends/nextjs/src/components/misc/github/views/run-list/RunListAlerts.tsx +++ b/frontends/nextjs/src/components/misc/github/views/run-list/RunListAlerts.tsx @@ -5,7 +5,7 @@ import { Autorenew, Cancel, CheckCircle, OpenInNew } from '@/fakemui/icons' import type { WorkflowRun } from '../types' import type { PipelineSummary, RunListProps } from './run-list.types' -import { spinSx } from './run-list.types' +import { spinStyle } from './run-list.types' type RunListAlertsProps = Pick @@ -16,23 +16,23 @@ type SummaryAlertProps = { const SummaryAlert = ({ conclusion, summaryTone }: SummaryAlertProps) => ( {summaryTone === 'success' && } {summaryTone === 'error' && } {summaryTone === 'warning' && ( - + )} - + - + {conclusion.mostRecentPassed && 'Most Recent Builds: ALL PASSED'} {conclusion.mostRecentFailed && 'Most Recent Builds: FAILURES DETECTED'} {conclusion.mostRecentRunning && 'Most Recent Builds: RUNNING'} @@ -59,44 +59,43 @@ const SummaryAlert = ({ conclusion, summaryTone }: SummaryAlertProps) => ( return ( {workflow.status === 'completed' && workflow.conclusion === 'success' && ( - + )} {workflow.status === 'completed' && workflow.conclusion === 'failure' && ( - + )} {workflow.status !== 'completed' && ( - + )} - {workflow.name} - + {workflow.name} + {statusLabel} - Branch: + Branch: @@ -104,7 +103,7 @@ const SummaryAlert = ({ conclusion, summaryTone }: SummaryAlertProps) => ( - Updated: + Updated: {new Date(workflow.updated_at).toLocaleString()} @@ -121,7 +120,7 @@ const SummaryAlert = ({ conclusion, summaryTone }: SummaryAlertProps) => ( href="https://github.com/johndoe6345789/metabuilder/actions" target="_blank" rel="noopener noreferrer" - endIcon={} + endIcon={} > View All Workflows on GitHub @@ -141,14 +140,14 @@ export const RunListAlerts = ({ }: RunListAlertsProps) => ( <> {error && ( - + Error {error} )} {needsAuth && ( - + Authentication Required GitHub API requires authentication for this request. Please configure credentials and