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(list): move list selection on mark done if selection containes emails - regadless of view (#1774)
Seamus4802658e4e1e
diff --git a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.tsindex 6bb62cd799..5ef3ad0773 100644--- a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts+++ b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts@@ -119,7 +119,11 @@ export const makeMarkDoneAction = (options: MakeMarkDoneOptions) => {soup.selection.clear();const shouldNavigate =soup.filters.isActive('signal') || soup.filters.isActive('noise');- if (nextEntity && shouldNavigate) {++ // marking email as done removes it in any view, so we should update selection.+ const willBeRemoved = entities.some((e) => e.type === 'email');++ if (nextEntity && (shouldNavigate || willBeRemoved)) {soup.focus.set(nextEntity.id);onNavigate?.(nextEntity);}