Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Tasks which are marked as recurring in Todoist will now have a icon to indicate this next to the date in the task metadata.
- The refresh button now has a tooltip indicating when the query was last refreshed.
- You can now provide `show: none` in your query to hide all task metadata (project, due date, labels, description).
- Your tasks' durations will now be rendered with the due date.

### 🔁 Changes

Expand Down
6 changes: 6 additions & 0 deletions plugin/src/api/domain/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type Task = {
priority: Priority;

due: DueDate | null;
duration: Duration | null;

order: number;
};
Expand All @@ -34,3 +35,8 @@ export type CreateTaskParams = {
dueDatetime?: string;
labels?: string[];
};

export type Duration = {
amount: number;
unit: "minute" | "day";
};
Loading