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(tasks): improve style of task toast (#2905)
Seamus6a28f8c95618
diff --git a/js/app/packages/block-md/component/ComposeTask.tsx b/js/app/packages/block-md/component/ComposeTask.tsxindex d67fab8700..8c23a92fd7 100644--- a/js/app/packages/block-md/component/ComposeTask.tsx+++ b/js/app/packages/block-md/component/ComposeTask.tsx@@ -4,7 +4,6 @@ import { CircleSpinner } from '@core/component/CircleSpinner';import { EntityIcon } from '@core/component/EntityIcon';import { MiniToggleSwitch } from '@core/component/FormControls/MiniToggleSwitch';import { Hotkey } from '@core/component/Hotkey';-import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';import { unifiedListMarkdownTheme } from '@core/component/LexicalMarkdown/theme';import { initializeEditorEmpty } from '@core/component/LexicalMarkdown/utils';@@ -59,7 +58,7 @@ import {} from '../util/taskComposerStorage';import { buildConfig } from '@core/component/LexicalMarkdown/builder/MarkdownConfigBuilder';import { MarkdownShell } from '@core/component/LexicalMarkdown/builder/MarkdownShell';-import CheckIcon from '@icon/regular/check.svg';+import CheckIcon from '@icon/bold/check-bold.svg';// Show these props in the composer.const COMPOSER_PROPERTIES = [@@ -362,25 +361,39 @@ export function ComposeTask(props: ComposeTaskProps) {toast.custom({- title:- taskTitle ||- itemToSafeName({ type: 'document', subType: { type: 'task' } }),- icon: TaskEntityIcon,- color: 'var(--color-task)',+ title: 'Task Created',+ icon: () => <CheckIcon class="text-success size-5" />,+ color: 'var(--color-success)',content: () => (- <div class="text-xs text-ink-extra-muted line-clamp-2 mb-4">- <StaticMarkdown- markdown={taskContent}- theme={unifiedListMarkdownTheme}- singleLine- />+ <>+ <div class="bg-hover p-2 rounded-sm line-clamp-3 space-y-2">+ <div class="flex gap-2 items-center">+ <TaskEntityIcon class="size-4" />+ <h1 class="text-base font-semibold mb-1 truncate">+ {taskTitle ||+ itemToSafeName({+ type: 'document',+ subType: { type: 'task' },+ })}+ </h1>+ </div>+ <Show when={taskContent.length > 0}>+ <div class="truncate">+ <StaticMarkdown+ markdown={taskContent}+ theme={unifiedListMarkdownTheme}+ singleLine+ />+ </div>+ </Show>+ </div><Show when={linkCopied}>- <div class="bg-hover/50 flex items-center gap-1 rounded-xs p-1">- <CheckIcon class="size-3" />- <span>Link copied to clipboard</span>+ <div class="mt-1 flex items-center gap-1 rounded-sm p-1 bg-success-bg text-success-ink">+ <LinkIcon class="size-3" />+ <span>Link auto-copied to clipboard</span></div></Show>- </div>+ </>),actions: [{@@ -394,7 +407,7 @@ export function ComposeTask(props: ComposeTaskProps) {},},{- label: 'Open in New Split',+ label: 'Open (New Split)',icon: SplitIcon,onClick: () => {openWithSplit(@@ -403,13 +416,6 @@ export function ComposeTask(props: ComposeTaskProps) {);},},- {- label: 'Copy Link',- icon: LinkIcon,- onClick: () => {- navigator.clipboard.writeText(url);- },- },],},{ duration: 5_000 }diff --git a/js/app/packages/core/component/Toast/Toast.tsx b/js/app/packages/core/component/Toast/Toast.tsxindex d588470322..98bc0c74cf 100644--- a/js/app/packages/core/component/Toast/Toast.tsx+++ b/js/app/packages/core/component/Toast/Toast.tsx@@ -196,8 +196,6 @@ function alert(message: string, subtext?: string, duration?: number) {createToast(message, ToastType.ALERT, subtext, undefined, duration);}-// ─── Shared actions row ──────────────────────────────────────────────────────-function ActionButtons(props: { actions: ToastAction[] }) {return (<For each={props.actions}>@@ -217,8 +215,6 @@ function ActionButtons(props: { actions: ToastAction[] }) {);}-// ─── Toast content ───────────────────────────────────────────────────────────-function ToastContent(props: {toastId: number;toastType?: ToastType;