Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

The "Not Applied" status filter was showing families that had applied to roles because the filtering logic checked against status types (Prospective, Approved, etc.) instead of actual volunteer roles.

Changes

Fixed familyHasNoValidStatuses() and familyMemberHasNoValidStatuses()

  • Changed from iterating statusFilters to roleFilters (excluding catchAllLabel)
  • Now correctly checks if family/individual has no approvals across all available volunteer roles
  • Added optional chaining for safer property access
// Before: checked status types
return statusFilters.every((filterOption) =>
  family.volunteerFamilyInfo?.familyRoleApprovals?.[filterOption.key] === undefined
);

// After: checks actual roles
return roleFilters
  .filter((filterOption) => filterOption.key !== catchAllLabel)
  .every((filterOption) =>
    family.volunteerFamilyInfo?.familyRoleApprovals?.[filterOption.key] === undefined
  );

The filter now correctly returns only families/individuals with no role applications.

Original prompt

This section details on the original issue you should resolve

<issue_title>"Not Applied" status filter seems to not be working</issue_title>
<issue_description>I entered a volunteer family, applied to all roles (family level and individual), tried to filter by Status: Not Applied, and the family is still showing in the list.

Image</issue_description>

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 20, 2026 15:34
…sFilters

Co-authored-by: PabloDinella <2482730+PabloDinella@users.noreply.github.com>
Co-authored-by: PabloDinella <2482730+PabloDinella@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix not applied status filter functionality Fix "Not Applied" status filter incorrectly checking status types instead of roles Jan 20, 2026
Copilot AI requested a review from PabloDinella January 20, 2026 15:41
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.

"Not Applied" status filter seems to not be working

2 participants