MrSpiffyClean / covidtrends

Tracking the growth of COVID-19 Cases worldwide
https://aatishb.com/covidtrends/
MIT License
0 stars 0 forks source link

To-do list #2

Closed MrSpiffyClean closed 4 years ago

MrSpiffyClean commented 4 years ago

Basic to-do list, in order to document remaining changes.

2020-05-07

MrSpiffyClean commented 4 years ago

In order to check if defaults have been changed, look into how processData sets the default countries (line 439) and adapt from there.

MrSpiffyClean commented 4 years ago

:heavy_check_mark: Change changeURL in order to detect whether defaults have been set Need to test this to check if works/borks stuff.

MrSpiffyClean commented 4 years ago

New idea. Having a button to restore to defaults (in the middle of the select all / deselect all). Since pressing a region and then going back restores the default, maybe not needed.

MrSpiffyClean commented 4 years ago

:heavy_check_mark: Investigate weird performance issue (seems slower now than just calling changeURL without arguments) with how I'm now calling changeURL

Remembered to check the actual live page if my perceived performance issue (slight 1 second pause between button presses) was there and it turns out it is, which means my code isn't directly responsible for it. It is something to look into forward.

MrSpiffyClean commented 4 years ago

:heavy_check_mark: Deal with Select All / Deselect All buttons (first idea is having just a new URL parameter with select=all/none) The buttons have the basic functionality, however two things need to be solved before the pull request:

The tasks were added to the first post.

MrSpiffyClean commented 4 years ago

The createURL event seems to fire before the actual renderization/selection of the buttons/countries. Using the checkbox variable to halt all being added should work.

MrSpiffyClean commented 4 years ago

:heavy_check_mark: Changing Region after selecting all doesn't update correctly the URL (the url still thinks everything is selected, even though it is not) :heavy_check_mark: Making Vue.js recognize the new select parameter

MrSpiffyClean commented 4 years ago

The code should now be ready for a pull request. Tomorrow, after some basic checks.

In case I decide to add the "restore to defaults" button, a thing of note is that changing the selectedCountries array also changes everything else, so that's pretty much how to do it.