From 301437e169cdd3e1fc1fc4424b2a6022664b1f57 Mon Sep 17 00:00:00 2001 From: dotta Date: Thu, 19 Mar 2026 14:08:36 -0500 Subject: [PATCH] Make routine rows clickable and add Edit to context menu - Clicking any routine row navigates to its detail/edit view - Renamed "Open" to "Edit" in the three-dot context menu - Added stopPropagation on toggle switch and dropdown cells so interactive elements don't trigger row navigation - Removed redundant Link wrapper on routine title Co-Authored-By: Paperclip Co-Authored-By: Claude Opus 4.6 --- ui/src/pages/Routines.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/Routines.tsx b/ui/src/pages/Routines.tsx index e7625ca8..890641f6 100644 --- a/ui/src/pages/Routines.tsx +++ b/ui/src/pages/Routines.tsx @@ -1,6 +1,6 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; -import { Link, useNavigate } from "@/lib/router"; +import { useNavigate } from "@/lib/router"; import { ChevronDown, ChevronRight, MoreHorizontal, Play, Plus, Repeat } from "lucide-react"; import { routinesApi } from "../api/routines"; import { agentsApi } from "../api/agents"; @@ -535,12 +535,16 @@ export function Routines() { const isArchived = routine.status === "archived"; const isStatusPending = statusMutationRoutineId === routine.id; return ( - + navigate(`/routines/${routine.id}`)} + >
- + {routine.title} - + {(isArchived || routine.status === "paused") && (
{isArchived ? "archived" : "paused"} @@ -582,7 +586,7 @@ export function Routines() {
{routine.lastRun.status.replaceAll("_", " ")}
) : null} - + e.stopPropagation()}>
- + e.stopPropagation()}>