-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tasks): add telemetry events to tasks (#6246)
* feat(tasks): add telemetry events to tasks * fix(tasks): title case for events and reduce number of events * fix(tasks): remove comment added event from tasks.telemetry
- Loading branch information
1 parent
658262e
commit 346600c
Showing
5 changed files
with
85 additions
and
10 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
packages/sanity/src/tasks/__telemetry__/tasks.telemetry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import {defineEvent} from '@sanity/telemetry' | ||
|
||
// Task is created. | ||
export const TaskCreated = defineEvent({ | ||
name: 'Task Created', | ||
version: 1, | ||
description: 'A task is created', | ||
}) | ||
|
||
// Task status changed. %from% - %to% | ||
export const TaskStatusChanged = defineEvent<{ | ||
from: string | ||
to: string | ||
}>({ | ||
name: 'Task Status Changed', | ||
version: 1, | ||
description: 'Task status changed', | ||
}) | ||
|
||
// A task is duplicated | ||
export const TaskDuplicated = defineEvent({ | ||
name: 'Task Duplicated', | ||
version: 1, | ||
description: 'A task is duplicated', | ||
}) | ||
|
||
// A task is removed | ||
export const TaskRemoved = defineEvent({ | ||
name: 'Task Removed', | ||
version: 1, | ||
description: 'A task is removed', | ||
}) | ||
|
||
// The link to a task is copied | ||
export const TaskLinkCopied = defineEvent({ | ||
name: 'Task Link Copied', | ||
version: 1, | ||
description: 'The link to a task is copied', | ||
}) | ||
|
||
// User visited the studio through a link with a task | ||
export const TaskLinkOpened = defineEvent({ | ||
name: 'Task Link Opened', | ||
version: 1, | ||
description: 'User visited the studio through a link with a task', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters