diff --git a/apps/sim/app/_shell/providers/theme-provider.tsx b/apps/sim/app/_shell/providers/theme-provider.tsx index cbb31e4423..dae3071b5c 100644 --- a/apps/sim/app/_shell/providers/theme-provider.tsx +++ b/apps/sim/app/_shell/providers/theme-provider.tsx @@ -21,12 +21,13 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) { pathname.startsWith('/careers') || pathname.startsWith('/changelog') || pathname.startsWith('/chat') || - pathname.startsWith('/studio') + pathname.startsWith('/studio') || + pathname.startsWith('/resume') return ( = { - paused: { - style: 'border-amber-200 bg-amber-50 text-amber-700', - icon: , - }, - queued: { - style: 'border-blue-200 bg-blue-50 text-blue-700', - icon: , - }, - resuming: { - style: 'border-indigo-200 bg-indigo-50 text-indigo-700', - icon: , - }, - resumed: { - style: 'border-emerald-200 bg-emerald-50 text-emerald-700', - icon: , - }, - failed: { - style: 'border-red-200 bg-red-50 text-red-700', - icon: , - }, +const RESUME_STATUS_STYLES: Record = { + paused: 'border-[var(--c-F59E0B)]/30 bg-[var(--c-F59E0B)]/10 text-[var(--c-F59E0B)]', + queued: + 'border-[var(--brand-tertiary)]/30 bg-[var(--brand-tertiary)]/10 text-[var(--brand-tertiary)]', + resuming: + 'border-[var(--brand-primary)]/30 bg-[var(--brand-primary)]/10 text-[var(--brand-primary)]', + resumed: 'border-[var(--text-success)]/30 bg-[var(--text-success)]/10 text-[var(--text-success)]', + failed: 'border-[var(--text-error)]/30 bg-[var(--text-error)]/10 text-[var(--text-error)]', } function formatDate(value: string | null): string { @@ -157,13 +128,11 @@ function getStatusLabel(status: string): string { } function ResumeStatusBadge({ status }: { status: string }) { - const config = RESUME_STATUS_STYLES[status] ?? { - style: 'border-slate-200 bg-slate-100 text-slate-700', - icon: , - } + const style = + RESUME_STATUS_STYLES[status] ?? + 'border-[var(--border)] bg-[var(--surface-2)] text-[var(--text-secondary)]' return ( - - {config.icon} + {getStatusLabel(status)} ) @@ -418,7 +387,7 @@ export default function ResumeExecutionPage({ value={selectValue} onValueChange={(val) => handleFormFieldChange(field.name, val)} > - + handleFormFieldChange(field.name, event.target.value)} placeholder={field.placeholder ?? 'Enter a number...'} - className='rounded-[12px] border-slate-200' /> ) case 'array': @@ -451,7 +419,7 @@ export default function ResumeExecutionPage({ value={value} onChange={(event) => handleFormFieldChange(field.name, event.target.value)} placeholder={field.placeholder ?? (field.type === 'array' ? '[...]' : '{...}')} - className='min-h-[120px] rounded-[12px] border-slate-200 font-mono text-sm' + className='min-h-[120px] font-mono text-[13px]' /> ) default: { @@ -462,7 +430,7 @@ export default function ResumeExecutionPage({ value={value} onChange={(event) => handleFormFieldChange(field.name, event.target.value)} placeholder={field.placeholder ?? 'Enter value...'} - className='min-h-[120px] rounded-[12px] border-slate-200' + className='min-h-[120px]' /> ) } @@ -471,7 +439,6 @@ export default function ResumeExecutionPage({ value={value} onChange={(event) => handleFormFieldChange(field.name, event.target.value)} placeholder={field.placeholder ?? 'Enter value...'} - className='rounded-[12px] border-slate-200' /> ) } @@ -518,18 +485,6 @@ export default function ResumeExecutionPage({ .filter((row): row is ResponseStructureRow => row !== null) }, [selectedDetail]) - useEffect(() => { - const root = document.documentElement - const hadDark = root.classList.contains('dark') - const hadLight = root.classList.contains('light') - root.classList.add('light') - root.classList.remove('dark') - return () => { - if (!hadLight) root.classList.remove('light') - if (hadDark) root.classList.add('dark') - } - }, []) - useEffect(() => { if (!selectedContextId) { setSelectedDetail(null) @@ -907,10 +862,10 @@ export default function ResumeExecutionPage({ const statusDetailNode = useMemo(() => { return ( -
+
{queuePosition && queuePosition > 0 ? ( - + Queue position {queuePosition} ) : null} @@ -931,33 +886,23 @@ export default function ResumeExecutionPage({ setError(null) setMessage(null) }} - className={`group w-full rounded-lg border p-3 text-left transition-all duration-150 hover:border-slate-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500/40 ${ - isSelected - ? 'border-blue-500 bg-blue-50/50 shadow-sm' - : subdued - ? 'border-slate-200 bg-slate-50 opacity-75' - : 'border-slate-200 bg-white' - }`} + className={cn( + 'w-full rounded-[6px] border border-[var(--border)] bg-[var(--surface-1)] p-[12px] text-left', + 'hover:bg-[var(--surface-3)] focus:outline-none', + isSelected && 'bg-[var(--surface-3)]' + )} > -
-
-
-

{pause.contextId}

-
-
- - {formatDate(pause.registeredAt)} -
- {pause.queuePosition != null && pause.queuePosition > 0 && ( -
- - Position {pause.queuePosition} -
- )} -
-
- -
+
+ + + {pause.contextId} + +
+
+

Registered: {formatDate(pause.registeredAt)}

+ {pause.queuePosition != null && pause.queuePosition > 0 && ( +

Queue Position: {pause.queuePosition}

+ )}
) @@ -996,41 +941,37 @@ export default function ResumeExecutionPage({ if (!executionDetail) { return ( -
-
+