mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Label unsupported workflow reaction action
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
@@ -33,6 +33,13 @@ function BackendSupportHint({ action }: { action: StepFormState["action"] }) {
|
||||
records are not persisted yet.
|
||||
</p>
|
||||
);
|
||||
case "add_reaction":
|
||||
return (
|
||||
<p className="rounded-md border border-amber-500/30 bg-amber-500/10 px-2 py-1 text-xs text-amber-700">
|
||||
Backend note: `add_reaction` is not executed yet, so runs fail at this
|
||||
step.
|
||||
</p>
|
||||
);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
@@ -254,7 +261,8 @@ function StepConfigFields({
|
||||
);
|
||||
case "add_reaction":
|
||||
return (
|
||||
<div className="space-y-1.5">
|
||||
<div className="space-y-2">
|
||||
<BackendSupportHint action={step.action} />
|
||||
<FieldLabel htmlFor={`${prefix}-emoji`}>Emoji</FieldLabel>
|
||||
<WorkflowEmojiField
|
||||
ariaLabel="Choose reaction emoji"
|
||||
|
||||
@@ -303,6 +303,9 @@ test("chooses an add-reaction step emoji with the app emoji picker", async ({
|
||||
await page.getByRole("menuitem", { name: "Add Reaction" }).click();
|
||||
|
||||
const inspector = dialog.getByTestId("workflow-node-inspector");
|
||||
await expect(inspector).toContainText(
|
||||
"Backend note: `add_reaction` is not executed yet, so runs fail at this step.",
|
||||
);
|
||||
const stepEmoji = inspector.getByRole("button", {
|
||||
name: "Choose reaction emoji",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user