thombruce / toodles

✅ A super simple todo app
https://toodles.thombruce.com/
GNU General Public License v3.0
0 stars 0 forks source link

Directories #129

Closed thombruce closed 4 weeks ago

thombruce commented 4 weeks ago

closes #126

Add the capability to navigate between documents and, eventually, the creation and deletion of documents.

Depends on https://github.com/thombruce/tnt/pull/83

By submitting this pull request, you agree to follow our Code of Conduct: https://github.com/thombruce/.github/blob/main/CODE_OF_CONDUCT.md


Internal use. Do not delete.

netlify[bot] commented 4 weeks ago

Deploy Preview for toodles canceled.

Name Link
Latest commit 0e4ae9905d54cf4f897ebc0aa780050421e8aa64
Latest deploy log https://app.netlify.com/sites/toodles/deploys/66bf821a5c95ca0009e5723c
github-actions[bot] commented 4 weeks ago

Coverage Summary for `./packages/web`

Status Category Percentage Covered / Total
🟢 Lines 66.27% / 60% 391 / 590
🟢 Statements 66.27% / 60% 391 / 590
🔴 Functions 57.57% / 60% 19 / 33
🟢 Branches 76.59% / 60% 36 / 47
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
packages/web/src/components/ContextTag.vue 20% 100% 0% 20% 4-15
packages/web/src/components/HashTag.vue 20% 100% 0% 20% 4-15
packages/web/src/components/ProgressBar.vue 100% 100% 100% 100%
packages/web/src/components/ProjectTag.vue 20% 100% 0% 20% 4-15
packages/web/src/components/TagTag.vue 71.42% 100% 0% 71.42% 6-7
packages/web/src/components/TodoItem.vue 80.7% 40% 28.57% 80.7% 21, 26-27, 33-40
packages/web/src/components/TodoList.vue 73.68% 100% 100% 73.68% 11-15
packages/web/src/components/TodoPriority.vue 20% 100% 0% 20% 4-15
packages/web/src/components/TodoText.vue 10.63% 100% 0% 10.63% 6-47
packages/web/src/models/Todo.ts 89.65% 76.92% 100% 89.65% 35-41, 55-56
packages/web/src/plugins/dexie.ts 62.82% 80% 66.66% 62.82% 46-54, 59-78
packages/web/src/plugins/lunr.ts 100% 100% 100% 100%
packages/web/src/plugins/timepiece.ts 71.42% 60% 50% 71.42% 14-19
packages/web/src/stores/todos.ts 73.44% 100% 83.33% 73.44% 23, 27, 31-33, 37-39, 43-45, 49-51, 55-57, 61-63, 67-69, 73-75, 79-81, 85-87, 91-93, 97-99, 109-117
thombruce commented 4 weeks ago

As of now, I've rewritten the index page to list valid files in the directory. It isn't pretty, but it's a simple solution. One can navigate back home by using the title in the header... and I might replace the burger menu dropdown with a home icon on TNT Electron to make this clearer? (There's currently only TNT Content that gets any use out of it.)

Longterm I would prefer to restructure the handling such that opening Toodles opens a document by default (maybe last opened), but I think this approach is satisfactory for now. Another idea is to list ALL todos, from ALL documents on the main page. One couldn't add documents from here (add todo form would be replaced with navigation menu to individual files), but could edit them, toggle them, activate timers so long as each individual todo knew which file to write back to.