feat(automations): show what ends the wait in the builder

Make the wait's interrupt explicit (as Intercom does) so users can predict when the
rule runs. An "Ends the wait if …" line adapts to the rule's episode: status change
for conversation rules, customer reply for outgoing message rules, agent reply for
incoming ones — plus "or the conditions no longer match" universally. Behaviour is
unchanged; this only surfaces it.
This commit is contained in:
Tanmay Deep Sharma
2026-07-20 11:28:41 +05:30
parent 2c728341e0
commit 6830c3273f
2 changed files with 37 additions and 4 deletions
@@ -37,7 +37,14 @@
"DAYS": "Days"
},
"ERROR": "Wait must be between 10 minutes and 30 days",
"HELP_TEXT": "The rule waits, then runs only if its conditions still hold — and applies to conversations with activity after the rule is created."
"ENDS_IF_LABEL": "Ends the wait if",
"ENDS_IF": {
"STATUS": "the conversation's status changes, or its conditions no longer match.",
"CUSTOMER_REPLY": "the customer replies, or the conditions no longer match.",
"AGENT_REPLY": "an agent replies, or the conditions no longer match.",
"GENERIC": "there is a new reply on the conversation, or the conditions no longer match."
},
"HELP_TEXT": "Only applies to conversations with activity after the rule is created."
},
"CONDITIONS": {
"LABEL": "Conditions"