+
+
+
+ setSearchQuery(e.target.value)}
+ className="pl-10 pr-10"
+ />
+ {searchQuery && (
+
+ )}
+
+
+
+
+
+
+ Status
+ {STATUS_OPTIONS.map(option => (
+ toggleStatus(option.value)}
+ >
+ {option.label}
+
+ ))}
+
+ Priority
+ {PRIORITY_OPTIONS.map(option => (
+ togglePriority(option.value)}
+ >
+ {option.label}
+
+ ))}
+
+
+
+
+ {filteredTasks.length === 0 ? (
+
+
+ No tasks match the current search and filter criteria.
+
+
+ ) : (
+
+ )}
+
+ )
+}
From 547eee9c759309c670e81527fdb3013ae32008d5 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 31 Oct 2025 17:56:46 +0000
Subject: [PATCH 3/3] Add accessibility improvements to search and filter
controls
Co-authored-by: BitoviAI <226138784+BitoviAI@users.noreply.github.com>
---
components/tasks-with-search.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/tasks-with-search.tsx b/components/tasks-with-search.tsx
index 060ca74..df0f1fe 100644
--- a/components/tasks-with-search.tsx
+++ b/components/tasks-with-search.tsx
@@ -63,7 +63,7 @@ export function TasksWithSearch({ initialTasks }: TasksWithSearchProps) {
// Apply search filter
const matchesSearch = searchQuery.trim() === "" ||
task.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
- task.description.toLowerCase().includes(searchQuery.toLowerCase())
+ (task.description || "").toLowerCase().includes(searchQuery.toLowerCase())
// Apply status filter
const matchesStatus = selectedStatuses.includes(task.status)
@@ -92,6 +92,7 @@ export function TasksWithSearch({ initialTasks }: TasksWithSearchProps) {
size="icon"
className="absolute right-1 top-1/2 h-7 w-7 -translate-y-1/2"
onClick={handleClearSearch}
+ aria-label="Clear search"
>