pgorod / power-todoist-card

Improved Todoist card for Home Assistant Lovelace UI.
MIT License
20 stars 7 forks source link

[FEATURE REQUEST] Improve of sub-task handling. #11

Open PavelD opened 2 months ago

PavelD commented 2 months ago

Make visible relation between task and sub-task.

Behavior on todoist site:

Expected behavior:

pgorod commented 2 months ago

Hi @PavelD , thanks for the suggestion...

... but I am a bit skeptical that I will work on this, because PowerTodoist is currently completely blind to the fact that there are sub-tasks; and changing a simple linear list to a hierarchical list is a major change in the software, affecting sorting, display, etc.

If someone else wants to implement this I will be happy to review it and merge it, though. I agree it's useful and that it is good to support as many Todoist features as possible.

PavelD commented 2 months ago

Currently sub-tasks are visible and behave as normal tasks. I will try to introduce some minimal UI flag for sub-tasks. Let see how fast will be my progress when I didn't do anything in JavaScript for more than 15 years :-)

I tired something already and it looks promising.

arretx commented 3 weeks ago

Could it be as simple as styling sub-tasks as indented in the list based upon the parent_id or v2_parent_id fields being null?