Skip to content

Conversation

@NimbleShot
Copy link

Toggleable in the "Add task" pane

Toggleable in the "Add task" pane
Copy link
Owner

@jamiebrynes7 jamiebrynes7 left a comment

Choose a reason for hiding this comment

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

I think a better pattern for deciding whether to use the quick add or not is:

  • store a default value in the settings
  • allow the user to change the value within the task modal without changing the settings
  • pass the value along with the create task payload instead of fetching it from the settings again

Given the new endpoint doesn't support explicit setting of date/project/labels, we should probably disable those inputs when the quick add setting is enabled in the modal

...((options?.labels ? { labels: options.labels.join(",") } : {})),
...((options?.priority ? { priority: String(options.priority) } : {})),
});
await this.doQuickAdd("https://api.todoist.com/sync/v9/quick/add", body);
Copy link
Owner

Choose a reason for hiding this comment

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

The sync API is deprecated and will be removed towards the end of the year, it looks like there is a quick add endpoint on the new API, but it looks slightly different, can we pivot onto that one?

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