njyjn / sg-vaccine-tracker

A data scraper that provides the latest percentage of Singapore's population which have received the COVID-19 vaccination. All data from MOH.
https://vaccine.justinng.net
MIT License
6 stars 1 forks source link

Display first shot counts #13

Closed njyjn closed 3 years ago

njyjn commented 3 years ago

While it is great that the count for full vaccinations are displayed, it may be helpful for users to also know how many people have received only one dose.

The fix to this will involve modifying the API at https://github.com/njyjn/sg-vaccine-tracker/blob/3e3ff768033726a5b7d31409b9fa843681b2ec57/api/src/logic/count.ts#L40 to support the scraping for the Received at least First Dose DOM element, storing it in DynamoDB under a new type, and adding the associated text in the client UI.

njyjn commented 3 years ago

Mocking test getHtmlContent.test.ts has been added, please modify the test accordingly as this feature is added.

Running npm test will help validate

njyjn commented 3 years ago

Resolved