From ff5892804de49210fa1471012f4f608ba4ffada9 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Fri, 22 May 2026 16:43:41 -0700 Subject: [PATCH] [eric] workflows: route Schedule click + right-click Edit to new SchedulingView/EditAgentView (not legacy facet editor) --- frontend/src/app/pages/Workflows/ScheduleCalendar.tsx | 4 +++- frontend/src/app/pages/Workflows/WorkflowCardSubviews.tsx | 5 ++++- frontend/src/app/pages/Workflows/WorkflowsHubCard.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/pages/Workflows/ScheduleCalendar.tsx b/frontend/src/app/pages/Workflows/ScheduleCalendar.tsx index 55aaa01f..348b8b1f 100644 --- a/frontend/src/app/pages/Workflows/ScheduleCalendar.tsx +++ b/frontend/src/app/pages/Workflows/ScheduleCalendar.tsx @@ -50,7 +50,9 @@ export default function ScheduleCalendar({ view, density, onSelectWorkflow, refD const onEdit = () => { if (!ctxMenu) return; dispatch(addWorkflowCard({ workflowId: ctxMenu.workflow.id })); - dispatch(openWorkflowCard({ workflowId: ctxMenu.workflow.id, view: 'edit', editFacet: 'Schedule' })); + // Right-click "Edit" on a calendar entry opens the new Edit Agent + // chat view, matching the post-revamp design (Image #38). + dispatch(openWorkflowCard({ workflowId: ctxMenu.workflow.id, view: 'edit_agent' })); closeMenu(); }; const onDelete = () => { diff --git a/frontend/src/app/pages/Workflows/WorkflowCardSubviews.tsx b/frontend/src/app/pages/Workflows/WorkflowCardSubviews.tsx index a4079728..e4055b4a 100644 --- a/frontend/src/app/pages/Workflows/WorkflowCardSubviews.tsx +++ b/frontend/src/app/pages/Workflows/WorkflowCardSubviews.tsx @@ -153,7 +153,10 @@ export function PreviewView({ workflowId, steps, sourceSessionId, initialDraft, const wf = (result as unknown as { payload: Workflow }).payload; if (wf?.id) { onSaved(wf); - dispatch(updateWorkflowCard({ workflowId: wf.id, patch: { view: 'edit', editFacet: 'Schedule' } })); + // Route to the new SchedulingView (Image #49), not the legacy + // facet editor. The old `view: 'edit', editFacet: 'Schedule'` + // path opens a different design entirely. + dispatch(updateWorkflowCard({ workflowId: wf.id, patch: { view: 'scheduling' } })); } } finally { setBusy(false); diff --git a/frontend/src/app/pages/Workflows/WorkflowsHubCard.tsx b/frontend/src/app/pages/Workflows/WorkflowsHubCard.tsx index 6c0e5879..bb57df4a 100644 --- a/frontend/src/app/pages/Workflows/WorkflowsHubCard.tsx +++ b/frontend/src/app/pages/Workflows/WorkflowsHubCard.tsx @@ -480,7 +480,7 @@ const WorkflowsHubCard: React.FC = ({ { if (!sidebarCtxMenu) return; dispatch(addWorkflowCard({ workflowId: sidebarCtxMenu.workflow.id })); - dispatch(openWorkflowCard({ workflowId: sidebarCtxMenu.workflow.id, view: 'edit', editFacet: 'Schedule' })); + dispatch(openWorkflowCard({ workflowId: sidebarCtxMenu.workflow.id, view: 'edit_agent' })); closeSidebarCtxMenu(); }}>Edit…