mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat(core): make event track great again (#7695)
 
This commit is contained in:
@@ -6,7 +6,7 @@ import type { createStore } from 'jotai';
|
||||
|
||||
import { openSettingModalAtom, openWorkspaceListModalAtom } from '../atoms';
|
||||
import type { useNavigateHelper } from '../hooks/use-navigate-helper';
|
||||
import { mixpanel } from '../mixpanel';
|
||||
import { mixpanel, track } from '../mixpanel';
|
||||
import { registerAffineCommand } from './registry';
|
||||
|
||||
export function registerAffineNavigationCommands({
|
||||
@@ -77,10 +77,7 @@ export function registerAffineNavigationCommands({
|
||||
label: t['com.affine.cmdk.affine.navigation.open-settings'](),
|
||||
keyBinding: '$mod+,',
|
||||
run() {
|
||||
mixpanel.track('SettingsViewed', {
|
||||
// page:
|
||||
segment: 'cmdk',
|
||||
});
|
||||
track.$.cmdk.settings.openSettings();
|
||||
store.set(openSettingModalAtom, s => ({
|
||||
activeTab: 'appearance',
|
||||
open: !s.open,
|
||||
|
||||
Reference in New Issue
Block a user