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: Subtasks #35

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

skullbunnygalaxy
Copy link

This is to fix #34. Doing some additional final touches before ready for PR.

@skullbunnygalaxy
Copy link
Author

This also resolves #32, which I see as the first iteration towards dealing with #5.

@skullbunnygalaxy skullbunnygalaxy marked this pull request as ready for review March 7, 2024 06:36
Copy link
Owner

@wesmoncrief wesmoncrief left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few small comments, thanks for opening, looks great

subtaskQuery = "subtask"; // default pull query of all subtasks, regardless of due date
} else if (todaysSubtasks && !noDateSubtasks) {
subtaskQuery = "subtask & due: today"; // limits to only subtasks with due date of today
} else {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the nesting here gets a bit harder to follow. if you could flatten the ifs, that'd be nice

}
));
new Setting(subtaskDiv)
.setName('Limit Subtasks by due date assigned')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.setName('Limit Subtasks by due date assigned')
.setName('Only show subtasks that are due today')

i think something along these lines is more clear

));
new Setting(this.containerEl)
.setName('Link')
.setDesc("Include Link to task in Todoist.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the toggleServerTaskStatus function currently requires the link in order to work. I don't think we want to have this option silently break task toggling. So let's remove until we find a way to handle linking the source task to server task without the URL?

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.

[Bug] Enabled Subtasks broken
2 participants