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(tasks): call wakeup for task entity (#3671)
teo87793c0e543c
diff --git a/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx b/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsxindex ac4aab0158..4e956e4611 100644--- a/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/views/tasks/TaskListEntity.tsx@@ -1,6 +1,7 @@import '@entity/composed/ListEntity.css';import { EntityRow, EntityRowContext } from '@app/component/mobile/EntityRow';import { useSplitPanel } from '@app/component/split-layout/layoutUtils';+import { useFeatureFlag } from '@app/lib/analytics/posthog';import { isMobile } from '@core/mobile/isMobile';import { isTouchDevice } from '@core/mobile/isTouchDevice';import {@@ -21,6 +22,11 @@ import {useListLayout,} from '@entity/composed/list-entity/shared';import type { EntityRowConfig } from '@entity/extractors-notification';+import {+ BULK_DOCUMENT_WAKEUP_FEATURE_FLAG,+ enqueueDocumentWakeup,+ isWakeableDocument,+} from '@queries/preview';import {getStreamState,subscribeToStreamState,@@ -28,6 +34,7 @@ import {import { mergeRefs } from '@solid-primitives/refs';import { cn } from '@ui/utils/classname';import {+ createEffect,createSignal,type JSX,Match,@@ -70,6 +77,14 @@ function MaybeEntityRow(props: {export function TaskListEntity(props: TaskListEntityProps) {const unread = () => unreadFilterFn(props.entity);const isShared = useIsShared(props.entity);+ const bulkWakeupEnabled = useFeatureFlag(BULK_DOCUMENT_WAKEUP_FEATURE_FLAG);++ createEffect(() => {+ if (!bulkWakeupEnabled().enabled) return;+ if (!isWakeableDocument(props.entity)) return;++ enqueueDocumentWakeup(props.entity);+ });subscribeToStreamState(props.entity.id, props.entity.type);const streamState = getStreamState(props.entity.id);