Skip to content

[Bug] IssuesPage: Filter/search bar not wired to API #116

@mpaulosky

Description

@mpaulosky

Summary

The filter bar on IssuesPage.razor collects _searchTerm, _statusFilter, and _categoryFilter from the user but none of these values are passed to the API call. Clicking "Search" just reloads the same unfiltered page.

Root Cause

LoadIssues(int page) calls IssueClient.GetAllAsync(page, 20) with no filter arguments. The IssueApiClient and the ListIssues endpoint support searchTerm and authorName query params, but status and category filters have no API support at all.

Work Required

Backend (squad:sam)

  • Add statusName and categoryName query params to ListIssuesQuery and ListIssuesHandler
  • Update IssueEndpoints.cs ListIssues route to accept and forward these params
  • Ensure the repository query filters by status/category when provided

Frontend (squad:legolas)

  • Update IssueApiClient.GetAllAsync() signature to accept searchTerm, statusName, categoryName
  • Update LoadIssues() in IssuesPage.razor to pass _searchTerm, _statusFilter, _categoryFilter to the client
  • Verify "Clear" button fully resets filters and re-triggers load

Acceptance Criteria

  • Typing in the search box and clicking Search returns only matching issues (title/description match)
  • Selecting a status filter returns only issues with that status
  • Selecting a category filter returns only issues in that category
  • Filters can be combined (search + status + category)
  • "Clear" resets all filters and shows all issues
  • Pagination resets to page 1 when filters change

Files

  • src/Web/Components/Features/Issues/IssuesPage.razor
  • src/Web/Components/Features/Issues/IssueApiClient.cs
  • src/Api/Handlers/Issues/IssueEndpoints.cs
  • src/Api/Handlers/Issues/ListIssuesHandler.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:yesReady to implementpriority:p1This sprintrelease:backlogNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)squad:samAssigned to Sam (Backend Dev)type:bugSomething broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions