Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(onboarding): teams overflow (#5195)
teof67b520f1bed
diff --git a/apps/web/src/features/setup/flow/TeamStep.tsx b/apps/web/src/features/setup/flow/TeamStep.tsxindex 61a82fbd95..b67087b1ba 100644--- a/apps/web/src/features/setup/flow/TeamStep.tsx+++ b/apps/web/src/features/setup/flow/TeamStep.tsx@@ -160,6 +160,7 @@ function CreateTeamForm(props: { onContinue: () => void; onSkip: () => void }) {const [inviteSlots, setInviteSlots] = createSignal<string[]>([...INITIAL_INVITE_SLOTS,]);+ let inviteListEl: HTMLDivElement | undefined;const validInvites = () =>[...new Set(inviteSlots().map((value) => value.trim()))].filter(@@ -189,6 +190,16 @@ function CreateTeamForm(props: { onContinue: () => void; onSkip: () => void }) {});};+ const addEmptyInvite = () => {+ setInviteSlots((slots) => [...slots, '']);+ requestAnimationFrame(() => {+ inviteListEl?.scrollTo({+ top: inviteListEl.scrollHeight,+ behavior: 'smooth',+ });+ });+ };+const create = async () => {if (createTeam.isPending || name().trim().length === 0) return;// The mutation owns its toasts; stay put (form intact) on failure.@@ -224,27 +235,32 @@ function CreateTeamForm(props: { onContinue: () => void; onSkip: () => void }) {{/* Index, not For: slots are edited strings, and For keys by value —each keystroke would recreate the input node and drop focus. */}- <Index each={inviteSlots()}>- {(slot, i) => (- <FormInput- id={`invite-${i}`}- type="email"- placeholder="[email protected]"- value={slot()}- onInput={(value) =>- setInviteSlots((slots) =>- slots.map((v, j) => (j === i ? value : v))- )- }- />- )}- </Index>+ <div+ ref={(el) => (inviteListEl = el)}+ class="flex max-h-48 flex-col gap-3 overflow-y-auto overscroll-contain"+ >+ <Index each={inviteSlots()}>+ {(slot, i) => (+ <FormInput+ id={`invite-${i}`}+ type="email"+ placeholder="[email protected]"+ value={slot()}+ onInput={(value) =>+ setInviteSlots((slots) =>+ slots.map((v, j) => (j === i ? value : v))+ )+ }+ />+ )}+ </Index>+ </div><Buttonvariant="ghost"size="sm"class="self-center text-ink-muted"- onClick={() => setInviteSlots((slots) => [...slots, ''])}+ onClick={addEmptyInvite}><Plus class="size-4" />Add another teammate