Add info icon and tooltip next to statename in table IF a note needs to be shown
Created by: sudevschiz
Is your feature request related to a problem? Please describe.
When a remark needs to be made regarding a state's number in the main table, it's currently added to the "About (FAQ)" page. Instead of that, it should be a
Describe the solution you'd like
- Fetch the
statenotes
field now available in thestatewise
object for each state at https://api.covid19india.org/data.json
- Show an info icon
ℹ ️ next to the statenames IF there is a valid non-empty string forstatenotes
- Show the text as tooltip
Describe alternatives you've considered Currently we show the info message in FAQ for WB. This is not very useful, now that we have lot more caveats to display.
Additional context
- Data volunteers can update the Statewise sheet to update the notes.
- Maybe an empty string check might be useful, to avoid just a space in the
statenotes
to cause aℹ ️ to show up.