refactor(automations): keep delayed-rule curation in the frontend, leave backend validation as-is

This commit is contained in:
Tanmay Deep Sharma
2026-07-20 17:48:27 +05:30
parent a363f22d82
commit 174630bec1
2 changed files with 10 additions and 16 deletions
@@ -219,7 +219,8 @@ const allowsDelayedExecution = computed(() =>
isCloudFeatureEnabled(FEATURE_FLAGS.DELAYED_AUTOMATIONS)
);
// Mirrors the backend's execution_delay validations so we never offer an unsupported delay.
// The UI curates delayed rules to the supported shapes (DELAYED_EVENT_ATTRS) plus the backend's
// no-attribute_changed rule; anything outside that resets to a supported default.
const delayRestrictionReason = computed(() => {
const conditions = automation.value?.conditions || [];
if (