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(channel): render call and empty-subject email shares correctly (#3276)
gbirmand79832d38ea3
diff --git a/js/app/packages/block-email/definition.ts b/js/app/packages/block-email/definition.tsindex 4124b61b60..d2c1521e09 100644--- a/js/app/packages/block-email/definition.ts+++ b/js/app/packages/block-email/definition.ts@@ -9,6 +9,7 @@ export const definition = defineBlock({component: EmailBlock,liveTrackingEnabled: true,syncServiceEnabled: false,+ defaultFilename: '[No subject]',async load(source) {if (source.type === 'dss') {diff --git a/js/app/packages/channel/Attachments/attachment-utils.ts b/js/app/packages/channel/Attachments/attachment-utils.tsindex fe4207f6e6..e3a235033c 100644--- a/js/app/packages/channel/Attachments/attachment-utils.ts+++ b/js/app/packages/channel/Attachments/attachment-utils.ts@@ -53,6 +53,9 @@ export function buildAttachmentEntityFilters(case 'project':projectIds.push(a.entity_id);break;+ case 'call':+ callIds.push(a.entity_id);+ break;}}diff --git a/js/app/packages/core/component/ForwardToChannel.tsx b/js/app/packages/core/component/ForwardToChannel.tsxindex 7f70e27c90..95e5740705 100644--- a/js/app/packages/core/component/ForwardToChannel.tsx+++ b/js/app/packages/core/component/ForwardToChannel.tsx@@ -280,11 +280,7 @@ export function ForwardToChannel(props: ForwardToChannelProps) {const blockId = useMaybeBlockId() ?? props.blockId;const asAttachment = () => {const itemType =- blockName === 'email'- ? 'thread'- : blockName != null- ? blockNameToItemType(blockName)- : undefined;+ blockName != null ? blockNameToItemType(blockName) : undefined;return {entity_type: itemType ?? 'unknown',entity_id: blockId ?? '',diff --git a/js/app/packages/service-clients/service-storage/client.ts b/js/app/packages/service-clients/service-storage/client.tsindex b976733048..dd0b09bdec 100644--- a/js/app/packages/service-clients/service-storage/client.ts+++ b/js/app/packages/service-clients/service-storage/client.ts@@ -184,6 +184,7 @@ export function stringToItemType(str: string): ItemType | undefined {case 'thread': {return 'email';}+ case 'call':case 'chat':case 'document':case 'project':