Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DrDroidLab/PlayBooks into sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
dimittal committed Jul 22, 2024
2 parents 7b3f474 + e1767da commit e7b1ebe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/Workflows/create/AlertOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function AlertOutput() {
<div className="my-2">
<CodeAccordion
code={code}
label="Sample slack message matching the filter"
label="Sample slack message matching your filter"
language={LanguageTypes.JSON}
disabled={true}
defaultOpen={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function GlobalVariablesList({

return (
<>
<p className="text-xs font-medium">Global Variables in the Playbook</p>
<p className="text-xs font-medium">Variables in the Playbook</p>
<div className="flex flex-wrap gap-2">
{variables.map(([key, value]) => (
<Tooltip title={value} key={key}>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Workflows/create/HandleTransformer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ function HandleTransformer() {
<div className="my-2 flex flex-col gap-2">
<CodeAccordion
code={code}
label="Transformer (Write a python function returning a dict)"
label="Transformer (Write a python function returning a dict, the input is the trigger json payload)"
language={LanguageTypes.PYTHON}
onValueChange={setCode}
/>

<CodeAccordion
code={exampleInput}
label="Test your transformer function against an input"
label="Test your transformer function against a sample trigger json payload"
language={LanguageTypes.JSON}
onValueChange={setExampleInput}>
{data && (
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Workflows/create/Transformer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Transformer() {
<Checkbox
id={key}
isChecked={currentWorkflow[key]}
label="Add a context transformer"
label="Add a custom transformer (pass variables to your playbook as a dictionary by transforming the trigger json payload)"
onChange={handleTransformer}
isSmall={true}
disabled={disabled}
Expand Down

0 comments on commit e7b1ebe

Please sign in to comment.