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(layout): persist sidebar state in local storage (#1879)
dev-rbc76a6a9147ff
diff --git a/js/app/packages/app/component/Layout.tsx b/js/app/packages/app/component/Layout.tsxindex 4de31a5e0f..1026574bba 100644--- a/js/app/packages/app/component/Layout.tsx+++ b/js/app/packages/app/component/Layout.tsx@@ -31,6 +31,7 @@ import {import { isMobile } from '@core/mobile/isMobile';import { MobileDock } from './mobile/MobileDock';import { MobileSearchOuter } from './mobile/MobileSearch';+import { makePersisted } from '@solid-primitives/storage';const AUTH_URLS = [`${ROUTER_BASE_CONCAT}login`,@@ -41,8 +42,11 @@ const AUTH_URLS = [`${ROUTER_BASE_CONCAT}email-signup-callback`,];-export const [sidebarState, setSidebarState] = createSignal<SidebarState>(- !isMobile() ? 'expanded' : 'hidden'+export const [sidebarState, setSidebarState] = makePersisted(+ createSignal<SidebarState>(!isMobile() ? 'expanded' : 'hidden'),+ {+ name: 'sidebar-state',+ });export function Layout(props: RouteSectionProps) {