You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Dart component to enhance task management features
- Renamed and updated prop definitions for better clarity, including changing `dartboardId` to `dartboard`.
- Introduced new optional properties: `tags`, `priority`, `size`, `status`, `type`, and `customProperties` to support enhanced task attributes.
- Updated task creation and update methods to reflect new property structure and improved API paths.
- Added utility function `parseObject` for better handling of input data formats.
- Incremented version numbers for task-related actions to reflect changes.
description: "Creates a new task within a dartboard. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7
-
version: "0.0.4",
7
+
description: "Creates a new task within a dartboard. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Task/createTask)",
8
+
version: "1.0.0",
8
9
annotations: {
9
10
destructiveHint: false,
10
11
openWorldHint: true,
@@ -13,77 +14,128 @@ export default {
13
14
type: "action",
14
15
props: {
15
16
dart,
16
-
dartboardId: {
17
+
title: {
17
18
propDefinition: [
18
19
dart,
19
-
"dartboardId",
20
+
"title",
20
21
],
21
22
},
22
-
duid: {
23
-
type: "string",
24
-
label: "Task DUID",
25
-
description: "A unique identifier for the task. Must contain at least 12 characters.",
23
+
parentId: {
24
+
propDefinition: [
25
+
dart,
26
+
"taskId",
27
+
],
28
+
label: "Parent Task ID",
29
+
description: "The universal, unique ID of the parent task. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work",
26
30
},
27
-
title: {
31
+
dartboard: {
28
32
propDefinition: [
29
33
dart,
30
-
"taskName",
34
+
"dartboard",
31
35
],
36
+
label: "Dartboard",
37
+
description: "The full title of the dartboard, which is a project or list of tasks",
32
38
},
33
-
description: {
39
+
type: {
34
40
propDefinition: [
35
41
dart,
36
-
"taskDescription",
42
+
"type",
37
43
],
38
44
},
39
-
dueAt: {
45
+
status: {
40
46
propDefinition: [
41
47
dart,
42
-
"dueAt",
48
+
"status",
49
+
],
50
+
label: "Status",
51
+
description: "The status from the list of available statuses",
52
+
},
53
+
description: {
54
+
type: "string",
55
+
label: "Description",
56
+
description: "A longer description of the task, which can include markdown formatting",
57
+
},
58
+
assignees: {
59
+
propDefinition: [
60
+
dart,
61
+
"assigneeIds",
43
62
],
63
+
label: "Assignees",
64
+
description: "The names or emails of the users that the task is assigned to. Either this or assignee must be included, depending on whether the workspaces allows multiple assignees or not",
44
65
},
45
-
assigneeIds: {
66
+
assignee: {
46
67
propDefinition: [
47
68
dart,
48
69
"assigneeIds",
49
70
],
71
+
type: "string",
72
+
label: "Assignee",
73
+
description: "The name or email of the user that the task is assigned to. Either this or assignees must be included, depending on whether the workspaces allows multiple assignees or not",
74
+
},
75
+
tags: {
76
+
propDefinition: [
77
+
dart,
78
+
"tags",
79
+
],
80
+
label: "Tags",
81
+
description: "Any tags that should be applied to the task, which can be used to filter and search for tasks. Tags are also known as labels or components and are strings that can be anything, but should be short and descriptive",
50
82
},
51
83
priority: {
52
84
propDefinition: [
53
85
dart,
54
86
"priority",
55
87
],
88
+
label: "Priority",
89
+
description: "The priority, which is a string that can be one of the specified options. This is used to sort tasks and determine which tasks should be done first",
description: "Checks for an existing task within a dartboard using the 'task-name'. If it doesn't exist, a new task is created. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7
-
version: "0.0.4",
7
+
description: "Checks for an existing task within a dartboard using the 'task-name'. If it doesn't exist, a new task is created. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Task/createTask)",
8
+
version: "1.0.0",
8
9
annotations: {
9
10
destructiveHint: false,
10
11
openWorldHint: true,
@@ -13,96 +14,141 @@ export default {
13
14
type: "action",
14
15
props: {
15
16
dart,
16
-
dartboardId: {
17
+
dartboard: {
17
18
propDefinition: [
18
19
dart,
19
-
"dartboardId",
20
+
"dartboard",
20
21
],
22
+
optional: false,
21
23
},
22
-
taskName: {
24
+
title: {
23
25
propDefinition: [
24
26
dart,
25
27
"taskName",
26
28
],
27
29
},
28
-
duid: {
29
-
type: "string",
30
-
label: "Task DUID",
31
-
description: "If the task is not found, a unique identifier to assign to the newly created task. Must contain at least 12 characters.",
30
+
parentId: {
31
+
propDefinition: [
32
+
dart,
33
+
"taskId",
34
+
],
35
+
label: "Parent Task ID",
36
+
description: "The universal, unique ID of the parent task. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work",
32
37
},
33
-
description: {
38
+
type: {
34
39
propDefinition: [
35
40
dart,
36
-
"taskDescription",
41
+
"type",
37
42
],
38
43
},
39
-
dueAt: {
44
+
status: {
40
45
propDefinition: [
41
46
dart,
42
-
"dueAt",
47
+
"status",
43
48
],
49
+
label: "Status",
50
+
description: "The status from the list of available statuses",
44
51
},
45
-
assigneeIds: {
52
+
description: {
53
+
type: "string",
54
+
label: "Description",
55
+
description: "A longer description of the task, which can include markdown formatting",
56
+
},
57
+
assignees: {
46
58
propDefinition: [
47
59
dart,
48
60
"assigneeIds",
49
61
],
62
+
label: "Assignees",
63
+
description: "The names or emails of the users that the task is assigned to. Either this or assignee must be included, depending on whether the workspaces allows multiple assignees or not",
64
+
},
65
+
assignee: {
66
+
propDefinition: [
67
+
dart,
68
+
"assigneeIds",
69
+
],
70
+
type: "string",
71
+
label: "Assignee",
72
+
description: "The name or email of the user that the task is assigned to. Either this or assignees must be included, depending on whether the workspaces allows multiple assignees or not",
73
+
},
74
+
tags: {
75
+
propDefinition: [
76
+
dart,
77
+
"tags",
78
+
],
79
+
label: "Tags",
80
+
description: "Any tags that should be applied to the task, which can be used to filter and search for tasks. Tags are also known as labels or components and are strings that can be anything, but should be short and descriptive",
50
81
},
51
82
priority: {
52
83
propDefinition: [
53
84
dart,
54
85
"priority",
55
86
],
87
+
label: "Priority",
88
+
description: "The priority, which is a string that can be one of the specified options. This is used to sort tasks and determine which tasks should be done first",
0 commit comments