Skip to content

Add search and multi-filter system for tasks page#315

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/implement-tasks-search-filter
Draft

Add search and multi-filter system for tasks page#315
Copilot wants to merge 4 commits into
mainfrom
copilot/implement-tasks-search-filter

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 2, 2026

Implements task search and filtering with multi-select status/priority, single-select assignee, and full-text search.

Server Actions

Added getFilteredTasks() with Prisma where clause composition:

  • Case-insensitive search on name/description using PostgreSQL contains with mode: "insensitive"
  • Multi-value filtering via in operator for status and priority arrays
  • Properly typed filter object to avoid any
const where: {
  OR?: Array<{ name: { contains: string; mode: "insensitive" } } | ...>;
  status?: { in: string[] };
  priority?: { in: string[] };
  assigneeId?: number;
} = {};

UI Components

TaskFilters - Filter panel with:

  • Search input with debounce via useEffect
  • Toggle-able badge UX for multi-select (status, priority)
  • Dropdown for assignee selection
  • Clear all when filters active

TasksPageClient - Wrapper managing filter state and calling server action on change

Layout

Grid layout: 300px fixed sidebar for filters, 1fr flexible task list. Filter state lives client-side for immediate feedback; results fetched server-side for accuracy.

Tests

Unit tests verify filter state management and callbacks. E2E tests cover filter combinations and UI interactions.


Note: TF-98 not accessible via Jira MCP - implemented based on TF-3 (Task Search) requirements from repository context.

Original prompt

This section details on the original issue you should resolve

<issue_title>Tasks search and filter</issue_title>
<issue_description>Implement the work described in Jira ticket TF-98, 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:

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

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


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 2, 2026 19:12
Co-authored-by: mikedane-bitovi <220898002+mikedane-bitovi@users.noreply.github.com>
Co-authored-by: mikedane-bitovi <220898002+mikedane-bitovi@users.noreply.github.com>
…cement

Co-authored-by: mikedane-bitovi <220898002+mikedane-bitovi@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement tasks search and filter feature Add search and multi-filter system for tasks page Feb 2, 2026
Copilot AI requested a review from mikedane-bitovi February 2, 2026 19:23
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.

Tasks search and filter

2 participants