Improve Chrome Extension page images & text. Currently looks like this:
UX
Timeout widget increments should increase incrementally.
e.g. first, the increment is 5 minutes. Then, we increment to 30 minutes, after which the increment should be 15 minutes. Then after 1 hour the increment should be in hours.
Put timeout widget for current website in popup menu.
Codebase
Use different storage adapter for chrome offline testing
Use chrome.local instead of chrome.sync when in local environment. This in order to stress the sync storage adapter less, it has appeared to be the source of some extraneous warning logs.
Enable Travis
Add some (meaningful) tests to start with, checking if the extension renders at all.
Performance
[ ] Reduce the amount of storage calls made
Only update timeSpentLearning in Intercepted.js once exercising is done?
Refactoring (#152)
[ ] Seek out any FIXME's and solve them
[ ] Refactor storage access statements; make them all async/await
[ ] Refactor storage retrieval procedure; it is always very alike. e.g. let { url } = res.url || defaultVal.
[ ] Abstract away some logic into separate components; e.g. <CountdownTimer>
[ ] Create some datamodels to make our datamodel clear, possibly use Typescript; e.g. for blockedSite, exerciseSite, etc.
We could store all statistics in blockedSite; amounts of intercepts etc.
Then also we could store timeSpentLearning in exerciseSite object.
Features
iframe
url when stopping with the exercise, and set it as the url next time.<Empty>
componentwww
prefix.UX
Codebase
Performance
timeSpentLearning
inIntercepted.js
once exercising is done?Refactoring (#152)
FIXME
's and solve themasync
/await
let { url } = res.url || defaultVal
.<CountdownTimer>
blockedSite
,exerciseSite
, etc.blockedSite
; amounts of intercepts etc.timeSpentLearning
inexerciseSite
object.