Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 3, 2025

Overview

This PR adds comprehensive filtering capabilities to the Issues table, allowing users to quickly find and analyze specific issues based on multiple criteria.

Changes

Added a filter dialog to the Issues section that supports filtering by:

  • Author: Text-based search to filter issues by username (case-insensitive partial matching)
  • Status: Filter by Open, Closed, or All issues
  • Linked PR: Filter issues that have linked pull requests, no linked pull requests, or all

Features

Interactive Filter Dialog

The filter dialog provides an intuitive interface for applying multiple filters simultaneously. Users can click the Filter button to open the dialog, adjust their criteria, and apply filters with a single click.

Visual Feedback

  • Badge Indicator: A numbered badge on the Filter button shows how many filters are currently active
  • Issue Count Display: The header updates to show "X of Y issues" when filters are active, making it clear how many issues match the current criteria
  • Real-time Updates: Filters are applied immediately when the dialog is closed

Easy Filter Management

  • Clear All Button: Reset all filters to their default state with one click
  • Persistent State: Filters remain active while browsing the table, allowing users to sort and examine filtered results
  • Works with Sorting: The filtering integrates seamlessly with the existing column sorting functionality

Implementation Details

The implementation uses React's useMemo hook to efficiently filter the issues list based on the current filter criteria. The filtering logic:

  • Applies all active filters in combination (AND logic)
  • Uses case-insensitive partial matching for author names
  • Checks for presence/absence of linked PRs
  • Preserves the existing sorting behavior

Screenshots

Filter Dialog

The filter dialog provides a clean interface with filtering options for Author, Status, and Linked Pull Request.

Filtered Results

Example showing the table filtered to show only Open issues (3 of 4), with the badge indicator displaying "1" active filter.

Testing

  • ✅ Manually tested all filter combinations
  • ✅ Verified filters work correctly with table sorting
  • ✅ Confirmed Clear All functionality resets all filters
  • ✅ Frontend builds successfully with no errors
  • ✅ ESLint passes with no warnings

Fixes #23

Original prompt

This section details on the original issue you should resolve

<issue_title>Add ability to filter issues table by author, date, status, and linked PR</issue_title>
<issue_description>It would be really convenient to be able to filter out entries in the issues table.

Image</issue_description>

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

Fixes #23

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits October 3, 2025 14:02
Co-authored-by: ChrisTimperley <523560+ChrisTimperley@users.noreply.github.com>
Co-authored-by: ChrisTimperley <523560+ChrisTimperley@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to filter issues table by author, date, status, and linked PR Add filtering functionality to issues table Oct 3, 2025
Copilot AI requested a review from ChrisTimperley October 3, 2025 14:04
Copy link
Owner

@ChrisTimperley ChrisTimperley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Let's remove the date filtering. Otherwise this looks great!

@ChrisTimperley
Copy link
Owner

@copilot can you handle these changes?

Co-authored-by: ChrisTimperley <523560+ChrisTimperley@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 3, 2025

@copilot can you handle these changes?

Done! Date filtering has been removed in commit e571891.

@copilot Let's remove the date filtering. Otherwise this looks great!

Removed date filtering in commit e571891. The filter dialog now only includes Author, Status, and Linked PR filters.

Updated Filter Dialog

Copilot AI requested a review from ChrisTimperley October 3, 2025 14:22
@ChrisTimperley ChrisTimperley marked this pull request as ready for review October 3, 2025 15:10
@ChrisTimperley ChrisTimperley merged commit 66c035b into main Oct 3, 2025
2 checks passed
@ChrisTimperley ChrisTimperley deleted the copilot/fix-d60c06c7-1e9f-4a65-9742-24c909550f74 branch October 3, 2025 15:24
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.

Add ability to filter issues table by author, date, status, and linked PR

2 participants