Skip to content

Commit ef4fa06

Browse files
committed
Description standardizing and improvements
1 parent 3a770b9 commit ef4fa06

File tree

3 files changed

+32
-31
lines changed

3 files changed

+32
-31
lines changed

components/basecamp/actions/create-card/create-card.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import app from "../../basecamp.app.mjs";
33
export default {
44
key: "basecamp-create-card",
55
name: "Create a Card",
6-
description: "Creates a card in the select column. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card)",
6+
description: "Creates a card in a selected column. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card)",
77
type: "action",
88
version: "0.1.0",
99
props: {
@@ -51,25 +51,26 @@ export default {
5151
title: {
5252
type: "string",
5353
label: "Title",
54-
description: "Title of the card",
54+
description: "The title of the new card.",
5555
},
5656
content: {
5757
type: "string",
5858
label: "Content",
59-
description: "Content of the card",
59+
description: "The content of the card. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card) for information on using HTML tags.",
6060
optional: true,
6161
},
6262
dueOn: {
6363
type: "string",
64-
label: "Due on",
65-
description: "Due date (ISO 8601) of the card, e.g.: `2023-12-12`",
64+
label: "Due On",
65+
description: "Due date (ISO 8601) of the card (e.g. `2023-12-12`).",
6666
optional: true,
6767
},
6868
notify: {
6969
type: "boolean",
70-
label: "Notify",
71-
description: "Whether to notify assignees. Defaults to false",
70+
label: "Notify Assignees",
71+
description: "Whether to notify assignees.",
7272
optional: true,
73+
default: false,
7374
},
7475
},
7576
async run({ $ }) {
@@ -96,7 +97,7 @@ export default {
9697
},
9798
});
9899

99-
$.export("$summary", `Successfully created card with ID ${card.id}`);
100+
$.export("$summary", `Successfully created card (ID: ${card.id}}`);
100101
return card;
101102
},
102103
};

components/basecamp/basecamp.app.mjs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default {
77
propDefinitions: {
88
accountId: {
99
type: "string",
10-
label: "Account Id",
11-
description: "The ID of the account.",
10+
label: "Account ID",
11+
description: "Select an account or provide an account ID.",
1212
async options() {
1313
const accounts = await this.getAccounts({});
1414
return accounts.map(({
@@ -22,8 +22,8 @@ export default {
2222
},
2323
projectId: {
2424
type: "string",
25-
label: "Project Id",
26-
description: "The ID of the project.",
25+
label: "Project ID",
26+
description: "Select a project or provide a project ID.",
2727
async options({
2828
accountId, page,
2929
}) {
@@ -44,8 +44,8 @@ export default {
4444
},
4545
messageBoardId: {
4646
type: "string",
47-
label: "Message Board Id",
48-
description: "The ID of the message board.",
47+
label: "Message Board ID",
48+
description: "Select a message board or provide a message board ID.",
4949
async options({
5050
accountId,
5151
projectId,
@@ -66,8 +66,8 @@ export default {
6666
},
6767
recordingId: {
6868
type: "string",
69-
label: "Recording Id",
70-
description: "The ID of the recording.",
69+
label: "Recording ID",
70+
description: "Select a recording or provide a recording ID.",
7171
async options({
7272
accountId,
7373
projectId,
@@ -104,7 +104,7 @@ export default {
104104
peopleIds: {
105105
type: "string[]",
106106
label: "People",
107-
description: "An array of all people visible to the current user.",
107+
description: "One or more people visible to the current user.",
108108
async options({
109109
accountId,
110110
projectId,
@@ -129,8 +129,8 @@ export default {
129129
},
130130
todoSetId: {
131131
type: "string",
132-
label: "Todo Set Id",
133-
description: "The ID of the todo set.",
132+
label: "To-do Set Id",
133+
description: "Select a to-do set or provide a to-do set ID.",
134134
async options({
135135
accountId,
136136
projectId,
@@ -151,8 +151,8 @@ export default {
151151
},
152152
campfireId: {
153153
type: "string",
154-
label: "Campfire Id",
155-
description: "The ID of the campfire.",
154+
label: "Campfire ID",
155+
description: "Select a campfire or provide a campfire ID.",
156156
async options({
157157
accountId,
158158
projectId,
@@ -173,8 +173,8 @@ export default {
173173
},
174174
todoListId: {
175175
type: "string",
176-
label: "Todo List Id",
177-
description: "The ID of the todo list.",
176+
label: "To-do List Id",
177+
description: "The ID of the to-do list.",
178178
async options({
179179
accountId,
180180
projectId,
@@ -201,7 +201,7 @@ export default {
201201
},
202202
messageTypeId: {
203203
type: "string",
204-
label: "Message Types",
204+
label: "Message Type",
205205
description: "Select a type for the message.",
206206
async options({
207207
accountId,
@@ -222,8 +222,8 @@ export default {
222222
},
223223
cardTableId: {
224224
type: "string",
225-
label: "Card Table Id",
226-
description: "The card table ID",
225+
label: "Card Table ID",
226+
description: "Select a card table or provide a card table ID.",
227227
async options({
228228
accountId, projectId,
229229
}) {
@@ -242,7 +242,7 @@ export default {
242242
columnId: {
243243
type: "string",
244244
label: "Column ID",
245-
description: "The column ID",
245+
description: "Select a column or provide a column ID.",
246246
async options({
247247
accountId, projectId, cardTableId,
248248
}) {
@@ -261,8 +261,8 @@ export default {
261261
},
262262
botId: {
263263
type: "string",
264-
label: "Chat Bot ID",
265-
description: "The ID of the chatbot to send message from",
264+
label: "Chatbot ID",
265+
description: "Select a chatbot to send the message from.",
266266
async options({
267267
accountId, projectId, campfireId,
268268
}) {

components/basecamp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/basecamp",
3-
"version": "0.1.5",
3+
"version": "0.2.0",
44
"description": "Pipedream Basecamp Components",
55
"main": "basecamp.app.js",
66
"keywords": [
@@ -14,6 +14,6 @@
1414
"access": "public"
1515
},
1616
"dependencies": {
17-
"@pipedream/platform": "^1.2.1"
17+
"@pipedream/platform": "^3.0.3"
1818
}
1919
}

0 commit comments

Comments
 (0)