Skip to content

fix: add volunteer type filter to volunteer search#523

Merged
need4deed merged 7 commits into
developfrom
fix/369-volunteer-type-filter
May 20, 2026
Merged

fix: add volunteer type filter to volunteer search#523
need4deed merged 7 commits into
developfrom
fix/369-volunteer-type-filter

Conversation

@nadavosa
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a "Volunteer type" accordion filter to the volunteer search page
  • Filter options: Accompanying, Regular, Events, Regular + Accompanying
  • Serializes to ?type=accompanying&type=regular etc. — the BE already supports filter.type via getVolunteerWhere
  • Filter persists in URL query params and deserializes correctly on page load

Related

Test plan

  • Open /dashboard/volunteers, expand filters panel
  • Select "Regular" volunteer type — list updates to show only regular volunteers
  • Select multiple types — list shows union of selected types
  • URL contains ?type=regular etc.
  • Refresh page — filter selection is preserved

🤖 Generated with Claude Code

nadavosa and others added 4 commits May 13, 2026 17:22
Closes #369

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closes #423

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Part of #423

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… develop

SDK 0.0.83 added PAST to VolunteerStateMatchType. Both Record<VolunteerStateMatchType>
maps were exhaustiveness-checked and missing the new value, causing typecheck to fail.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nadavosa nadavosa force-pushed the fix/369-volunteer-type-filter branch from 83064db to c8696a9 Compare May 13, 2026 15:23
These fields are not yet in the published SDK (need4deed-sdk@0.0.85).
Restore the cast pattern from before to unblock typecheck.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@ivannissimrch ivannissimrch left a comment

Choose a reason for hiding this comment

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

The volunteer type filter labels and match status labels render as raw translation keys in both EN and DE. The code references dashboard.volunteers.filters.volunteerType_title, dashboard.volunteers.filters.volunteerType_options.*, and dashboard.volunteers.matchStatus.* but none of these paths exist in either locale file.

Image

Adds to dashboard.volunteers.filters: volunteerType_title, volunteerType_options
Adds to dashboard.volunteers: matchStatus (vol-* keys)

Both EN and DE locales updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nadavosa
Copy link
Copy Markdown
Collaborator Author

Fixed in e169cb8 — added the missing translation keys to both EN and DE locale files:

  • dashboard.volunteers.filters.volunteerType_title
  • dashboard.volunteers.filters.volunteerType_options (accompanying, regular, events, regular-accompanying)
  • dashboard.volunteers.matchStatus (vol-no-matches, vol-pending-match, vol-matched, vol-needs-rematch, vol-past)

@need4deed need4deed merged commit c906a20 into develop May 20, 2026
1 check passed
@need4deed need4deed deleted the fix/369-volunteer-type-filter branch May 20, 2026 10:39
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.

bug: cannot filter volunteers by Volunteer type

3 participants