tu2-atmanand / Task-Board

An Obsidian plugin to view and manage all your task in a much more efficient Kanban Board format. Easily manage your tasks throught your vault.
https://tu2-atmanand.github.io/task-board-docs/
GNU General Public License v3.0
5 stars 0 forks source link

feat : Sub-Tasks #12

Closed tu2-atmanand closed 1 month ago

tu2-atmanand commented 1 month ago

I want to implement the Sub-Task functionality in two phases :

First phase

Need to implement this in the first release v1.0.0

For this first phase of implementing the subtasks, the sub-tasks will be simply like the body of the main task. So for this, my json structure will contain an extra field called as title, which will act like the main, compulsory field, to store the main task or title of the task. And the body will now be replaced by the body content for this task, where the user can either put more content regarding this task or the subtasks will be added in this field. So the idea is to design by taking inspiration from the Trello UI/UX :

image

So, as seen from the above image, Description can be changed as Task Body, in which the user will be able to add any information or even images in the future features. Before the Task Body, provide another section to add Sub-Task, so after the user enters the sub-task and hit enter, it will be added as a sub checkbox task.

To add the subtasks, in the body, the body will be an string array field. The tasks will be stored along the with pattern - [ ] or -'x], based on which the status of the subtasks can be known. If the element of the body array doesnt start with this types of patterns, then that element will simply be the body of the Main task.

So to summarize, in the above issue following taks are remaining :

I think it will be a good idea to keep the Sub-Tasks visible in the board, if in future, i got good number of feedback, i can provide an option to fold/unfold the Sub-tasks.

Second Phase

Find the second phase of implementing the subtasks or improving them in this issue : #13

tu2-atmanand commented 1 month ago

Adding subtasks using AddTaskModal and Detecting and extracting subtasks from ScanningVaults.ts file code has been implemented and working properly.