Skip to content

Commit

Permalink
feat: sleep indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Apr 8, 2024
1 parent 3c88d16 commit 7544e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions canvas/src/blocks/machine/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 (
Expand Down

0 comments on commit 7544e27

Please sign in to comment.