diff --git a/apps/webapp/app/components/primitives/Switch.tsx b/apps/webapp/app/components/primitives/Switch.tsx index 26d355c76b..2c3121676f 100644 --- a/apps/webapp/app/components/primitives/Switch.tsx +++ b/apps/webapp/app/components/primitives/Switch.tsx @@ -16,7 +16,7 @@ const variations = { "flex items-center h-[1.5rem] gap-x-1.5 rounded hover:bg-tertiary disabled:hover:bg-transparent pr-1 py-[0.1rem] pl-1.5 transition focus-custom disabled:hover:text-charcoal-400 disabled:opacity-50 text-charcoal-400 hover:text-charcoal-200 disabled:hover:cursor-not-allowed hover:cursor-pointer", root: "h-3 w-6", thumb: "h-2.5 w-2.5 data-[state=checked]:translate-x-2.5 data-[state=unchecked]:translate-x-0", - text: "text-xs transition", + text: "text-xs", }, }; diff --git a/apps/webapp/app/components/runs/v3/RunFilters.tsx b/apps/webapp/app/components/runs/v3/RunFilters.tsx index 357ed4d319..582141ce80 100644 --- a/apps/webapp/app/components/runs/v3/RunFilters.tsx +++ b/apps/webapp/app/components/runs/v3/RunFilters.tsx @@ -99,7 +99,7 @@ export const TaskRunListSearchFilters = z.object({ bulkId: z.string().optional(), from: z.coerce.number().optional(), to: z.coerce.number().optional(), - showChildTasks: z.coerce.boolean().optional(), + rootOnly: z.coerce.boolean().optional(), batchId: z.string().optional(), runId: z.string().optional(), scheduleId: z.string().optional(), @@ -119,6 +119,7 @@ type RunFiltersProps = { type: BulkActionType; createdAt: Date; }[]; + rootOnlyDefault: boolean; hasFilters: boolean; }; @@ -141,16 +142,12 @@ export function RunsFilters(props: RunFiltersProps) { return (
- + {hasFilters && (
- {searchParams.has("showChildTasks") && ( - + {searchParams.has("rootOnly") && ( + )}