marinara
marinara copied to clipboard
add ability to view specific date range within Pomodoro history
This allows the history tab Pomodoro data to be filtered to a specific date range. This allows the user to, for example, visualize their Pomodoro history for just 2019.
- Partially addresses https://github.com/schmich/marinara/issues/75
- I don't have much experience with Chrome extensions or Vue so not sure I did things correctly. I went off existing patterns I saw in the codebase. Feel free to call out anything weird.
- The timestamp calculation on the beginning/end dates may be slightly off - I wasn't rigorous about zeroing out hh:mm:ss to the start of the day or dealing with timezones. But other than that it should work and most of the time you'd care to view data over a longer multi-day range, and you can always choose a day earlier or later than the range to safely include all data.
- I only added locale strings for English. Is that okay?
before:
![Screen Shot 2020-08-01 at 8 54 02 PM](https://user-images.githubusercontent.com/1305608/89115123-34a9f780-d439-11ea-928f-95c2f4dc8da7.png)
after:
![Screen Shot 2020-08-01 at 8 45 33 PM](https://user-images.githubusercontent.com/1305608/89115105-193eec80-d439-11ea-8364-7b0b9fc97607.png)
![Screen Shot 2020-08-01 at 8 45 48 PM](https://user-images.githubusercontent.com/1305608/89115106-1ba14680-d439-11ea-9303-e55cb109e205.png)
![Screen Shot 2020-08-01 at 8 46 36 PM](https://user-images.githubusercontent.com/1305608/89115107-1c39dd00-d439-11ea-8606-4b6cfd3f8970.png)