Label unsupported workflow reaction action

Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
Taylor Ho
2026-08-13 14:12:36 -07:00
parent 3cf827b844
commit a97b0aa0d0
2 changed files with 12 additions and 1 deletions
@@ -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"
+3
View File
@@ -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",
});