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): project filter missing from exhaustive match (#1553)
dev-rb3b250d100708
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 84350712e5..e0ed342f27 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@@ -102,15 +102,7 @@ export const createSearchState = ({.with('email', () => {includeArray.push('emails');})- .with(- 'signal',- 'noise',- 'explicit-noise',- 'unread',- 'not-done',- () => {}- )- .exhaustive();+ .otherwise(() => {});}return Array.from(new Set(includeArray));},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 bdb8a2d0ff..a9b813609d 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@@ -431,6 +431,8 @@ export const SoupViewList = (props: SoupViewListProps) => {});+ const isProjectList = panel.handle.content().type === 'project';+const getCacheKey = () => {let key = `soup-view-${panel.handle.id}`;@@ -444,6 +446,8 @@ export const SoupViewList = (props: SoupViewListProps) => {onCleanup(() => {const virtualHandle = virtualizerHandle();+ if (isProjectList) return;+stateCache.set(getCacheKey(), {soup: {focus: soup.focus.id(),@@ -459,7 +463,7 @@ export const SoupViewList = (props: SoupViewListProps) => {let restored = false;const restoreState = () => {- if (restored) return;+ if (restored || isProjectList) return;restored = true;