From 88156ee9e0e528af2db0a03d934c613b61e1c74d Mon Sep 17 00:00:00 2001 From: Matt Rubens <2600+mrubens@users.noreply.github.com> Date: Sat, 18 Jul 2026 13:00:54 +0000 Subject: [PATCH] improve: default /tasks user filter to any user for admins --- apps/web/src/app/(authenticated)/tasks/Tasks.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/(authenticated)/tasks/Tasks.tsx b/apps/web/src/app/(authenticated)/tasks/Tasks.tsx index ab406518a..28a5ac017 100644 --- a/apps/web/src/app/(authenticated)/tasks/Tasks.tsx +++ b/apps/web/src/app/(authenticated)/tasks/Tasks.tsx @@ -59,7 +59,7 @@ import { } from '@/components/tasks/taskTypeFilter'; export const Tasks = () => { - const { userId } = useAuthorizedUser(); + const { userId, isAdmin } = useAuthorizedUser(); const { isDebugUIVisible } = useShowDebugUI(); const showTaskTypeFilter = isDebugUIVisible; @@ -111,7 +111,8 @@ export const Tasks = () => { () => getTaskCategoryById(category), [category], ); - const defaultsToAnyUser = selectedCategory?.isAutonomous ?? false; + const defaultsToAnyUser = + isAdmin || (selectedCategory?.isAutonomous ?? false); const effectiveFilterUserId = filterUserId ?? (defaultsToAnyUser ? 'all' : null);