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(project-block): use dss post query to filter by project (#414)
Caleb Tayloreccd86b6c12b
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex 9a74084e57..3f58783328 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -754,6 +754,7 @@ export function UnifiedListView(props: UnifiedListViewProps) {document_ids: entityTypeFilter().includes('document')? []: [GARBAGE_UUID],+ project_ids: view().viewType === 'project' ? [view().id] : [],},chat_filters: {chat_ids: [GARBAGE_UUID],@@ -761,6 +762,9 @@ export function UnifiedListView(props: UnifiedListViewProps) {email_filters: {recipients: [GARBAGE_UUID],},+ project_filters: {+ project_ids: view().viewType === 'project' ? [view().id] : [],+ },limit: props.defaultDisplayOptions?.limit ?? 100,sort_method: sortType(),})@@ -824,6 +828,7 @@ export function UnifiedListView(props: UnifiedListViewProps) {});const disableDssInfiniteQueryGET = createMemo(() => {+ if (view().viewType === 'project') return true;if (view().id === VIEWCONFIG_DEFAULTS_IDS_ENUM.folders) return true;const typeFilter = entityTypeFilter();@@ -833,7 +838,11 @@ export function UnifiedListView(props: UnifiedListViewProps) {return !hasDssTypes;});const disableDssInfiniteQueryPost = createMemo(() => {- if (view().id !== VIEWCONFIG_DEFAULTS_IDS_ENUM.folders) return true;+ if (+ view().viewType !== 'project' &&+ view().id !== VIEWCONFIG_DEFAULTS_IDS_ENUM.folders+ )+ return true;const typeFilter = entityTypeFilter();if (typeFilter.length === 0) return false;