Basically the title. I would like to collapse tasks (if any subtask exist) for screenshot below.
See below for how projects can collapse.
Basically the title. I would like to collapse tasks (if any subtask exist) for screenshot below.
See below for how projects can collapse.
I would love this! Having all subtasks listed all the time makes things very hard to overview
@kolaente Do you see any apparent problem with this or is it more a question of resources and time? I see the same issue was raised here Expand/Retract Subtasks under main task - #6 by kolaente
It’s definitely more of a resource/focus problem.
I will not promise anything, but could you point me to where in the code the collapse logic of the sub projects is handled as well as some indication about where you think the collapsing of subtasks should be implemented
Collapsing of Projects is implemented in src/components/home/ProjectsNavigationItem.vue, subtasks are in frontend/src/components/tasks/partials/SingleTaskInProject.vue.
Ok, I have a first draft with collapsible subtasks. What more do we feel is needed for the first version?
Is it fine like this or do we for example need a button to collapse/expand all? setting to always start expanded or collapsed?
The spacing would need some work, but overall this looks good. I’d also make the icon a little bright-grayer so that it’s not more prominent than the text, but that’s details.
I think leaving it as expanded by default is the safe route because it mirrors the current behaviour.
Indentation look a bit big right?
I’ll have a look on making the chevron gray.
About expand/collapse. I get you want to keep is expanded by default. Could we add a setting in the settings page?
Yeah as long as it’s expanded by default, that’s fine by me.
Ok, could you give me some guidance on the settings. What needs to be added for a new one? Api change? Db schemas?
Since this is a frontend feature, it would be enough to store it in the frontend settings. That does not need a db or api change. Take a look at how existing frontend settings like “play a sound when marking a task done” are implemented to see how this works.