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: command k safe name (#2414)
gbirman17f48afab7e3
diff --git a/js/app/packages/core/context/quickAccess/QuickAccessProvider.tsx b/js/app/packages/core/context/quickAccess/QuickAccessProvider.tsxindex f3a4ec6257..b0cc73a7b9 100644--- a/js/app/packages/core/context/quickAccess/QuickAccessProvider.tsx+++ b/js/app/packages/core/context/quickAccess/QuickAccessProvider.tsx@@ -26,6 +26,7 @@ import type {QuickAccessEntity,} from './types';import { BUCKET_COMBINATIONS } from './types';+import { itemToSafeName } from '@core/constant/allBlocks';/*** index entry for sorted lists.@@ -67,11 +68,20 @@ function historyItemToEntity(item: HistoryItem): QuickAccessEntity {} as QuickAccessEntity;case 'document': {- const fileType =- item.subType?.type === 'task' ? 'md' : (item.fileType ?? undefined);- const name = formatDocumentName(item.rawName ?? item.name, fileType, {- fullyQualifiedBlockName: true,- });+ const fileType = item.fileType ?? undefined;+ const subType = item.subType ?? undefined;+ const name = formatDocumentName(+ itemToSafeName({+ name: item.rawName ?? item.name,+ type: item.type,+ fileType,+ subType,+ }),+ fileType,+ {+ fullyQualifiedBlockName: true,+ }+ );return {...base,name,diff --git a/js/app/packages/queries/soup/transform-utils.ts b/js/app/packages/queries/soup/transform-utils.tsindex 938d32ccaf..cefc72b76a 100644--- a/js/app/packages/queries/soup/transform-utils.ts+++ b/js/app/packages/queries/soup/transform-utils.ts@@ -338,10 +338,10 @@ const resolveDocumentEntityName = (name: entity.name,fileType: entity.fileType,subType:- entity.subType === null || entity.subType === undefined+ entity.subType == null? null: {- type: entity.subType.type as 'task',+ type: entity.subType.type,is_completed: entity.subType.is_completed,},});