Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue #1593]: Add eligibility and category filters #1613

Merged
merged 5 commits into from
Apr 9, 2024

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented Apr 3, 2024

Summary

Fixes #1593

Time to review: 5-10 mins

Changes proposed

  • Add eligibility and category filters
    • working with API request, checked boxes load with initial query params, and results actually filter based on values

Context for reviewers

  • category in the frontend becomes funding_category for the API request
  • elgibility in the frontend becomes applicant_type for the API request
Screen.Recording.2024-04-02.at.6.06.24.PM.mov

@rylew1 rylew1 changed the title [Issue #1593]: [Issue #1593]: Add eligibility and category filters Apr 3, 2024

if (value) {
values.add(value);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just one function that all filter getters below can use

@rylew1 rylew1 requested review from andycochran and chouinar and removed request for andycochran April 3, 2024 20:42
formRef: React.RefObject<HTMLFormElement>;
}

export default function SearchFilterEligibility({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that I did modify the naming on a few of these to be shorter as the existing values were a bit long to have as a constant.

You can see the original values on https://grants.gov/system-to-system/grantor-system-to-system/schemas/grants-funding-synopsis#EligibleApplicantTypes

For example: Nonprofits having a 501(c)(3) status with the IRS, other than institutions of higher education became nonprofits_non_higher_education_with_501c3. The former might be better for the label on the front-end.

Copy link
Contributor Author

@rylew1 rylew1 Apr 8, 2024

Choose a reason for hiding this comment

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

@andycochran I'm going to use the longer one for the label here per @chouinar's suggestion:

image

If it's an issue its a quick revert. And do we want to double check the other labels are all correct?

@rylew1 rylew1 merged commit f025217 into main Apr 9, 2024
11 checks passed
@rylew1 rylew1 deleted the rylew/1593-add-eligibility-category-filters branch April 9, 2024 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[Task]: Eligibility filter / Eligible applicant type / Category filter
3 participants