From f20c541d02c07552f81239328c904e8ceea75298 Mon Sep 17 00:00:00 2001 From: Mahesh Sanikommu Date: Mon, 20 Jul 2026 13:11:53 -0700 Subject: [PATCH] fix(web): tighten automations layout Drop the default-channel card and fold the picker into the "Your automations" header row as a borderless text control, so the section starts with content instead of a set-once org setting. Move Timezone into the Frequency/Time row and put its GMT/DST helper behind the same Info tooltip pattern used by "Deliver to". Row wraps so the weekly "Day" field doesn't crush it. Also render channel names as #name rather than "# name". --- .../settings/company-brain-automations.tsx | 230 +++++++++--------- 1 file changed, 121 insertions(+), 109 deletions(-) diff --git a/apps/web/components/settings/company-brain-automations.tsx b/apps/web/components/settings/company-brain-automations.tsx index 888d4533..0fddd4d5 100644 --- a/apps/web/components/settings/company-brain-automations.tsx +++ b/apps/web/components/settings/company-brain-automations.tsx @@ -83,6 +83,13 @@ const controlClass = cn( "h-9 w-full rounded-[10px] border border-white/[0.08] bg-[#0D0F14] px-3 text-[13px] text-[#FAFAFA] outline-none disabled:opacity-50", ) const fieldLabel = cn(dmSans125ClassName(), "text-[12px] text-[#9A9A9A]") +// borderless text control; the New automation button stays the only real button here. +// dark: overrides are required because the base trigger sets dark:bg-input/30. +const inlineControlClass = cn( + dmSans125ClassName(), + "h-8 w-auto gap-1.5 border-0 bg-transparent px-0 py-0 text-[12px] font-medium text-[#9A9A9A] shadow-none transition-colors hover:text-[#FAFAFA] disabled:opacity-50", + "dark:bg-transparent dark:hover:bg-transparent", +) const selectContentClass = cn( dmSans125ClassName(), "rounded-[10px] border-white/[0.08] bg-[#1B1F24] text-[#FAFAFA] shadow-[0px_8px_24px_rgba(0,0,0,0.5)]", @@ -499,7 +506,7 @@ function AutomationCard({ value={ch.id} className={selectItemClass} > - {ch.isPrivate ? "🔒 " : "# "} + {ch.isPrivate ? "🔒 " : "#"} {ch.name} ))} @@ -511,8 +518,8 @@ function AutomationCard({ /> -
-
+
+
Frequency ) : null} -
- + ) : null}
@@ -1099,75 +1123,8 @@ export default function CompanyBrainAutomations() { return (
-
-
-

- Default automation channel -

-

- Team automations created in Slack post here unless another channel - is named. -

-
-
-
- - {updateDefaultChannel.isPending ? ( - - ) : null} -
- {defaultChannelHint ? ( -

- {defaultChannelHint} - {retryDefaultChannel ? ( - - ) : null} -

- ) : null} -
-
-
-
+

Your automations

- +
+
+ + {updateDefaultChannel.isPending ? ( + + ) : null} +
+ +
+ {defaultChannelHint ? ( +

+ {defaultChannelHint} + {retryDefaultChannel ? ( + + ) : null} +

+ ) : null} {automations.map((a) => openId === a.id ? (