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
feat(icon): add custom phone icon (#2729)
Aidan Holloway-Bidwell410d7e78c0af
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsxindex 6074b48baa..fda557b3f7 100644--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx@@ -54,7 +54,7 @@ import {setInviteModalOpen,} from '@app/component/app-sidebar/invite-modal';import { ENABLE_CALLS } from '@core/constant/featureFlags';-import PhoneCallIcon from '@icon/duotone/phone-call-duotone.svg';+import { AnimatedCallIcon } from '@macro-icons/wide/animating/call';interface SidebarItem {id: ListView;@@ -353,7 +353,7 @@ const CALLS_LINK: SidebarItem = {id: 'calls',label: 'Calls',href: LIST_VIEW_PATHS.calls,- icon: PhoneCallIcon,+ icon: AnimatedCallIcon,hotkey: 'l',};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 c22e5ef684..c130b6e9b6 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@@ -7,7 +7,7 @@ import { isErr } from '@core/util/maybeResult';import { toast } from '@core/component/Toast/Toast';import { commsServiceClient } from '@service-comms/client';import { DialogWrapper } from '@core/component/DialogWrapper';-import PhoneCallIcon from '@icon/duotone/phone-call-duotone.svg';+import PhoneCallIcon from '@macro-icons/wide/call.svg';import XIcon from '@icon/regular/x.svg';import { Dialog } from '@kobalte/core/dialog';import { createSignal } from 'solid-js';diff --git a/js/app/packages/block-call/component/CallBlockAdapter.tsx b/js/app/packages/block-call/component/CallBlockAdapter.tsxindex ae6c2762a4..c6dbe1374a 100644--- a/js/app/packages/block-call/component/CallBlockAdapter.tsx+++ b/js/app/packages/block-call/component/CallBlockAdapter.tsx@@ -6,7 +6,7 @@ import { Match, Show, Switch } from 'solid-js';import { CallTranscript } from './CallTranscript';import type { CallRecord } from '@service-storage/generated/schemas/callRecord';import { format } from 'date-fns';-import PhoneCallIcon from '@icon/duotone/phone-call-duotone.svg';+import PhoneCallIcon from '@macro-icons/wide/call.svg';import { formatCallDuration } from '../utils';function isUnauthorized(error: Error | null): boolean {diff --git a/js/app/packages/block-channel/component/Top.tsx b/js/app/packages/block-channel/component/Top.tsxindex 45a46d109c..b96babe790 100644--- a/js/app/packages/block-channel/component/Top.tsx+++ b/js/app/packages/block-channel/component/Top.tsx@@ -8,7 +8,7 @@ import HashIcon from '@icon/regular/hash.svg';import ChatTextIcon from '@icon/regular/chat-text.svg';import PaperclipIcon from '@icon/regular/paperclip.svg';import UsersIcon from '@icon/regular/users.svg';-import PhoneIcon from '@icon/regular/phone.svg';+import PhoneIcon from '@macro-icons/wide/call.svg';import type { ChannelParticipant } from '@queries/channel/types';import type { ChannelType } from '@service-comms/generated/models/channelType';import { ChannelTypeEnum } from '@service-comms/client';diff --git a/js/app/packages/channel/Call/ChannelCallButton.tsx b/js/app/packages/channel/Call/ChannelCallButton.tsxindex 55d9d7e20d..08345f1529 100644--- a/js/app/packages/channel/Call/ChannelCallButton.tsx+++ b/js/app/packages/channel/Call/ChannelCallButton.tsx@@ -2,7 +2,7 @@ import { Show } from 'solid-js';import { useChannelTab } from '@channel/Channel/ChannelTabContext';import { DEFAULT_CHANNEL_TAB } from '@channel/Channel/channel-tabs';import { Button } from '@ui/components/Button';-import PhoneIcon from '@icon/regular/phone.svg';+import PhoneIcon from '@macro-icons/wide/call.svg';import PhoneDisconnectIcon from '@icon/regular/phone-disconnect.svg';import { useActiveCallQuery } from '@queries/call/call';import { useCall } from './useCall';diff --git a/js/app/packages/core/component/EntityIcon.tsx b/js/app/packages/core/component/EntityIcon.tsxindex 6ab63f07f4..91875fb078 100644--- a/js/app/packages/core/component/EntityIcon.tsx+++ b/js/app/packages/core/component/EntityIcon.tsx@@ -21,7 +21,7 @@ import FileMd from '@icon/duotone/file-md-duotone.svg';import FilePdf from '@icon/duotone/file-pdf-duotone.svg';import FileVideo from '@icon/duotone/file-video-duotone.svg';import FileImage from '@icon/duotone/image-duotone.svg';-import PhoneCall from '@icon/duotone/phone-call-duotone.svg';+import PhoneCall from '@macro-icons/wide/call.svg';import Canvas from '@icon/duotone/pencil-circle-duotone.svg';import Robot from '@icon/duotone/robot-duotone.svg';import User from '@icon/duotone/user-duotone.svg';diff --git a/js/app/packages/macro-icons/wide/animating/call.tsx b/js/app/packages/macro-icons/wide/animating/call.tsxnew file mode 100644index 0000000000..0ab9107dcb--- /dev/null+++ b/js/app/packages/macro-icons/wide/animating/call.tsx@@ -0,0 +1,41 @@+export const AnimatedCallIcon = (props: {+ triggerAnimation?: boolean;+ class?: string;+}) => {+ return (+ <svg+ width="100%"+ height="100%"+ viewBox="0 -3 18 18"+ fill="currentColor"+ stroke="none"+ xmlns="http://www.w3.org/2000/svg"+ overflow="visible"+ class={`animated-call-icon ${props.triggerAnimation ? 'animating' : ''} ${props.class ?? ''}`}+ >+ <style>{`+ @keyframes phone-ring {+ 0% { transform: rotate(0deg); }+ 10% { transform: rotate(-14deg); }+ 25% { transform: rotate(12deg); }+ 40% { transform: rotate(-8deg); }+ 55% { transform: rotate(6deg); }+ 65% { transform: rotate(-3deg); }+ 75% { transform: rotate(0deg); }+ 100% { transform: rotate(0deg); }+ }+ .animated-call-icon .phone {+ transform-box: fill-box;+ transform-origin: center;+ }+ .animated-call-icon.animating .phone {+ animation: phone-ring 1s ease-in-out infinite;+ }+ `}</style>++ <g class="phone">+ <path d="M12.56,12c-3.49,0-6.83-1.29-9.38-3.58h0s-.2-.19-.2-.19c-.08-.08-.17-.16-.25-.24l-.15-.14c-.2-.19-.61-.66-.82-.91-.09-.11-.17-.22-.25-.33l-.08-.1c-.14-.18-.27-.36-.4-.54-.11-.16-.22-.32-.32-.49-.17-.27-.41-.9-.51-1.26-.07-.27-.29-1.16-.16-1.56.1-.3.12-.35,3.46-2.53l.13-.07c.43-.17.92.03,1.1.46.36.87,1.39,2.28,2.09,3,.32.34.31.87-.02,1.2l-.52.51c1.37,1.47,3.46,2.33,5.39,2.29v-.75c0-.43.33-.79.77-.83.09,0,.29-.02.56-.03.68-.03,2.74-.13,3.23-.32.43-.17.92.03,1.09.47l.05.2.4,3.59v.22s-.06.37-.06.37c-.09.19-.25.34-.44.42-1.51.71-2.26,1.02-4,1.12-.12,0-.24,0-.36,0-.12,0-.25,0-.37,0ZM3.76,6.91c2.4,2.37,5.66,3.69,9.05,3.59h.13c.09,0,.18,0,.27,0,1.31-.08,1.9-.28,3.05-.8l-.28-2.5c-.67.1-1.61.17-2.8.22v1.47s-.66.08-.66.08c-2.92.36-6.06-.97-7.85-3.33l-.4-.53,1.04-1.02c-.56-.66-1.18-1.52-1.61-2.29-.88.58-1.74,1.16-2.17,1.46.03.18.07.41.12.57.08.29.27.75.33.85.09.15.19.29.29.44.11.17.23.32.35.48l.08.11c.07.09.14.19.21.28.23.27.58.67.7.79l-.08.11.1-.1.13.13ZM12.58,7.44s0,0,0,0c0,0,0,0,0,0ZM16.79,7s0,0,0,0c0,0,0,0,0,0ZM13.19,6.78h0s0,0,0,0ZM5.76,3.65h0s0,0,0,0ZM3.35,1.1h0s0,0,0,0Z" />+ </g>+ </svg>+ );+};diff --git a/js/app/packages/macro-icons/wide/call.svg b/js/app/packages/macro-icons/wide/call.svgnew file mode 100644index 0000000000..5c46b7f105--- /dev/null+++ b/js/app/packages/macro-icons/wide/call.svg@@ -0,0 +1,3 @@+<svg width="100%" height="100%" viewBox="0 -3 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg">+<path d="M12.56,12c-3.49,0-6.83-1.29-9.38-3.58h0s-.2-.19-.2-.19c-.08-.08-.17-.16-.25-.24l-.15-.14c-.2-.19-.61-.66-.82-.91-.09-.11-.17-.22-.25-.33l-.08-.1c-.14-.18-.27-.36-.4-.54-.11-.16-.22-.32-.32-.49-.17-.27-.41-.9-.51-1.26-.07-.27-.29-1.16-.16-1.56.1-.3.12-.35,3.46-2.53l.13-.07c.43-.17.92.03,1.1.46.36.87,1.39,2.28,2.09,3,.32.34.31.87-.02,1.2l-.52.51c1.37,1.47,3.46,2.33,5.39,2.29v-.75c0-.43.33-.79.77-.83.09,0,.29-.02.56-.03.68-.03,2.74-.13,3.23-.32.43-.17.92.03,1.09.47l.05.2.4,3.59v.22s-.06.37-.06.37c-.09.19-.25.34-.44.42-1.51.71-2.26,1.02-4,1.12-.12,0-.24,0-.36,0-.12,0-.25,0-.37,0ZM3.76,6.91c2.4,2.37,5.66,3.69,9.05,3.59h.13c.09,0,.18,0,.27,0,1.31-.08,1.9-.28,3.05-.8l-.28-2.5c-.67.1-1.61.17-2.8.22v1.47s-.66.08-.66.08c-2.92.36-6.06-.97-7.85-3.33l-.4-.53,1.04-1.02c-.56-.66-1.18-1.52-1.61-2.29-.88.58-1.74,1.16-2.17,1.46.03.18.07.41.12.57.08.29.27.75.33.85.09.15.19.29.29.44.11.17.23.32.35.48l.08.11c.07.09.14.19.21.28.23.27.58.67.7.79l-.08.11.1-.1.13.13ZM12.58,7.44s0,0,0,0c0,0,0,0,0,0ZM16.79,7s0,0,0,0c0,0,0,0,0,0ZM13.19,6.78h0s0,0,0,0ZM5.76,3.65h0s0,0,0,0ZM3.35,1.1h0s0,0,0,0Z"/>+</svg>