ContactAssistApp / ContactAssistApp/dashboard
Making this happen
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
It would be really great if we could have a web-based dashboard where anyone can access narrowcast messages sent by healthcare authorities
See here if you're not familiar with that feature of this app: https://github.com/covidsafe/hcp-tools
The ask for this is a really simple web page with the following features:
1) A Google maps where you can select different areas => you see the list of most recent messages related to that area
2) You can look through all historical messages posted to that area
3) By default the browser should get your current location and show you the list of messages on the server relevant to your location
4) Extra credit: Have a layer on the map with badges/pins that indicates whether there are messages associated with a particular region and how many.
Check out this Swagger to understand the procedure for getting the narrowcast messages:
https://csapi.azurefd.net/swagger/index.html
The Swagger provides concrete examples of the parameters you are to send.
At a high level at least these three requests must be made:
1) HEAD /api/Messages/List
This tells you how many messages are on the server now.
2) GET /api/Messages/List
This retrieves a list of MessageIDs associated with each of the messages.
3) POST /api/Message
You send the MessageIDs you want / relevant to your location, and you will get back some JSON objects. You are looking for AreaMatch objects, and these will contain a user message.
But please see this file in the Android implementation for a reference for how to pull narrowcast messages:
https://github.com/covidsafe/App-Android/blob/master/app/src/main/java/edu/uw/covidsafe/comms/PullFromServerTask.java
I would recommend going through this protocol yourself with our endpoint using the Postman software:
https://csapi.azurefd.net/api/
For testing purposes, you can PUT your own messages to the server (more details in the Swagger):
/api/Messages/AreaReport
It would be best if this component is easy to use by everyone. In other words, significantly reduce any technical dependencies that your code relies on, and use the simplest technology.
We should be able to integrate this with our Github pages here so people can just click on a link in the README and view the final result!
Comment here if you have any questions or suggestions
Ping me on Slack if any of this is unclear and I can unblock you.
Contributor guide
Assessment
This issue has not been assessed yet.