Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ const PasskeyListScreen = () => {
<DeleteModal
passkey={passkey}
onDeleteClick={onDeleteClick}
hide={hide}
hide={() => {
// closing the confirmation without deleting => track as aborted deletion
void getConnectService().recordEventManageDeleteExplicitAbort();
hide();
}}
/>,
);
}}
Expand Down
1 change: 1 addition & 0 deletions packages/web-core/openapi/spec_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,7 @@ components:
manage-error,
manage-learn-more,
manage-credential-exists,
manage-delete-explicit-abort,
local-unlock
]

Expand Down
1 change: 1 addition & 0 deletions packages/web-core/src/api/v2/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2602,6 +2602,7 @@ export const PasskeyEventType = {
ManageError: 'manage-error',
ManageLearnMore: 'manage-learn-more',
ManageCredentialExists: 'manage-credential-exists',
ManageDeleteExplicitAbort: 'manage-delete-explicit-abort',
LocalUnlock: 'local-unlock'
} as const;

Expand Down
5 changes: 5 additions & 0 deletions packages/web-core/src/services/ConnectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ export class ConnectService {
return this.#recordEvent(PasskeyEventType.ManageErrorUnexpected, messageCode);
}

// user opened the delete confirmation in the passkey list but did not confirm the deletion
recordEventManageDeleteExplicitAbort() {
return this.#recordEvent(PasskeyEventType.ManageDeleteExplicitAbort);
}

recordEventAppendExplicitAbort(attestationOptions?: string) {
let challenge;
if (attestationOptions) {
Expand Down
Loading