feat: Add task filtering by status and priority to GET /tasks#5
Draft
feat: Add task filtering by status and priority to GET /tasks#5
Conversation
Agent-Logs-Url: https://github.com/CanarysPlayground/TaskManagementApplication/sessions/34e3e125-3aaf-42ab-a04f-b068d1d90c6f Co-authored-by: kavyashri-as <213833080+kavyashri-as@users.noreply.github.com>
Agent-Logs-Url: https://github.com/CanarysPlayground/TaskManagementApplication/sessions/34e3e125-3aaf-42ab-a04f-b068d1d90c6f Co-authored-by: kavyashri-as <213833080+kavyashri-as@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add development checklist for API filtering implementation
feat: Add task filtering by status and priority to GET /tasks
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GET /taskshad no filtering capability — it always returned all tasks. This adds optionalstatusandpriorityquery params to the API and wires filter controls into the React UI.Backend
server.ts:GET /tasksnow accepts?status=pending|completedand?priority=Low|Medium|High; returns400with a descriptive message for invalid values; no params = all tasks (backward compatible)src/services/taskService.ts: AddedgetFilteredTasks({ status?, priority? })— chains.filter()on the in-memory store; undefined dimensions are unrestrictedFrontend
taskApiService.ts:fetchTasks(filters?)appends non-empty filter values as query-string paramsuseTasks.ts: Holdsfiltersstate; re-fetches on filter change; exposessetFiltersto callersTasksPage.tsx: Two<select>dropdowns (Status / Priority) drivesetFilters; selecting blank resets that dimensiontasks.css: Flex filter bar with.tasks-page__filters/.filter-selectExample
Original prompt
"Generate a development checklist to implement API filtering for GitHub issue #4
[Chronological Review] 1. Initial Request: User asked to summarize GitHub issue #4 from the current repository 2. Exploration: Agent ran `git remote -v` to identify the repository owner and name 3. Tool Execution: Agent called the GitHub MCP server to fetch issue #4 4. Completion: Agent presented a formatted summary of the issue to the user[Intent Mapping]
[Technical Inventory]
powershell(git remote),github-mcp-server-issue_readGET /taskswith query paramsstatusandpriority[Code Archaeology]
GET /tasksendpoint in the TaskManagementApplication project[Progress Assessment]
[Context Validation]
[Recent Commands Analysis]
git remote -v→ revealed origin: https://github.com/CanarysPlayground/TaskManagementApplication.gitgithub-mcp-server-issue_read(issue Add Task Filtering by Status and Priority #4) → returned full issue JSON with title, body, state, author, timestamps1. Conversation Overview
2. Technical Foundation
CanarysPlayground/TaskManagementApplicationhosted on GitHubhttps://github.com/CanarysPlayground/TaskManagementApplication.gitgithub-mcp-server-issue_read— used to fetch issue metadata, body, state, and authorGET /tasksendpoint being extended for filtering3. Codebase Status
GET /tasksAPI endpoint that needs to be extended, but no code was read or changed.4. Problem Resolution
git remote -vcommand was used to resolve the repository owner/name before calling the GitHub API — a straightforward two-step lookup pattern.5. Progress Tracking
github-mcp-server-issue_read6. Active Work State
kavyashri-as(MEMBER)GET /tasksto accept optional query params:status:pending|completedpriority:Low|Medium|HighGET /tasks?status=pending→ only pending tasksGET /tasks?priority=High→ only high-priority tasksGET /tasks→ all tasks7. Recent Operations
report_intent— logged intent as "Fetching GitHub issue"powershell— rangit --no-pager remote -vorigin https://github.com/CanarysPlayground/TaskManagementApplication.git (fetch/push)github-mcp-server-issue_read— called withowner: CanarysPlayground,repo: TaskManagementApplication,issue_number: 4,method: getCreated from Copilot CLI via the copilot delegate command.