Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
refactor(recipe-studio): update UI components with consistent styling and improved hierarchy
Shine1i1334b24bea32
diff --git a/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx b/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsxindex 97f1be05134..e24d23bc8e6 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx+++ b/studio/frontend/src/features/recipe-studio/components/executions/execution-overview-tab.tsx@@ -57,7 +57,7 @@ export function ExecutionOverviewTab({{showSummaryCards && (<div className="space-y-3"><div className="grid gap-3 md:grid-cols-2">- <div className="h-full rounded-lg bg-muted/20 p-3">+ <div className="h-full rounded-xl border border-border/60 bg-card/55 p-3"><div className="mb-2 flex items-center justify-between"><p className="text-xs text-muted-foreground">Run summary</p><HugeiconsIcon@@ -82,11 +82,11 @@ export function ExecutionOverviewTab({</p><p className="flex items-center justify-between gap-3"><span className="text-muted-foreground">Final stage</span>- <span className="font-semibold">{execution.stage ?? "--"}</span>+ <span className="truncate font-semibold">{execution.stage ?? "--"}</span></p></div></div>- <div className="h-full rounded-lg bg-muted/20 p-3">+ <div className="h-full rounded-xl border border-border/60 bg-card/55 p-3"><div className="mb-2 flex items-center justify-between"><p className="text-xs text-muted-foreground">Insights</p><HugeiconsIcon@@ -128,12 +128,12 @@ export function ExecutionOverviewTab({<div className="pt-0.5"><div className="flex flex-wrap gap-1.5">{lowUniquenessColumns.slice(0, 3).map((name) => (- <Badge key={name} variant="secondary">+ <Badge key={name} variant="outline">{name}</Badge>))}{lowUniquenessColumns.length > 3 && (- <Badge variant="secondary">+ <Badge variant="outline">+{lowUniquenessColumns.length - 3} more</Badge>)}@@ -143,7 +143,7 @@ export function ExecutionOverviewTab({</div></div></div>- <div className="rounded-lg bg-muted/20 p-3">+ <div className="rounded-xl border border-border/60 bg-card/55 p-3"><div className="mb-2 flex items-center justify-between"><p className="text-xs text-muted-foreground">Model usage</p><HugeiconsIcon icon={Flag02Icon} className="size-4 text-muted-foreground" />@@ -151,7 +151,7 @@ export function ExecutionOverviewTab({{modelUsageRows.length === 0 ? (<p className="text-xs text-muted-foreground">No model usage yet.</p>) : (- <div className="overflow-hidden rounded-md border">+ <div className="overflow-hidden rounded-lg border border-border/60 bg-card/50"><Table><TableHeader><TableRow>diff --git a/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx b/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsxindex fac1f30ea9f..f5e3c245703 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx+++ b/studio/frontend/src/features/recipe-studio/components/executions/execution-sidebar.tsx@@ -22,15 +22,15 @@ export function ExecutionSidebar({onSelectExecution,}: ExecutionSidebarProps): ReactElement {return (- <aside className="w-72 shrink-0 border-r">- <div className="flex items-center justify-between border-b px-3 py-2">+ <aside className="w-72 shrink-0 border-r border-border/60 bg-card/20">+ <div className="flex items-center justify-between border-b border-border/60 px-3 py-2"><p className="text-xs font-semibold uppercase text-muted-foreground">Executions</p></div>- <div className="h-[calc(100%-45px)] overflow-auto p-2">+ <div className="h-[calc(100%-45px)] space-y-2 overflow-auto p-2">{executions.length === 0 ? (- <div className="rounded-xl border border-dashed p-3 text-xs text-muted-foreground">+ <div className="rounded-xl border border-dashed border-border/60 p-3 text-xs text-muted-foreground">No executions yet.</div>) : (@@ -40,10 +40,10 @@ export function ExecutionSidebar({type="button"onClick={() => onSelectExecution(execution.id)}className={cn(- "mb-2 w-full rounded-xl corner-squircle border border-r-4 p-3 text-left",+ "w-full rounded-xl corner-squircle border border-r-2 border-border/60 bg-card/60 p-3 text-left transition-colors",selectedExecutionId === execution.id- ? "border-primary/50 bg-primary/5"- : "hover:bg-muted/40",+ ? "border-primary/35 bg-primary/[0.045]"+ : "hover:bg-muted/25",statusRightBorder(execution.status),)}>@@ -52,8 +52,8 @@ export function ExecutionSidebar({{execution.kind}</p><Badge- variant="secondary"- className={cn("capitalize", statusTone(execution.status))}+ variant="outline"+ className={cn("capitalize text-[11px]", statusTone(execution.status))}>{formatStatus(execution.status)}</Badge>diff --git a/studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts b/studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.tsindex d75ac4f7ce2..0533a2e67f2 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts+++ b/studio/frontend/src/features/recipe-studio/components/executions/executions-view-helpers.ts@@ -103,28 +103,28 @@ export function parseAnalysisColumns(export function statusTone(status: RecipeExecutionStatus): string {if (status === "completed") {- return "bg-emerald-100 text-emerald-700";+ return "border-emerald-500/30 text-emerald-700 dark:text-emerald-300";}if (status === "error" || status === "cancelled") {- return "bg-red-100 text-red-700";+ return "border-red-500/30 text-red-700 dark:text-red-300";}if (isExecutionInProgress(status)) {- return "bg-amber-100 text-amber-700";+ return "border-amber-500/30 text-amber-700 dark:text-amber-300";}- return "bg-muted text-muted-foreground";+ return "border-border/60 text-muted-foreground";}export function statusRightBorder(status: RecipeExecutionStatus): string {if (status === "completed") {- return "border-r-emerald-500";+ return "border-r-emerald-500/40";}if (status === "error" || status === "cancelled") {- return "border-r-red-500";+ return "border-r-red-500/40";}if (isExecutionInProgress(status)) {- return "border-r-amber-500";+ return "border-r-amber-500/40";}- return "border-r-border";+ return "border-r-border/50";}export function formatStatus(status: RecipeExecutionStatus): string {diff --git a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsxindex 255d66b72b7..c62ec41de9a 100644--- a/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx+++ b/studio/frontend/src/features/recipe-studio/components/executions/executions-view.tsx@@ -26,12 +26,9 @@ import {formatCellValue,formatDuration,formatPercent,- formatStatus,- formatTimestamp,hasExpandableTextCell,parseAnalysisColumns,parseModelUsageRows,- statusTone,truncateCellValue,} from "./executions-view-helpers";@@ -52,6 +49,10 @@ export function ExecutionsView({onCancelExecution,onLoadDatasetPage,}: ExecutionsViewProps): ReactElement {+ const formatEta = (value: number | null | undefined): string =>+ typeof value === "number" && Number.isFinite(value)+ ? `${value.toLocaleString()} s`+ : "--";const [detailTab, setDetailTab] = useState("overview");const [hiddenDatasetColumnsByExecution, setHiddenDatasetColumnsByExecution] = useState<Record<string, string[]>@@ -329,49 +330,13 @@ export function ExecutionsView({/><section className="min-w-0 flex-1 overflow-auto p-4">{!selectedExecution ? (- <div className="rounded-xl border border-dashed p-4 text-sm text-muted-foreground">+ <div className="rounded-xl border border-dashed border-border/60 p-4 text-sm text-muted-foreground">Select an execution.</div>) : (<div className="space-y-4">- <div className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">- <span className="font-medium capitalize">{selectedExecution.kind} execution</span>- <Badge- variant="secondary"- className={cn("capitalize", statusTone(selectedExecution.status))}- >- {formatStatus(selectedExecution.status)}- </Badge>- <span>{selectedExecution.rows} rows</span>- <span>Started {formatTimestamp(selectedExecution.createdAt)}</span>- <span>- Duration {formatDuration(selectedExecution.createdAt, selectedExecution.finishedAt)}- </span>- {selectedExecution.stage && (- <span>- Stage: {selectedExecution.stage}- {selectedExecution.current_column- ? ` | Column: ${selectedExecution.current_column}`- : ""}- </span>- )}- {showBatchProgress && (- <span>- Batch {batchIdx ?? "--"}/{batchTotal}- </span>- )}- {isStale && <Badge variant="outline">Recipe changed since this run</Badge>}- </div>-{showProgressPanel && (- <div- className={cn(- "space-y-3 rounded-xl border p-3",- progressComplete- ? "border-emerald-200 bg-emerald-50/50 dark:border-emerald-900/50 dark:bg-emerald-950/25"- : "border-amber-200 bg-amber-50/50 dark:border-amber-900/50 dark:bg-amber-950/25",- )}- >+ <div className="space-y-3 rounded-2xl border border-border/60 bg-card/55 p-3"><div className="flex items-center justify-between"><div className="flex items-center gap-2"><HugeiconsIcon@@ -383,51 +348,29 @@ export function ExecutionsView({: "text-amber-700 dark:text-amber-300",)}/>- <p- className={cn(- "text-sm font-semibold",- progressComplete- ? "text-emerald-900 dark:text-emerald-100"- : "text-amber-900 dark:text-amber-100",- )}- >- {progressComplete ? "Run completed" : "Run in progress"}+ <p className="text-sm font-semibold text-foreground">+ Progress</p></div>- <p- className={cn(- "text-xs",- progressComplete- ? "text-emerald-800 dark:text-emerald-200"- : "text-amber-800 dark:text-amber-200",- )}- >- {formatPercent(progressPercent)}- </p>+ <p className="text-xs text-muted-foreground">{formatPercent(progressPercent)}</p></div>- <Progress value={progressPercent} />- <div- className={cn(- "grid gap-2 text-xs md:grid-cols-4",- progressComplete- ? "text-emerald-900 dark:text-emerald-100"- : "text-amber-900 dark:text-amber-100",- )}- >- <p>Done: {selectedExecution.progress?.done ?? "--"}</p>- <p>Total: {selectedExecution.progress?.total ?? "--"}</p>- <p>Rate: {selectedExecution.progress?.rate ?? "--"} rec/s</p>- <p>ETA: {selectedExecution.progress?.eta_sec ?? "--"} s</p>+ <Progress value={progressPercent} className="h-1" />+ <div className="grid gap-2 text-xs md:grid-cols-4">+ <p className="text-muted-foreground">+ Done: <span className="text-foreground">{selectedExecution.progress?.done ?? "--"}</span>+ </p>+ <p className="text-muted-foreground">+ Total: <span className="text-foreground">{selectedExecution.progress?.total ?? "--"}</span>+ </p>+ <p className="text-muted-foreground">+ Rate: <span className="text-foreground">{selectedExecution.progress?.rate ?? "--"} rec/s</span>+ </p>+ <p className="text-muted-foreground">+ ETA: <span className="text-foreground">{formatEta(selectedExecution.progress?.eta_sec)}</span>+ </p></div>{selectedExecution.current_column && selectedExecution.column_progress && (- <p- className={cn(- "text-xs",- progressComplete- ? "text-emerald-900 dark:text-emerald-100"- : "text-amber-900 dark:text-amber-100",- )}- >+ <p className="text-xs text-muted-foreground">Column {selectedExecution.current_column}:{" "}{selectedExecution.column_progress.done ?? "--"}/{selectedExecution.column_progress.total ?? "--"} (@@ -435,17 +378,11 @@ export function ExecutionsView({</p>)}{showBatchProgress && (- <p- className={cn(- "text-xs",- progressComplete- ? "text-emerald-900 dark:text-emerald-100"- : "text-amber-900 dark:text-amber-100",- )}- >+ <p className="text-xs text-muted-foreground">Processed batch: {batchIdx ?? "--"}/{batchTotal}</p>)}+ {isStale && <Badge variant="outline">Recipe changed since this run</Badge>}</div>)}@@ -467,7 +404,7 @@ export function ExecutionsView({isExecutionInProgress(selectedExecution.status)) && (<Tabs value={detailTab} onValueChange={setDetailTab}><div className="flex items-center justify-between gap-2">- <TabsList>+ <TabsList className="border border-border/60 bg-card/40"><TabsTrigger value="overview">Overview</TabsTrigger><TabsTrigger value="columns">Columns</TabsTrigger><TabsTrigger value="data">Data</TabsTrigger>