Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(empty states): add graphics to calls and automations. + styling (#3912)

Aidan Holloway-Bidwell2ca7d3694c93
diff --git a/js/app/packages/app/component/next-soup/soup-view/empty-states.tsx b/js/app/packages/app/component/next-soup/soup-view/empty-states.tsx
index 8faf369882..b22a00e8a6 100644
--- a/js/app/packages/app/component/next-soup/soup-view/empty-states.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/empty-states.tsx
@@ -5,6 +5,9 @@ import { McpSetupCards } from '@core/component/AI/component/McpSetupCards';
import { toast } from '@core/component/Toast/Toast';
import { useEmailLinks, useEmailLinksStatus } from '@core/email-link';
import EmptyStateAiIcon from '@design/empty-state-ai.svg';
+import EmptyStateAutomationsIcon from '@design/empty-state-automations.svg';
+import EmptyStateCallsIcon from '@design/empty-state-calls.svg';
+import EmptyStateChannelsIcon from '@design/empty-state-channels.svg';
import EmptyStateDocIcon from '@design/empty-state-doc.svg';
import EmptyStateEmailIcon from '@design/empty-state-email.svg';
import EmptyStateFolderIcon from '@design/empty-state-folder.svg';
@@ -40,6 +43,7 @@ const FALLBACK_CONTENT: Partial<Record<ListView, FallbackContent>> = {
},
channels: {
plural: 'channels',
+ graphic: EmptyStateChannelsIcon,
description:
'Channels are shared spaces for team conversations organized by topic, project, or team. Create a channel to start collaborating with your team.',
create: { label: 'New channel', blockName: 'channel' },
@@ -47,6 +51,7 @@ const FALLBACK_CONTENT: Partial<Record<ListView, FallbackContent>> = {
},
calls: {
plural: 'calls',
+ graphic: EmptyStateCallsIcon,
description: (
<>
See recordings, transcriptions and summaries of your Macro calls.
@@ -210,7 +215,7 @@ export function EmptyState(props: {
>
<EmptyStatePanel
align="center"
- graphic={EmptyStateInboxZeroIcon}
+ graphic={EmptyStateAutomationsIcon}
title="No automations to show"
description="Automations run in the background to handle repetitive work for you — like triaging messages, updating tasks, or sending follow-ups."
primaryAction={{
@@ -240,6 +245,11 @@ export function EmptyState(props: {
graphic={EmptyStateFolderIcon}
title="No folders"
description="Folders let you organize conversations, documents, and tasks into projects. Create a folder or drop files below to get started."
+ primaryAction={{
+ label: 'New folder',
+ icon: PlusIcon,
+ onClick: () => runCreateAction('project'),
+ }}
documentationUrl={`${DOCS_BASE}/product/folders`}
>
<FolderDropZone />
diff --git a/js/app/packages/design/empty-state-automations.svg b/js/app/packages/design/empty-state-automations.svg
new file mode 100644
index 0000000000..a4db113dde
--- /dev/null
+++ b/js/app/packages/design/empty-state-automations.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="100%" height="100%" fill="none" stroke="currentColor" stroke-width="0.5"><g transform="translate(5.865 10.33)"><g opacity="0.5"><path d="M36.89,17.43l-19.05,11c-1.67.97-4.6.85-6.53-.27L1.85,22.7c-1.93-1.12-2.14-2.81-.47-3.77L20.43,7.93c1.67-.97,4.6-.85,6.53.27l9.45,5.46c1.93,1.12,2.14,2.81.47,3.77Z" stroke-dasharray="2.48 2.48" stroke-linecap="round" stroke-linejoin="round"/></g><path d="M18.38,17.49c-1.91-1.1-5.02-1.1-6.93,0s-1.91,2.9,0,4,5.02,1.1,6.93,0,1.91-2.9,0-4Z" fill="var(--color-surface)" stroke-linecap="round" stroke-linejoin="round"/><line x1="17.51" y1="20.99" x2="14.91" y2="19.49" stroke-linecap="round" stroke-linejoin="round"/><line x1="14.89" y1="18.05" x2="14.89" y2="19.46" stroke-linecap="round" stroke-linejoin="round"/><path d="M28.77,1.49c-2.87-1.66-7.52-1.66-10.39,0s-2.87,4.34,0,6,7.52,1.66,10.39,0,2.87-4.34,0-6Z" fill="var(--color-surface)" stroke-linecap="round" stroke-linejoin="round"/><g fill="currentColor" stroke="none"><path d="M27.9,2.27c-3.49,2.02-3.39,2.48-1.44,3.61.13.08.13.2,0,.28s-.35.08-.48,0c-1.95-1.12-2.76-1.18-6.25.83-.13.08-.35.08-.48,0s-.13-.2,0-.28c3.49-2.02,3.39-2.48,1.44-3.61-.13-.08-.13-.2,0-.28s.35-.08.48,0c1.95,1.13,2.76,1.18,6.25-.83.13-.08.35-.08.48,0s.13.2,0,.28ZM22.73,4.01c-.12.39-.12.58,0,.97.68.07,1,.07,1.69,0,.12-.39.12-.58,0-.97-.68-.07-1-.07-1.69,0Z"/><path d="M23.82,4.35c-.13-.08-.35-.08-.48,0s-.13.2,0,.28.35.08.48,0,.13-.2,0-.28Z"/></g><polyline points="18.38 17.49 22.06 15.37 13.4 10.37 18.38 7.49" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
diff --git a/js/app/packages/design/empty-state-calls.svg b/js/app/packages/design/empty-state-calls.svg
new file mode 100644
index 0000000000..9df17a3531
--- /dev/null
+++ b/js/app/packages/design/empty-state-calls.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="100%" height="100%" fill="none" stroke="currentColor" stroke-width="0.5"><g transform="translate(5.865 13.85)"><g opacity="0.5"><path d="M36.89,10.4l-19.05,11c-1.67.97-4.6.85-6.53-.27L1.85,15.67c-1.93-1.12-2.14-2.81-.47-3.77L20.43.9c1.67-.97,4.6-.85,6.53.27l9.45,5.46c1.93,1.12,2.14,2.81.47,3.77Z" stroke-dasharray="2.48 2.48" stroke-linecap="round" stroke-linejoin="round"/></g><line x1="16.8" y1="16.41" x2="29.97" y2="8.8" stroke-linecap="round" stroke-linejoin="round"/><path d="M13.04,14.35c-.1.14-.31.23-.56.24-.61.02-1.21-.03-1.79-.15-1-.2-1.77-.63-2.12-1.21-.69-1.12.04-2.51.91-3.54,1.37-1.6,3.63-3.07,6.1-4.13.86-.37,1.79-.7,2.75-.98,1.8-.51,4.23-.94,6.18-.52.97.21,1.7.64,2.03,1.2.2.32.28.64.28.99,0,.16-.12.32-.4.38l-4.37.98c-.29.06-.64,0-.85-.13l-1.16-.67c-.14-.08-.33-.13-.52-.15-.23-.03-.44.01-.63.08-2.22.87-4.14,1.98-5.64,3.26-.13.11-.21.21-.16.34s.13.23.29.33l1.16.67c.2.11.32.32.22.48l-1.7,2.53h-.02Z" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
diff --git a/js/app/packages/design/empty-state-channels.svg b/js/app/packages/design/empty-state-channels.svg
new file mode 100644
index 0000000000..735f6ba8c3
--- /dev/null
+++ b/js/app/packages/design/empty-state-channels.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="100%" height="100%" fill="none" stroke="currentColor" stroke-width="0.5"><g transform="translate(5.865 12.835)"><path d="M17.71,14.95l-5,2.88c-.29.17-.29.45,0,.62l4.1,2.37v-.81s4.83-2.79,4.83-2.79c.29-.17.29-.45,0-.62l-2.86-1.65c-.29-.17-.77-.17-1.07,0Z" stroke-linecap="round" stroke-linejoin="round"/><g opacity="0.5"><path d="M36.89,11.99l-19.05,11c-1.67.97-4.6.85-6.53-.27L1.85,17.26c-1.93-1.12-2.14-2.81-.47-3.77L20.43,2.49c1.67-.97,4.6-.85,6.53.27l9.45,5.46c1.93,1.12,2.14,2.81.47,3.77Z" stroke-dasharray="2.48 2.48" stroke-linecap="round" stroke-linejoin="round"/></g><path d="M17.92,16.73c-.18.1-.18.27,0,.37s.46.1.64,0,.18-.27,0-.37-.46-.1-.64,0Z" fill="currentColor" stroke="none"/><path d="M16.86,17.34c-.18.1-.18.27,0,.37s.46.1.64,0,.18-.27,0-.37-.46-.1-.64,0Z" fill="currentColor" stroke="none"/><path d="M15.79,17.96c-.18.1-.18.27,0,.37s.46.1.64,0,.18-.27,0-.37-.46-.1-.64,0Z" fill="currentColor" stroke="none"/><path d="M19.12,5.65l2.5-1.44c.29-.17.77-.17,1.07,0l2.86,1.65c.29.17.29.45,0,.62l-2.5,1.44-9.96,5.75-2.5,1.44c-.29.17-.77.17-1.07,0l-2.86-1.65c-.29-.17-.29-.45,0-.62l2.5-1.44,9.96-5.75Z" fill="var(--color-surface)" stroke-linecap="round" stroke-linejoin="round"/><path d="M25.2.66c.96.55.96,1.45,0,2s-2.51.55-3.46,0-.96-1.45,0-2,2.51-.55,3.46,0Z" fill="var(--color-surface)" stroke-miterlimit="10"/><path d="M16.54,21.66c.96.55.96,1.45,0,2s-2.51.55-3.46,0-.96-1.45,0-2,2.51-.55,3.46,0Z" fill="var(--color-surface)" stroke-miterlimit="10"/></g></svg>
diff --git a/js/app/packages/ui/components/EmptyStatePanel.tsx b/js/app/packages/ui/components/EmptyStatePanel.tsx
index c5493a7c64..e79b80827b 100644
--- a/js/app/packages/ui/components/EmptyStatePanel.tsx
+++ b/js/app/packages/ui/components/EmptyStatePanel.tsx
@@ -105,7 +105,7 @@ export function EmptyStatePanel(props: EmptyStatePanelProps) {
<Button
variant="base"
size="md"
- class="rounded-full px-4"
+ class="rounded-full border-edge bg-ink/5 px-4"
onClick={() => openExternalUrl(url())}
>
{props.documentationLabel ?? 'Documentation'}