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(soup): slow initial load (#1559)
dev-rb93cee9ba728b
diff --git a/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts b/js/app/packages/app/component/next-soup/soup-view/create-search-state.tsindex e0ed342f27..fa2d0b64e2 100644--- a/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts+++ b/js/app/packages/app/component/next-soup/soup-view/create-search-state.ts@@ -178,7 +178,7 @@ export const createSearchState = ({const itemsQuery = useSoupItemsQuery(() => ({params: {- limit: 100,+ limit: 50,sort_method: soup.sort.active()[0]?.id ?? 'updated_at',},body: { ...emailExcludedQueryFilters() },diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsxindex 3e22122522..9cc4c6d26d 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx@@ -152,9 +152,11 @@ export const SoupView = () => {<SoupViewList /></SoupViewFileDropzone></div>- <Show when={ENABLE_UNIFIED_LIST_AI_INPUT && !isMobile()}>- <SoupChatInput />- </Show>+ <Suspense>+ <Show when={ENABLE_UNIFIED_LIST_AI_INPUT && !isMobile()}>+ <SoupChatInput />+ </Show>+ </Suspense></SoupViewContextProvider></SplitPanelContext.Provider>);diff --git a/js/app/packages/app/component/settings/SettingsWrapper.tsx b/js/app/packages/app/component/settings/SettingsWrapper.tsxindex 2fd558edf0..c21fb7c161 100644--- a/js/app/packages/app/component/settings/SettingsWrapper.tsx+++ b/js/app/packages/app/component/settings/SettingsWrapper.tsx@@ -8,7 +8,7 @@ export const SettingsWrapper = () => {const isAuthenticated = useIsAuthenticated();return (- <Show when={isAuthenticated()}>+ <Show when={isAuthenticated() && isSettingsPanelOpen()}><Resize.Panelid="settings-panel"minSize={440}diff --git a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsxindex df50826b74..09e48e91c2 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/menu/MentionsMenu.tsx@@ -424,7 +424,9 @@ export function MentionsMenuItem(props: {export function MentionsMenu(props: Parameters<typeof MentionsMenuInner>[0]) {return (<Suspense>- <MentionsMenuInner {...props} />+ <Show when={props.menu.isOpen()}>+ <MentionsMenuInner {...props} />+ </Show></Suspense>);}