@@ -4,11 +4,12 @@ import { useAllSchedules, useAllScheduleRuns, useCancelRepoScheduleRun } from '@
44import { useDeleteRepoSchedule , useRunRepoSchedule , useUpdateRepoSchedule , useCreateRepoSchedule } from '@/hooks/useSchedules'
55import { ScheduleJobDialog , RunHistoryCards , PromptsTab } from '@/components/schedules'
66import type { CreateScheduleJobRequest } from '@opencode-manager/shared/types'
7- import { toUpdateScheduleRequest , formatScheduleShortLabel , formatTimestamp } from '@/components/schedules/schedule-utils'
7+ import { toUpdateScheduleRequest , formatScheduleShortLabel , formatTimestamp , getJobStatusTone } from '@/components/schedules/schedule-utils'
88import { Header } from '@/components/ui/header'
99import { Button } from '@/components/ui/button'
1010import { DropdownMenu , DropdownMenuTrigger , DropdownMenuContent , DropdownMenuCheckboxItem , DropdownMenuItem , DropdownMenuRadioGroup , DropdownMenuRadioItem , DropdownMenuLabel , DropdownMenuSeparator } from '@/components/ui/dropdown-menu'
1111import { Card , CardContent } from '@/components/ui/card'
12+ import { Badge } from '@/components/ui/badge'
1213import { DeleteDialog } from '@/components/ui/delete-dialog'
1314import { Tabs , TabsContent , TabsList , TabsTrigger } from '@/components/ui/tabs'
1415import { CalendarClock , Loader2 , Plus , ArrowLeft , Play , Pencil , Trash2 , Pause , PlayCircle , Clock3 , History , SlidersHorizontal } from 'lucide-react'
@@ -553,21 +554,24 @@ export function GlobalSchedules() {
553554 onClick = { ( ) => navigate ( `/repos/${ job . repoId } /schedules` ) }
554555 >
555556 < CardContent className = "p-4 space-y-3" >
556- < div className = "min-w-0" >
557- < button
558- type = "button"
559- onClick = { ( e ) => {
560- e . stopPropagation ( )
561- handleNavigateToRepo ( job . repoPath )
562- } }
563- className = "text-xs text-muted-foreground hover:text-foreground hover:underline truncate block mb-1"
564- >
565- { job . repoName }
566- </ button >
567- < h3 className = "font-medium truncate" > { job . name } </ h3 >
568- < p className = "mt-1 text-xs text-muted-foreground line-clamp-2" >
569- { job . description || 'No description' }
570- </ p >
557+ < div className = "flex items-start justify-between gap-2" >
558+ < div className = "min-w-0 flex-1" >
559+ < button
560+ type = "button"
561+ onClick = { ( e ) => {
562+ e . stopPropagation ( )
563+ handleNavigateToRepo ( job . repoPath )
564+ } }
565+ className = "text-xs text-muted-foreground hover:text-foreground hover:underline truncate block mb-1"
566+ >
567+ { job . repoName }
568+ </ button >
569+ < h3 className = "font-medium truncate" > { job . name } </ h3 >
570+ < p className = "mt-1 text-xs text-muted-foreground line-clamp-2" >
571+ { job . description || 'No description' }
572+ </ p >
573+ </ div >
574+ < Badge className = { getJobStatusTone ( job ) } > { job . enabled ? 'Enabled' : 'Paused' } </ Badge >
571575 </ div >
572576
573577 < div className = "space-y-2 text-xs text-muted-foreground" >
0 commit comments