arkadianriver / hqtodo

See your Todo list as a Gantt chart, view your velocity, and review finished items by week and by tagged category.
https://www.arkadianriver.com/posts/hqtodo/
MIT License
14 stars 3 forks source link

consider rendering from the client #12

Closed arkadianriver closed 3 years ago

arkadianriver commented 4 years ago

Have client keep itself updated by pulling from the APIs and rendering its own page instead of a static one made by express and EJS. Axios!

Besides not having to click refresh, JSON data in the client opens front-end possibilities. To filter tags to see particular projects highlighed, for example (if not in mermaid, maybe another view).

arkadianriver commented 4 years ago

when fetching data, possibly refer to mtime of file and don't re-read it (or re-render for that matter) if the same as last fetch. (test accuracy of mtime and if this even matters in the scheme of things) Would require a tiny new todoFileMtime() and moving the reading of file to its own pipeline function instead of being hit each time as an unnamed app.use() function, which might be a good idea anyway even if this feature isn't taken advantage of. (toss in possible file watchers, session variables for mtime, etc).