mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Polish workflow trigger labels
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
@@ -285,7 +285,7 @@ export function WorkflowDialog({
|
||||
) : null}
|
||||
</div>
|
||||
) : mode === "edit" && selectedChannel ? (
|
||||
<div className="px-3 py-2">
|
||||
<div className="px-3 py-2 text-center">
|
||||
<p className="text-lg font-semibold text-foreground">
|
||||
{selectedChannel.name}
|
||||
</p>
|
||||
|
||||
@@ -52,7 +52,7 @@ test("describes selected trigger conditions on the workflow canvas", () => {
|
||||
on: "message_posted",
|
||||
filter: "str_len(trigger_text) > 0",
|
||||
}),
|
||||
"Text message posted",
|
||||
"Messaged posted with text",
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
|
||||
@@ -50,7 +50,7 @@ function textConditionDescription(
|
||||
return `${eventPhrase} is not ${value}`;
|
||||
case "is_not_empty":
|
||||
return eventPhrase === "Message posted"
|
||||
? "Text message posted"
|
||||
? "Messaged posted with text"
|
||||
: `${eventPhrase} containing text`;
|
||||
case "is_empty":
|
||||
return `${eventPhrase} without text`;
|
||||
|
||||
Reference in New Issue
Block a user