g0v / vaccinate

vaxx.tw is a tool to find COVID-19 Vaccine Appointments near you
http://vaxx.tw
MIT License
33 stars 20 forks source link

Hospital Grid By City #72

Closed kevinjcliao closed 3 years ago

kevinjcliao commented 3 years ago

This took a surprising amount of time for me.

We currently have ~390 hospitals. That's too much data to show to the user at once.

This PR:

  1. Removes the Bootstrap JS dependency. We're only using it to toggle the navbar so I added in some JS to do that. We can make it prettier later.
  2. Sorts hospitals by location.
  3. When there are more hospitals than 20 for each availability category, we collapse into accordions by city.

    Test Plan:

    [X] Yarn lint; yarn tc completes without error. [X] Load test server on device. Confirm that it works as expected. Screenshot from 2021-05-22 23-07-19 Screenshot from 2021-05-22 23-07-46