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
style: soup create button (#3427)
Seamusfa9423ef4ce7
diff --git a/js/app/packages/app/component/next-soup/soup-view/NewCallButton.tsx b/js/app/packages/app/component/next-soup/soup-view/NewCallButton.tsxindex 61a2fd6721..fa660392da 100644--- a/js/app/packages/app/component/next-soup/soup-view/NewCallButton.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/NewCallButton.tsx@@ -5,7 +5,7 @@ import { useCombinedRecipients } from '@core/signal/useCombinedRecipient';import type { WithCustomUserInput } from '@core/user';import { getDestinationFromOptions } from '@core/util/destination';import PhoneCallIcon from '@icon/wide-call.svg';-import PlusCircleIcon from '@phosphor/plus-circle.svg';+import PlusCircleIcon from '@phosphor/plus.svg';import XIcon from '@phosphor/x.svg';import { commsServiceClient } from '@service-comms/client';import { Button, Dialog, Surface } from '@ui';@@ -81,13 +81,12 @@ export function NewCallButton() {return (<><Button- variant="accent-reverse"+ variant="active"+ class="border-0 rounded-full px-3 py-2 pl-1 font-semibold"size="sm"- depth={5}- class="rounded-full px-3 py-2 pl-1 font-bold"onClick={() => setIsOpen(true)}>- <PlusCircleIcon class="size-3.5" />+ <PlusCircleIcon class="size-3.5 text-accent" /><span>Call</span></Button><Dialogdiff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsxindex 6fc0ffbef8..7de498d4c0 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-create-button.tsx@@ -11,9 +11,9 @@ import {openFolderPicker,} from '@core/util/upload';import ChevronDownIcon from '@phosphor/caret-down.svg';-import PlusCircleIcon from '@phosphor/plus-circle.svg';+import PlusCircleIcon from '@phosphor/plus.svg';import UploadIcon from '@phosphor/upload-simple.svg';-import { Button, Dropdown, Layer } from '@ui';+import { Button, cn, Dropdown, Layer } from '@ui';import { createMemo, For, Show } from 'solid-js';import { NewCallButton } from './NewCallButton';@@ -139,13 +139,15 @@ export const SoupViewCreateButton = () => {const SingleOptionButton = (props: { hideLabel?: boolean }) => (<Button- variant="accent-reverse"- depth={5}- class="rounded-full px-3 py-2 pl-1 font-bold"+ variant="active"+ class={cn(+ 'border-0 rounded-full px-3 py-2 pl-1 font-semibold',+ props.hideLabel && 'pr-1'+ )}size="sm"onClick={() => handleSelect(options()[0])}>- <PlusCircleIcon class="size-3.5" />+ <PlusCircleIcon class="size-3.5 text-accent" /><Show when={!props.hideLabel}><span>{createLabel()}</span></Show>@@ -155,9 +157,11 @@ export const SoupViewCreateButton = () => {const MultiOptionButton = (props: { hideLabel?: boolean }) => (<Dropdown placement="bottom-start" gutter={4}><Dropdown.Trigger- variant="accent-reverse"- depth={5}- class="rounded-full px-3 pl-1 py-2 font-bold"+ variant="active"+ class={cn(+ 'border-0 rounded-full px-3 py-2 pl-1 font-semibold',+ props.hideLabel && 'pr-1'+ )}><PlusCircleIcon class="size-3.5" /><Show when={!props.hideLabel}>diff --git a/js/app/packages/ui/components/Button.tsx b/js/app/packages/ui/components/Button.tsxindex fe32579607..66364bf6d7 100644--- a/js/app/packages/ui/components/Button.tsx+++ b/js/app/packages/ui/components/Button.tsx@@ -26,14 +26,14 @@ export type ButtonProps = ButtonRootProps<'button'> & ComponentProps<'button'> &export type ButtonSize = 'sm' | 'icon-sm' | 'md' | 'icon-md' | 'lg' | 'icon-lg';-export type ButtonVariant = 'ghost' | 'base' | 'active' | 'danger' | 'accent-reverse';+export type ButtonVariant = 'ghost' | 'base' | 'active' | 'danger' | 'cta';const variantStyles: Record<ButtonVariant, string> = {danger: 'bg-transparent text-failure border border-failure/50 not-disabled:hover:bg-failure/10 not-disabled:active:bg-failure/20 disabled:opacity-30 ',base: 'bg-transparent text-ink-muted border border-edge-muted not-disabled:hover:bg-hover not-disabled:hover:text-ink active:bg-active disabled:opacity-30 ',active: 'bg-accent-bg text-accent border border-accent disabled:opacity-30 ',ghost: 'bg-transparent text-ink-muted not-disabled:hover:bg-hover not-disabled:hover:text-ink active:bg-active disabled:opacity-30 ',- 'accent-reverse': 'bg-accent text-surface border border-transparent not-disabled:hover:bg-accent/90 active:bg-accent/80 disabled:opacity-30 ',+ 'cta': 'bg-accent text-surface border border-transparent not-disabled:hover:bg-accent/90 active:bg-accent/80 disabled:opacity-30 ',};const sizeStyles: Record<ButtonSize, string> = {@@ -76,7 +76,7 @@ export const Button = (props: ButtonProps) => {const variantStyle = (): JSX.CSSProperties | string | undefined => {const variant = local.variant ?? group?.variant;- if (variant === 'accent-reverse') {+ if (variant === 'cta') {return {'--color-edge': 'var(--color-surface)','--color-edge-muted': 'oklch(from var(--color-surface) l c h / 0.5)',diff --git a/js/app/packages/ui/components/ButtonGroup.tsx b/js/app/packages/ui/components/ButtonGroup.tsxindex 3bd8a0a0db..12bfcbef4e 100644--- a/js/app/packages/ui/components/ButtonGroup.tsx+++ b/js/app/packages/ui/components/ButtonGroup.tsx@@ -30,7 +30,7 @@ const groupVariantStyles: Record<ButtonVariant, string> = {base: 'border border-edge-muted ',active: 'border border-accent ',ghost: ' ',- 'accent-reverse': 'border border-transparent ',+ 'cta': 'border border-transparent ',};const dividerVariantStyles: Record<ButtonVariant, string> = {@@ -38,7 +38,7 @@ const dividerVariantStyles: Record<ButtonVariant, string> = {base: 'bg-edge-muted',active: 'bg-accent',ghost: 'bg-edge-muted',- 'accent-reverse': 'bg-surface/50',+ 'cta': 'bg-surface/50',};/* explicit cross-axis size so the group's outer box matches a standalonediff --git a/js/app/packages/ui/components/SendButton.tsx b/js/app/packages/ui/components/SendButton.tsxindex 43cf305975..ef62f845f0 100644--- a/js/app/packages/ui/components/SendButton.tsx+++ b/js/app/packages/ui/components/SendButton.tsx@@ -25,7 +25,7 @@ export function SendButton(props: SendButtonProps) {return (<Buttondepth={5}- variant="accent-reverse"+ variant="cta"size="icon-sm"draggable={false}aria-label={local['aria-label'] ?? 'Send'}