Skip to content

Add filters to product drive participant list#5629

Open
stefannibrasil wants to merge 4 commits into
rubyforgood:mainfrom
hexdevs:filters-product-drive-participant-list-5592
Open

Add filters to product drive participant list#5629
stefannibrasil wants to merge 4 commits into
rubyforgood:mainfrom
hexdevs:filters-product-drive-participant-list-5592

Conversation

@stefannibrasil

Copy link
Copy Markdown
Contributor

Resolves #5592

Description

Currently there is no way to filter the table and users need to be able to filter down to the info they need.

This commit adds two filters to product drive participants following the pattern of other screens such as Product Drives:

  • Business name: text field that does a partial match
  • Contact name: text field that does a partial match. For example, "March" matches "Spring March Drive"
  • Exports (CSV) also respect these filters in the output

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • automated tests
  • manual test

Screenshots

Before

600611529-d4fed27f-082d-4beb-82fe-bbc155025dc0

After

Text filters:
Screenshot 2026-07-06 at 16-07-14 Product Drive Participants - Agencies - Pawnee Diaper Bank

Applying a filter
Screenshot 2026-07-06 at 16-07-25 Product Drive Participants - Agencies - Pawnee Diaper Bank

Applying a filter
Screenshot 2026-07-06 at 16-07-36 Product Drive Participants - Agencies - Pawnee Diaper Bank

Walk through of the changes (showing exports as well)

product.drive.participants.filters.and.exports.420.mov

Currently there is no way to filter the table and
users need to be able to filter down to the info they need.

This commit adds two filters to product drive participants
following the pattern of other screens such as Product Drives:

- Business name: text field that does a partial match
- Contact name: text field that does a partial match
        for example, "March" matches "Spring March Drive"
- Exports (CSV) also respect these filters in the output

Export filtered product drive participants
To prevent this controller from getting bigger as new filters
and functionalities are added, extracting the view variables
to a View object keeps the controller cleaner.
@stefannibrasil stefannibrasil force-pushed the filters-product-drive-participant-list-5592 branch from e42e5b6 to ee9f540 Compare July 6, 2026 22:11
linter
@stefannibrasil stefannibrasil force-pushed the filters-product-drive-participant-list-5592 branch from ee9f540 to bf2796d Compare July 6, 2026 22:13
@stefannibrasil

Copy link
Copy Markdown
Contributor Author

CI failure is unrelated: #5615

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 filters to product drive participant list

1 participant