Skip to content

Switched booking locations step to filtered offices-by-service API. - #1099

Open
veenupunyani wants to merge 1 commit into
developfrom
Use-services-by-location-API-endpoint-for-locations-page
Open

Switched booking locations step to filtered offices-by-service API.#1099
veenupunyani wants to merge 1 commit into
developfrom
Use-services-by-location-API-endpoint-for-locations-page

Conversation

@veenupunyani

Copy link
Copy Markdown
Collaborator

Summary

  • Added a booking service-locations API client that calls existing GET /api/v1/offices?service_id= and maps next_appointment_date (ISO) for later UI use.
  • Wired the locations step to load offices for the selected service only; kept the old all-locations client untouched.
  • Preserved existing SHOW / appointments-enabled client filters.

Test plan

If you have the same seed data from earlier PR's then,

  • Select Medical Services Plan Application for BC Medical -> locations list shows Test Office and Victoria only
  • Select Rural Property Tax - Deferment Application -> list shows 100 Mile House and Test Office only
  • Network tab: request is GET …/offices?service_id= (no trailing slash); response includes next_appointment_date

@sonarqubecloud

Copy link
Copy Markdown

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