mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 17:39:55 +08:00
feat(core): workspace embedding tracking (#12409)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added event tracking for workspace embedding settings, including toggling embedding, uploading attachments, and selecting ignored documents. This enhances visibility into user interactions within the embedding settings panel. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -182,6 +182,13 @@ type MeetingEvents =
|
||||
type MentionEvents = 'mentionMember' | 'noAccessPrompted';
|
||||
// END SECTION
|
||||
|
||||
// SECTION: workspace embedding
|
||||
type WorkspaceEmbeddingEvents =
|
||||
| 'toggleWorkspaceEmbedding'
|
||||
| 'addAdditionalDocs'
|
||||
| 'addIgnoredDocs';
|
||||
// END SECTION
|
||||
|
||||
type UserEvents =
|
||||
| GeneralEvents
|
||||
| AppEvents
|
||||
@@ -204,7 +211,8 @@ type UserEvents =
|
||||
| NotificationEvents
|
||||
| IntegrationEvents
|
||||
| MeetingEvents
|
||||
| MentionEvents;
|
||||
| MentionEvents
|
||||
| WorkspaceEmbeddingEvents;
|
||||
|
||||
interface PageDivision {
|
||||
[page: string]: {
|
||||
@@ -283,6 +291,11 @@ interface PageEvents extends PageDivision {
|
||||
'completeIntegrationImport',
|
||||
];
|
||||
meetings: ['toggleMeetingFeatureFlag'];
|
||||
indexerEmbedding: [
|
||||
'toggleWorkspaceEmbedding',
|
||||
'addAdditionalDocs',
|
||||
'addIgnoredDocs',
|
||||
];
|
||||
};
|
||||
cmdk: {
|
||||
recent: ['recentDocs'];
|
||||
@@ -724,6 +737,21 @@ export type EventArgs = {
|
||||
time: number;
|
||||
success: boolean;
|
||||
};
|
||||
toggleWorkspaceEmbedding: {
|
||||
type: 'Embedding';
|
||||
control: 'Workspace embedding';
|
||||
option: 'on' | 'off';
|
||||
};
|
||||
addAdditionalDocs: {
|
||||
type: 'Embedding';
|
||||
control: 'Select doc';
|
||||
docType: string;
|
||||
};
|
||||
addIgnoredDocs: {
|
||||
type: 'Embedding';
|
||||
control: 'Additional docs';
|
||||
result: 'success' | 'failure';
|
||||
};
|
||||
};
|
||||
|
||||
// for type checking
|
||||
|
||||
Reference in New Issue
Block a user