Skip to content

Commit c3982b3

Browse files
Merge pull request #1208 from sarahcstringer/improve-component-descriptions
chore: Clean up user-facing strings in blueprint blocks.
2 parents 25745de + 1a951aa commit c3982b3

26 files changed

Lines changed: 49 additions & 49 deletions

src/writer/blocks/addtostatelist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def register(cls, type: str):
2929
"outs": {
3030
"success": {
3131
"name": "Success",
32-
"description": "If the function doesn't raise an Exception.",
32+
"description": "The item was added to the list.",
3333
"style": "success",
3434
},
3535
"error": {
3636
"name": "Error",
37-
"description": "If the function raises an Exception.",
37+
"description": "There was an error adding the item to the list.",
3838
"style": "error",
3939
},
4040
},

src/writer/blocks/changepage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def register(cls, type: str):
3030
},
3131
"error": {
3232
"name": "Error",
33-
"description": "The event handler execution wasn't successful.",
33+
"description": "There was an error changing the page.",
3434
"style": "error",
3535
},
3636
},

src/writer/blocks/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def register(cls, type: str):
5151
"outs": {
5252
"success": {
5353
"name": "Success",
54-
"description": "The event handler execution was successful.",
54+
"description": "The code executed successfully.",
5555
"style": "success",
5656
},
5757
"error": {
5858
"name": "Error",
59-
"description": "The event handler execution wasn't successful.",
59+
"description": "There was an error executing the code.",
6060
"style": "error",
6161
},
6262
},

src/writer/blocks/foreach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def register(cls, type: str):
1818
"fields": {
1919
"items": {
2020
"name": "Items",
21-
"desc": "The item value will be passed in the execution environment and will be available at @{item}, its id at @{itemId}. You can use either a list or a dictionary.",
21+
"desc": "The item value will be passed in the execution environment. It will be available at @{item}, and its ID at @{itemId}. You can use either a list or a dictionary.",
2222
"default": "[]",
2323
"init": '["France", "Poland"]',
2424
"type": "Object",

src/writer/blocks/httprequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def register(cls, type: str):
1515
baseType="blueprints_node",
1616
writer={
1717
"name": "HTTP request",
18-
"description": "Sends a HTTP request to an API endpoint. Used to fetch data or send data.",
18+
"description": "Sends an HTTP request to an API endpoint. Used to fetch or send data.",
1919
"category": "Other",
2020
"fields": {
2121
"method": {

src/writer/blocks/logmessage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ def register(cls, type: str):
2727
"outs": {
2828
"success": {
2929
"name": "Success",
30-
"description": "The request was successful.",
30+
"description": "The message was logged successfully.",
3131
"style": "success",
3232
},
3333
"error": {
3434
"name": "Error",
35-
"description": "The blueprint was executed successfully.",
35+
"description": "There was an error logging the message.",
3636
"style": "error",
3737
},
3838
},

src/writer/blocks/returnvalue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def register(cls, type: str):
2424
"outs": {
2525
"success": {
2626
"name": "Success",
27-
"description": "If the function doesn't raise an Exception.",
27+
"description": "The value was returned successfully.",
2828
"style": "success",
2929
},
3030
"error": {
3131
"name": "Error",
32-
"description": "If the function raises an Exception.",
32+
"description": "There was an error returning the value.",
3333
"style": "error",
3434
},
3535
},

src/writer/blocks/runblueprint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def register(cls, type: str):
2626
},
2727
"payload": {
2828
"name": "Payload",
29-
"desc": "The value specified will be available using the template syntax i.e. @{payload}",
29+
"desc": "The value specified will be available using the template syntax, e.g. @{payload}.",
3030
"default": "{}",
3131
"type": "Text",
3232
"control": "Textarea",
@@ -40,7 +40,7 @@ def register(cls, type: str):
4040
},
4141
"error": {
4242
"name": "Error",
43-
"description": "The blueprint was executed successfully.",
43+
"description": "The blueprint execution failed.",
4444
"style": "error",
4545
},
4646
},

src/writer/blocks/setstate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def register(cls, type: str):
1919
"element": {
2020
"name": "Link Variable",
2121
"type": "Binding",
22-
"desc": "Set the variable here and use it across your agent",
22+
"desc": "Set the variable here and use it across your agent.",
2323
},
2424
"valueType": {
2525
"name": "Value type",
@@ -36,12 +36,12 @@ def register(cls, type: str):
3636
"outs": {
3737
"success": {
3838
"name": "Success",
39-
"description": "If the function doesn't raise an Exception.",
39+
"description": "The state was updated successfully.",
4040
"style": "success",
4141
},
4242
"error": {
4343
"name": "Error",
44-
"description": "If the function raises an Exception.",
44+
"description": "There was an error updating the state.",
4545
"style": "error",
4646
},
4747
},

src/writer/blocks/writeraddchatmessage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def register(cls, type: str):
7575
"outs": {
7676
"success": {
7777
"name": "Success",
78-
"description": "If the function doesn't raise an Exception.",
78+
"description": "The message was added to the conversation.",
7979
"style": "success",
8080
},
8181
"error": {
8282
"name": "Error",
83-
"description": "If the function raises an Exception.",
83+
"description": "There was an error adding the message.",
8484
"style": "error",
8585
},
8686
},

0 commit comments

Comments
 (0)