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(web): add animated home sidebar icon (#5376)
Aidan Holloway-Bidwell540a2d5efbdf
diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsxindex 58aa34ad75..90796e5e2d 100644--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx@@ -73,6 +73,7 @@ import { AnimatedChannelIcon } from '@icon/wide-channel';import { AnimatedCompanyIcon } from '@icon/wide-company';import { AnimatedEmailIcon } from '@icon/wide-email';import { AnimatedFileMdIcon } from '@icon/wide-fileMd';+import { AnimatedHomeIcon } from '@icon/wide-home';import { AnimatedInboxIcon } from '@icon/wide-inbox';import { AnimatedSearchIcon } from '@icon/wide-search';import { AnimatedStarIcon } from '@icon/wide-star';@@ -83,7 +84,6 @@ import CaretUpIcon from '@phosphor/caret-up.svg';import CompassIcon from '@phosphor/compass.svg';import DotsThreeIcon from '@phosphor/dots-three.svg';import GearIcon from '@phosphor/gear.svg';-import HomeIcon from '@phosphor/house.svg';import MagnifyingGlassIcon from '@phosphor/magnifying-glass.svg';import SignOutIcon from '@phosphor/sign-out.svg';import UsersThreeIcon from '@phosphor/users-three.svg';@@ -996,7 +996,7 @@ const DASHBOARD_LINK: SidebarItem = {id: 'home',label: 'Home',href: '/home',- icon: HomeIcon,+ icon: AnimatedHomeIcon,hotkey: 'h',hotkeyToken: TOKENS.sidebar.goTo.home,};diff --git a/apps/web/src/components/icon/wide-home.svg b/apps/web/src/components/icon/wide-home.svgnew file mode 100644index 0000000000..a44c43fc11--- /dev/null+++ b/apps/web/src/components/icon/wide-home.svg@@ -0,0 +1,8 @@+<svg width="100%" height="100%" viewBox="0 -3 18 18" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" overflow="visible" xmlns="http://www.w3.org/2000/svg">+ <!-- Asset 286 is reduced to 75% here, giving it the sidebar's effective 1.125px stroke. -->+ <g transform="translate(2.25 -1.03125) scale(.75)">+ <path d="M.75 9C.75 8.8.83 8.6.98 8.45L8.45.98C8.75.68 9.25.68 9.55.98L17.02 8.45C17.17 8.6 17.25 8.8 17.25 9V18H11.25V12H6.75V18H.75V9Z"/>+ <rect x="6.75" y="12" width="4.5" height="6.75" fill="currentColor" stroke="none"/>+ <rect x="7.31" y="5.87" width="3.38" height="3.38" rx="1" fill="currentColor" stroke="none"/>+ </g>+</svg>diff --git a/apps/web/src/components/icon/wide-home.tsx b/apps/web/src/components/icon/wide-home.tsxnew file mode 100644index 0000000000..03851ec78e--- /dev/null+++ b/apps/web/src/components/icon/wide-home.tsx@@ -0,0 +1,76 @@+export const AnimatedHomeIcon = (props: {+ triggerAnimation?: boolean;+ class?: string;+}) => {+ return (+ <svg+ width="100%"+ height="100%"+ viewBox="0 -3 18 18"+ fill="none"+ stroke="currentColor"+ stroke-width="1.5"+ stroke-linejoin="round"+ xmlns="http://www.w3.org/2000/svg"+ overflow="visible"+ class={`animated-home-icon ${props.triggerAnimation ? 'animating' : ''} ${props.class ?? ''}`}+ >+ <style>{`+ .animated-home-icon {+ .door, .window {+ opacity: 0;+ transition: opacity 0.2s ease;+ }+ .door {+ transform-box: fill-box;+ transform-origin: left bottom;+ transform: scaleX(0);+ transition: transform 0.3s ease, opacity 0.15s ease;+ }+ .window {+ transform-box: fill-box;+ transform-origin: center;+ transform: scale(0);+ transition: transform 0.2s ease, opacity 0.15s ease;+ }+ }+ .animated-home-icon.animating {+ .door {+ opacity: 1;+ transform: scaleX(1);+ }+ .window {+ opacity: 1;+ transform: scale(1);+ }+ }+ `}</style>++ {/* Asset 286 is reduced to 75% here, giving it the sidebar's effective 1.125px stroke. */}+ <g transform="translate(2.25 -1.03125) scale(.75)">+ <g class="house">+ <path d="M.75 9C.75 8.8.83 8.6.98 8.45L8.45.98C8.75.68 9.25.68 9.55.98L17.02 8.45C17.17 8.6 17.25 8.8 17.25 9V18H11.25V12H6.75V18H.75V9Z" />+ <rect+ class="door"+ x="6.75"+ y="12"+ width="4.5"+ height="6.75"+ fill="currentColor"+ stroke="none"+ />+ <rect+ class="window"+ x="7.31"+ y="5.87"+ width="3.38"+ height="3.38"+ rx="1"+ fill="currentColor"+ stroke="none"+ />+ </g>+ </g>+ </svg>+ );+};