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
* Implement CRUD operations for documents in Dart, including create, update, and delete functionalities. Add new properties for document management and update package version to 0.2.0. Enhance existing actions for task management with version updates.
* pnpm update
* Update API paths in Dart component and increment version numbers for task actions and document sources
* 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.
* Update components/dart/actions/create-task/create-task.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update components/dart/actions/find-or-create-task/find-or-create-task.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
description: "Record a new doc that the user intends to write down. This will save the doc in Dart for later access, search, etc. By default the created doc will be in the Docs folder. More information can be included in the text. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Doc/createDoc)",
7
+
version: "0.0.1",
8
+
annotations: {
9
+
destructiveHint: false,
10
+
openWorldHint: true,
11
+
readOnlyHint: false,
12
+
},
13
+
type: "action",
14
+
props: {
15
+
dart,
16
+
title: {
17
+
propDefinition: [
18
+
dart,
19
+
"title",
20
+
],
21
+
},
22
+
folder: {
23
+
propDefinition: [
24
+
dart,
25
+
"folder",
26
+
],
27
+
},
28
+
text: {
29
+
propDefinition: [
30
+
dart,
31
+
"text",
32
+
],
33
+
},
34
+
},
35
+
asyncrun({ $ }){
36
+
constresponse=awaitthis.dart.createDoc({
37
+
$,
38
+
data: {
39
+
item: {
40
+
title: this.title,
41
+
folder: this.folder,
42
+
text: this.text,
43
+
},
44
+
},
45
+
});
46
+
47
+
$.export("$summary",`New doc successfully created with ID: ${response.item.id}`);
description: "Creates a new task within a dartboard. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7
-
version: "0.0.2",
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: "Move an existing doc to the trash, where it can be recovered if needed. Nothing else about the doc will be changed. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Doc/deleteDoc)",
7
+
version: "0.0.1",
8
+
annotations: {
9
+
destructiveHint: false,
10
+
openWorldHint: true,
11
+
readOnlyHint: false,
12
+
},
13
+
type: "action",
14
+
props: {
15
+
dart,
16
+
docId: {
17
+
propDefinition: [
18
+
dart,
19
+
"docId",
20
+
],
21
+
},
22
+
},
23
+
asyncrun({ $ }){
24
+
constresponse=awaitthis.dart.deleteDoc({
25
+
$,
26
+
docId: this.docId,
27
+
});
28
+
29
+
$.export("$summary",`Successfully deleted doc with ID: ${this.docId}`);
0 commit comments