From 7cfcde7691250238d0070c77fb4f861ff6a941e1 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 14 Apr 2026 14:15:09 -0500 Subject: [PATCH] feat: show routine name above "Run routine" title in run dialog Display the routine's title above the dialog heading so users can confirm which routine they are about to execute. Co-Authored-By: Paperclip (cherry picked from commit f6d57d0341c46ddc69e0fa64724554e666a882b5) --- ui/src/components/RoutineRunVariablesDialog.tsx | 5 +++++ ui/src/pages/RoutineDetail.tsx | 1 + ui/src/pages/Routines.tsx | 1 + 3 files changed, 7 insertions(+) diff --git a/ui/src/components/RoutineRunVariablesDialog.tsx b/ui/src/components/RoutineRunVariablesDialog.tsx index 0a6f419bf2d..59f1e97cf2c 100644 --- a/ui/src/components/RoutineRunVariablesDialog.tsx +++ b/ui/src/components/RoutineRunVariablesDialog.tsx @@ -131,6 +131,7 @@ export function RoutineRunVariablesDialog({ open, onOpenChange, companyId, + routineName, projects, agents, defaultProjectId, @@ -142,6 +143,7 @@ export function RoutineRunVariablesDialog({ open: boolean; onOpenChange: (open: boolean) => void; companyId: string | null | undefined; + routineName?: string | null; projects: Project[]; agents: Agent[]; defaultProjectId?: string | null; @@ -253,6 +255,9 @@ export function RoutineRunVariablesDialog({ !isPending && onOpenChange(next)}> + {routineName && ( +

{routineName}

+ )} Run routine Choose the agent and optional project for this one run. Routine defaults are prefilled and won't be changed. diff --git a/ui/src/pages/RoutineDetail.tsx b/ui/src/pages/RoutineDetail.tsx index 1ff17a2547e..de6a0099ef5 100644 --- a/ui/src/pages/RoutineDetail.tsx +++ b/ui/src/pages/RoutineDetail.tsx @@ -1114,6 +1114,7 @@ export function RoutineDetail() { open={runVariablesOpen} onOpenChange={setRunVariablesOpen} companyId={routine.companyId} + routineName={routine.title} agents={agents ?? []} projects={projects ?? []} defaultProjectId={routine.projectId} diff --git a/ui/src/pages/Routines.tsx b/ui/src/pages/Routines.tsx index f36adeba121..d86dceefcad 100644 --- a/ui/src/pages/Routines.tsx +++ b/ui/src/pages/Routines.tsx @@ -972,6 +972,7 @@ export function Routines() { if (!next) setRunDialogRoutine(null); }} companyId={selectedCompanyId} + routineName={runDialogRoutine?.title ?? null} agents={agents ?? []} projects={projects ?? []} defaultProjectId={runDialogRoutine?.projectId ?? null}