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

[Todoist] Add Schedule Deadline Actions #17018

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kcole93
Copy link
Contributor

@kcole93 kcole93 commented Feb 12, 2025

Description

Adds the ability to schedule task deadlines via the Action Panel, as well as in the Menu Bar.

Action Panel

  • I assigned the shortcut + + D, as + + D is already assigned to 'Duplicate Task'. I'm not sure if this conforms to the pattern established by other shortcuts.

  • Although Action.PickDate.Type is set to Date, the string entry hint is potentially confusing. I believe that's an issue with the Raycast API though.
    Screencap

Menu Bar

  • I added a required argument type to the changeDate() function, which must be either "due" or "deadline":
  async function changeDate(task: Task, timeString: string, type: "due" | "deadline") {
    try {
      const updateData = {
        id: task.id,
        [type]: { string: timeString },
      };

      await updateTask(updateData, { data, setData });
      await showHUD(`Updated task ${type}`);
    } catch (error) {
      console.log(error);
      showHUD(`Unable to update task ${type} ❌`);
    }
  }

Screencast

Checklist

- Add Raycast "publish" script
- Add support for task deadlines
- Initial commit
- Feat: Schedule Task Deadlines
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: todoist Issues related to the todoist extension OP is contributor The OP of the PR is a contributor of the extension labels Feb 12, 2025
@raycastbot
Copy link
Collaborator

Thank you for your contribution! 🎉

🔔 @thomaslombart @AnishDe12020 @kud @casassg @Princeyadav05 @jfkisafk @ridemountainpig @RobErskine you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

@kcole93 kcole93 changed the title Update todoist extension [Todoist] Add Schedule Deadline Actions Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension fix / improvement Label for PRs with extension's fix improvements extension: todoist Issues related to the todoist extension OP is contributor The OP of the PR is a contributor of the extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants