Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sortbytodoist and add subtask indenting #115

Conversation

matt-thurling
Copy link

I found that when you display a project that has parent tasks with subtasks, the sort order appeared to be very random. When I looked into the code I realised that's because it was sorting based on the 'child-order' field only which made no sense i.e. the first child of every task was sorted together, followed by the second child of every task etc.
I've fixed it up so that now it will sort parent tasks based on their id, and child tasks based on their parents id and their child_order i.e. subtasks will now be sorted under their parents as you would expect.
I also added an indent for the child tasks when sorting this way so it was clearer that they were children of their parent task above.
See the screenshot below for how this looks when you import Todoists's wedding planner template.
Screen Shot 2023-03-05 at 9 14 43 am

Matt Thurling added 2 commits March 5, 2023 08:59
…rt subtasks beneath their parent tasks, and will sort parent tasks based on their id
… they are a subtask of the parent task above them
@matt-thurling
Copy link
Author

I think this would fix the issues raised as #94 and #100

@cbrooker cbrooker merged commit 32df48f into cbrooker:master Mar 22, 2023
@matt-thurling matt-thurling deleted the fix-sortbytodoist-and-add-subtask-indenting branch March 23, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants