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 #1658]: Agency filter list #1772

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented Apr 17, 2024

Summary

Fixes #1658

Time to review: 5 min

Changes proposed

  • Update agency filter list based on spreadsheet
  • generate an agency filter lookup that will use the same labels in the SearchResultsListItem that the agency filters use

Context for reviewers

@rylew1 rylew1 self-assigned this Apr 18, 2024
@rylew1 rylew1 marked this pull request as ready for review April 18, 2024 00:07
@rylew1
Copy link
Contributor Author

rylew1 commented Apr 18, 2024

@andycochran @crystabelrangel - let me know what labels we want to manually change

@rylew1 rylew1 requested a review from chouinar April 18, 2024 00:18
@andycochran
Copy link
Collaborator

Can you swap the square brackets for parentheses, like below?

We'll need to change any of these that don't match. These are the only ones that were reviewed. @crystabelrangel, do you remember which ones we changed during approvals? "ED" came to mind, but it looks like it's already right in the data.

image

andycochran
andycochran previously approved these changes Apr 18, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

AgencyNameLookup?

Copy link
Collaborator

Choose a reason for hiding this comment

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

…since it's also used for the results, not just for the filter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed to generateAgencyNameLookup and agencyNameLookup

Also changed to parentheses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

frontend/src/utils/search/generateAgencyFilterLookup.ts Outdated Show resolved Hide resolved
@andycochran
Copy link
Collaborator

Can you nix the prefix "All"? We think it's unnecessary and implied by the nesting/dropdown (and will test)

opportunity?.summary?.agency_code &&
agencyNameLookup
? // Use same exact label we're using for the agency filter list
agencyNameLookup[opportunity?.summary?.agency_code]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@andycochran - this is the key part here - make sure this is what you want. We're displaying the exact checkbox choice label (if it's actually in the agencyNameLookup )

@rylew1
Copy link
Contributor Author

rylew1 commented Apr 18, 2024

@andycochran I've removed the All prefix from the labels

@rylew1 rylew1 merged commit 4e93b12 into main Apr 18, 2024
9 checks passed
@rylew1 rylew1 deleted the rylew/1658-agency-filter-list branch April 18, 2024 18:50
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]: Set up all agencies as filter options
2 participants