-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(structure): update telemetry names and event properties
- Loading branch information
Showing
2 changed files
with
10 additions
and
19 deletions.
There are no files selected for viewing
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
20 changes: 7 additions & 13 deletions
20
...cture/panes/document/documentPanel/banners/__telemetry__/DraftLiveEditBanner.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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
import {defineEvent} from '@sanity/telemetry' | ||
|
||
interface TypeInfo { | ||
liveEditResolveType: 'publish' | 'discard' | ||
} | ||
|
||
/** | ||
* When a draft in a live edit document is published | ||
* @internal | ||
*/ | ||
export const PublishedLiveEditDraft = defineEvent({ | ||
name: 'Resolve liveEdit by publishing draft', | ||
version: 1, | ||
description: 'User published a draft when a draft of a live edit document to continue editing', | ||
}) | ||
|
||
/* | ||
* When a draft in a live edit document is discarded | ||
* @internal | ||
*/ | ||
export const DiscardedLiveEditDraft = defineEvent({ | ||
name: 'Resolve liveEdit by discarding draftt', | ||
export const ResolvedLiveEdit = defineEvent<TypeInfo>({ | ||
name: 'Resolved LiveEdit Draft', | ||
version: 1, | ||
description: 'User discarded a draft when a draft of a live edit document to continue editing', | ||
description: 'User resolved a draft of a live edit document to continue editing', | ||
}) |