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
fix(ui): shift click setting (#3374)
Fake-Usera44b9e89f666
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsxindex 89ae9a8f76..3df241e840 100644--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx@@ -371,14 +371,12 @@ export const registerSidebarHotkeys = ({};type SidebarActionButtonProps = {- label: string;+ icon: Component<{ triggerAnimation?: boolean; class?: string }>;+ onClick: (event?: MouseEvent) => void;+ disabled?: boolean | (() => boolean);hotkeyToken?: HotkeyToken;- /** Whether the sidebar is currently in slim (icon-only) mode. */isSlim: () => boolean;- onClick: () => void;- disabled?: boolean | (() => boolean);- /** Animated icon component that accepts a `triggerAnimation` prop. */- icon: Component<{ triggerAnimation?: boolean; class?: string }>;+ label: string;};/**@@ -405,7 +403,7 @@ const SidebarActionButton = (props: SidebarActionButtonProps) => {tooltipPlacement="right"label={props.isSlim() ? props.label : undefined}hotkey={props.isSlim() ? props.hotkeyToken : undefined}- onClick={props.onClick}+ onClick={(event: MouseEvent) => props.onClick(event)}disabled={isDisabled()}onMouseEnter={() => setHovering(true)}onMouseLeave={() => setHovering(false)}@@ -648,11 +646,27 @@ export const AppSidebar = (props: AppSidebarProps) => {/><SidebarActionButton- label="Settings"+ onClick={(event) => {+ if (event?.shiftKey) {+ if (!(globalSplitManager()?.canAppendSplit() ?? true)) return;+ analytics.track('split_created', { from: 'sidebar' });+ layout.openWithSplit(+ { type: 'component', id: 'settings' },+ {+ referredFrom: 'sidebar',+ allowDuplicate: true,+ preferNewSplit: true,+ mergeHistory: false,+ }+ );+ return;+ }+ toggleSettings();+ }}hotkeyToken={TOKENS.global.toggleSettings}- isSlim={isSlim}- onClick={toggleSettings}icon={AnimatedGearIcon}+ label="Settings"+ isSlim={isSlim}/></div><InviteModal />