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(crm): keep unavailable email creation disabled (#9154)
dev-rbe3fec13d32fb
diff --git a/apps/web/src/features/crm/README.md b/apps/web/src/features/crm/README.mdindex b229acfcca..f390512045 100644--- a/apps/web/src/features/crm/README.md+++ b/apps/web/src/features/crm/README.md@@ -103,6 +103,8 @@ any filter button. Email filters use the shared filter drawer. Each section'screation action replaces the default floating action above the navigation dockthrough `FloatRegion`; keyboard focus, higher-priority composers, and inactivepanes suppress it. Preserve record context, disabled states, and feature gates.+Keep the disabled New email action mounted when company email sync is off so+the unrelated app-wide action does not replace it.Desktop creation controls remain in the toolbar.Activity rows render stored Companies and Contacts reference properties as inlinediff --git a/apps/web/src/features/crm/views/company-emails-section.tsx b/apps/web/src/features/crm/views/company-emails-section.tsxindex f22a3800ca..caad03f576 100644--- a/apps/web/src/features/crm/views/company-emails-section.tsx+++ b/apps/web/src/features/crm/views/company-emails-section.tsx@@ -39,11 +39,11 @@ export function CompanyEmailsSection(props: { company?: CrmCompanyEntity }) {title="Emails"search={search()}onSearchChange={setSearch}- createAction={- props.company?.emailSync === false- ? undefined- : { label: 'New email', onClick: () => crm.openEmailComposer() }- }+ createAction={{+ label: 'New email',+ disabled: props.company?.emailSync === false,+ onClick: () => crm.openEmailComposer(),+ }}actions={<RecordSectionFiltersactiveCount={diff --git a/docs/agent-guide/crm.md b/docs/agent-guide/crm.mdindex ab04250ff3..6085dc632a 100644--- a/docs/agent-guide/crm.md+++ b/docs/agent-guide/crm.md@@ -217,7 +217,9 @@ Email importance and inbox choices open in the shared filter drawer.Section creation actions appear at the bottom right above the navigation dock,replacing the default app-wide action: Add contact, New email, New note, New task,New call, or New database. Existing contact-domain requirements, email-sync and-database gates, recipients, and task associations still apply. Keyboard focus and+database gates, recipients, and task associations still apply. With company email+sync off, New email stays visible but disabled; New company must not replace it.+Keyboard focus andhigher-priority composers suppress the floating action; leaving the sectionrestores the default action. Search remains visible for empty lists.Verify filter changes, section changes, disabled creation, and bottom-row clearance