Skip to content

Commit 87e26a9

Browse files
committed
Create Page adjustments
1 parent b54ecfd commit 87e26a9

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

components/confluence/actions/create-page/create-page.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ import confluence from "../../confluence.app.mjs";
33
export default {
44
key: "confluence-create-page",
55
name: "Create Page",
6-
description: "Creates a page in the space. Pages are created as published by default unless specified as a draft in the status field. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-post)",
6+
description: "Creates a new page in the space. [See the documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-post)",
77
version: "0.0.1",
88
type: "action",
99
props: {
1010
confluence,
11+
draftInfo: {
12+
type: "alert",
13+
alertType: "info",
14+
content: "Pages are created as published by default, unless specified as a draft in the `Status` prop.",
15+
},
1116
spaceId: {
1217
propDefinition: [
1318
confluence,
@@ -19,18 +24,21 @@ export default {
1924
confluence,
2025
"title",
2126
],
27+
description: "The title of the page",
2228
},
2329
body: {
2430
propDefinition: [
2531
confluence,
2632
"body",
2733
],
34+
description: "The body of the page",
2835
},
2936
status: {
3037
propDefinition: [
3138
confluence,
3239
"status",
3340
],
41+
description: "The status of the page, specifies if the page will be created as a new page or a draft.",
3442
},
3543
parentId: {
3644
propDefinition: [

components/confluence/confluence.app.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
postId: {
88
type: "string",
99
label: "Post ID",
10-
description: "The ID of the post",
10+
description: "Select a post or provide its ID",
1111
async options({ prevContext }) {
1212
const params = prevContext?.cursor
1313
? {
@@ -37,8 +37,8 @@ export default {
3737
},
3838
spaceId: {
3939
type: "string",
40-
label: "Space Id",
41-
description: "The Id of the space",
40+
label: "Space ID",
41+
description: "Select a space or provide its ID",
4242
async options({ prevContext }) {
4343
const params = prevContext?.cursor
4444
? {
@@ -89,7 +89,7 @@ export default {
8989
parentId: {
9090
type: "string",
9191
label: "Parent Page ID",
92-
description: "The ID of the parent page",
92+
description: "Select a parent page or provide its ID",
9393
async options({
9494
prevContext, spaceId,
9595
}) {

0 commit comments

Comments
 (0)