feat(core): add track events for cmdk (#7668)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { track } from '@affine/core/mixpanel';
|
||||
import type { DocsService } from '@toeverything/infra';
|
||||
import { Service } from '@toeverything/infra';
|
||||
|
||||
@@ -47,6 +48,10 @@ export class CMDKQuickSearchService extends Service {
|
||||
blockId?: string;
|
||||
} = result.payload;
|
||||
|
||||
result.source === 'recent-doc' && track.$.cmdk.recent.recentDocs();
|
||||
result.source === 'docs' &&
|
||||
track.$.cmdk.results.searchResultsDocs();
|
||||
|
||||
this.workbenchService.workbench.openDoc({
|
||||
docId: doc.docId,
|
||||
blockId: doc.blockId,
|
||||
|
||||
Reference in New Issue
Block a user