diff --git a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte index 7898e13ec8f..b5fe6d03fd6 100644 --- a/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/AutomationPanel.svelte @@ -30,6 +30,16 @@ return lowerA > lowerB ? 1 : -1 }) + $: groupedAutomations = filteredAutomations.reduce((acc, auto) => { + acc[auto.definition.trigger.event] ??= { + icon: auto.definition.trigger.icon, + name: (auto.definition.trigger?.name || "").toUpperCase(), + entries: [], + } + acc[auto.definition.trigger.event].entries.push(auto) + return acc + }, {}) + $: showNoResults = searchString && !filteredAutomations.length onMount(async () => { @@ -55,16 +65,25 @@ />