From 7544e276fcaf344141a38fba75942e4a9201bbb7 Mon Sep 17 00:00:00 2001 From: Phoomparin Mano Date: Mon, 8 Apr 2024 14:05:02 +0700 Subject: [PATCH] feat: sleep indicator --- canvas/src/blocks/machine/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/canvas/src/blocks/machine/index.tsx b/canvas/src/blocks/machine/index.tsx index 92f23f8c..e269ede5 100644 --- a/canvas/src/blocks/machine/index.tsx +++ b/canvas/src/blocks/machine/index.tsx @@ -21,6 +21,7 @@ export const MachineBlock = memo((props: MachineProps) => { const errored = state.status === "Invalid" const awaiting = state.status === "Awaiting" + const sleeping = state.status === "Sleeping" const halted = state.status === "Halted" const backpressuring = state.inboxSize > 50 const sending = state.outboxSize >= 1 @@ -34,6 +35,7 @@ export const MachineBlock = memo((props: MachineProps) => { halted && "border-gray-9", backpressuring && "!border-orange-9", sending && "border-crimson-11", + sleeping && "!border-gray-8", ) return (