feat(core): all docs tracks (#12556)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Added enhanced tracking for user interactions across document lists, navigation, display menus, quick actions, and collection operations.
  - User actions such as opening documents, editing collections, toggling favorites, changing view modes, and navigating collections are now logged for analytics.

- **Chores**
  - Expanded internal event tracking capabilities to support more detailed analytics on user interactions throughout the interface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-05-27 08:17:14 +00:00
parent 8d3b20ecc7
commit 5033142a77
16 changed files with 110 additions and 16 deletions
+34 -3
View File
@@ -39,6 +39,7 @@ type WorkspaceEvents =
| 'export'
| 'openWorkspaceList';
type DocEvents =
| 'openDoc'
| 'createDoc'
| 'quickStart'
| 'renameDoc'
@@ -53,7 +54,10 @@ type DocEvents =
| 'bookmark'
| 'editProperty'
| 'editPropertyMeta'
| 'addProperty';
| 'addProperty'
| 'editDisplayMenu'
| 'navigateAllDocsRouter'
| 'navigatePinedCollectionRouter';
type EditorEvents =
| 'bold'
| 'italic'
@@ -77,7 +81,9 @@ type CollectionEvents =
| 'createCollection'
| 'deleteCollection'
| 'renameCollection'
| 'addDocToCollection';
| 'addDocToCollection'
| 'editCollection'
| 'addPinnedCollection';
type FolderEvents =
| 'createFolder'
| 'renameFolder'
@@ -340,12 +346,13 @@ interface PageEvents extends PageDivision {
'toggleFavorite',
'drop',
];
docs: ['createDoc', 'deleteDoc', 'linkDoc', 'drop'];
docs: ['createDoc', 'deleteDoc', 'linkDoc', 'drop', 'openDoc'];
collections: [
'createDoc',
'addDocToCollection',
'removeOrganizeItem',
'drop',
'editCollection',
];
folders: ['createDoc', 'drop'];
tags: ['createDoc', 'tagDoc', 'drop'];
@@ -489,15 +496,21 @@ interface PageEvents extends PageDivision {
};
allDocs: {
header: {
navigation: ['navigateAllDocsRouter', 'navigatePinedCollectionRouter'];
actions: ['createDoc', 'createWorkspace'];
displayMenu: ['editDisplayMenu'];
viewMode: ['editDisplayMenu'];
collection: ['editCollection', 'addPinnedCollection'];
};
list: {
doc: ['openDoc'];
docMenu: [
'createDoc',
'deleteDoc',
'openInSplitView',
'toggleFavorite',
'openInNewTab',
'openDocInfo',
];
};
};
@@ -505,6 +518,9 @@ interface PageEvents extends PageDivision {
docList: {
docMenu: ['removeOrganizeItem'];
};
collection: {
$: ['editCollection'];
};
};
tag: {};
trash: {};
@@ -766,6 +782,21 @@ export type EventArgs = {
control: 'Additional docs';
result: 'success' | 'failure';
};
editDisplayMenu: {
control:
| 'groupBy'
| 'orderBy'
| 'displayProperties'
| 'listViewOptions'
| 'quickActions';
type: string;
};
navigateAllDocsRouter: {
control: string;
};
navigatePinedCollectionRouter: {
control: 'all' | 'user-custom-collection';
};
};
// for type checking