Skip to content

add client groups API route, fetch script, and unit test#103

Merged
james-cross merged 1 commit intoStreetSupport:stagingfrom
james-cross:feature/create-client-groups-endpoint
Jun 18, 2025
Merged

add client groups API route, fetch script, and unit test#103
james-cross merged 1 commit intoStreetSupport:stagingfrom
james-cross:feature/create-client-groups-endpoint

Conversation

@james-cross
Copy link
Collaborator

  • Added /api/client-groups serverless API route to return all client groups from the database.
  • Created a new fetch-client-groups.js script to generate a static client-groups.json file for local use.
  • Refactored route logic into a reusable getClientGroups helper for easier unit testing.
  • Added Jest unit test for the helper to verify database output and error handling.
  • Verified that clientGroups are displayed on Find Help but not yet used for filtering — ready for future extension.

@james-cross james-cross merged commit 2078ac1 into StreetSupport:staging Jun 18, 2025
4 checks passed
@james-cross james-cross deleted the feature/create-client-groups-endpoint branch June 18, 2025 08:00
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.

1 participant