Skip to content

Add legislation filter to committees list#172

Merged
mustyoshi merged 1 commit into
masterfrom
claude/add-committee-legislation-filter-HJ8nj
Feb 24, 2026
Merged

Add legislation filter to committees list#172
mustyoshi merged 1 commit into
masterfrom
claude/add-committee-legislation-filter-HJ8nj

Conversation

@mustyoshi
Copy link
Copy Markdown
Collaborator

Summary

Added a new filter option to the committees list that allows users to filter committees by whether they have associated legislation.

Key Changes

  • Added HAS_LEGISLATION filter option constant in the layout component
  • Added hasLegislation filter configuration to the toolbar filter config
  • Extended the committee router's input validation schema to accept an optional hasLegislation boolean array parameter
  • Implemented filtering logic in the committee query to return only committees that have associated legislation when the filter is applied

Implementation Details

  • The filter uses a Prisma relation query (legislation_committee_association: { some: {} }) to check for the existence of associated legislation records
  • The filter is optional and only applied when hasLegislation includes true
  • The filter configuration supports multi-select, consistent with other filters in the toolbar

https://claude.ai/code/session_011Hj5qzy97tPv9TqMs5nuXX

Adds a new filter option to the committee search page that lets users
show only committees with at least one associated piece of legislation.
The filter uses the legislation_committee_association relation in Prisma.

https://claude.ai/code/session_011Hj5qzy97tPv9TqMs5nuXX
@mustyoshi mustyoshi merged commit 2593ece into master Feb 24, 2026
1 check passed
@mustyoshi mustyoshi deleted the claude/add-committee-legislation-filter-HJ8nj branch February 24, 2026 03:06
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.

2 participants