-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
|
||
if (value) { | ||
values.add(value); | ||
} |
There was a problem hiding this comment.
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
formRef: React.RefObject<HTMLFormElement>; | ||
} | ||
|
||
export default function SearchFilterEligibility({ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
If it's an issue its a quick revert. And do we want to double check the other labels are all correct?
Summary
Fixes #1593
Time to review: 5-10 mins
Changes proposed
Context for reviewers
category
in the frontend becomesfunding_category
for the API requestelgibility
in the frontend becomesapplicant_type
for the API requestScreen.Recording.2024-04-02.at.6.06.24.PM.mov