Skip to content

Conversation

Copy link

Copilot AI commented Dec 11, 2025

Implements real-time text search filtering for tasks by title and description with URL state persistence.

Changes

  • Server action: searchTasks() filters tasks using case-insensitive CONTAINS query, minimum 3 characters required
  • Client component: TasksPageClient wraps task list with search UI (magnifying glass icon, clear button, filter button stub)
  • Empty state: EmptyState component displays when search yields no results
  • URL persistence: Search query synced to URL params via pushState, restored on page load and browser navigation
  • Debouncing: 300ms delay before triggering search to reduce query volume
// Search is case-insensitive and searches both fields
await prisma.task.findMany({
  where: {
    OR: [
      { name: { contains: query, mode: 'insensitive' } },
      { description: { contains: query, mode: 'insensitive' } },
    ],
  },
  // ...
});

Security

  • Removed password fields from task query responses (assignee/creator selects)

Testing

  • 15 unit tests covering search action, client component, and empty state
  • 13 E2E tests covering search flows, URL persistence, and edge cases
Original prompt

This section details on the original issue you should resolve

<issue_title>TF-50 Add Text Search for Tasks</issue_title>
<issue_description> Implement the work described in Jira ticket TF-50, including looking at any Figma files mentioned. When finished, transition the ticket to "In Reivew".

To do the work use the following prompt chain which describes steps for best implementing the feature:

  1. Open the repository on GitHub: https://github.com/bitovi/ai-enablement-prompts.
  2. Execute the prompt writing-code/generate-feature/generate-feature.md</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add text search feature for tasks TF-50: Add text search for tasks Dec 11, 2025
Copilot AI requested a review from BitoviAI December 11, 2025 15:20
@mikedane-bitovi mikedane-bitovi force-pushed the copilot/add-text-search-for-tasks-again branch from 177d30f to 7be1900 Compare December 11, 2025 16:10
@mikedane-bitovi mikedane-bitovi deleted the copilot/add-text-search-for-tasks-again branch December 11, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TF-50 Add Text Search for Tasks

3 participants