Skip to content

Commit

Permalink
chore(telemetry): improve Collections' add/edit note constants
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 19, 2023
1 parent 9d58305 commit 079c445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/plus/collections/collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function ItemComponent({
icon="edit"
type="action"
onClickHandler={(e) => {
gleanClick(PLUS_COLLECTIONS.EDIT_NOTE);
gleanClick(PLUS_COLLECTIONS.ACTIONS_NOTE_EDIT);
return openBookmarkMenu(e);
}}
>
Expand Down Expand Up @@ -301,7 +301,7 @@ function ItemComponent({
icon="edit"
type="action"
onClickHandler={(e) => {
gleanClick(PLUS_COLLECTIONS.ADD_NOTE);
gleanClick(PLUS_COLLECTIONS.ACTIONS_NOTE_ADD);
return openBookmarkMenu(e);
}}
>
Expand Down
4 changes: 2 additions & 2 deletions client/src/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export const PLAYGROUND = "play_action";
export const AI_EXPLAIN = "ai_explain";

export const PLUS_COLLECTIONS = Object.freeze({
ACTIONS_NOTE_ADD: "collections_actions_note_add",
ACTIONS_NOTE_EDIT: "collections_actions_note_edit",
ARTICLE_ACTIONS_SELECT_OPENED: "article_actions_collection_select_opened",
ARTICLE_ACTIONS_NEW: "article_actions_new_collection",
ARTICLE_ACTIONS_OPENED: "article_actions_collections_opened",
BANNER_NEW: "collections_banner_new_collection",
ADD_NOTE: "collections_add_note",
EDIT_NOTE: "collections_edit_note",
NEW_MODAL_SUBMIT_ARTICLE_ACTIONS:
"new_collection_modal_submit_article_actions",
NEW_MODAL_SUBMIT_COLLECTIONS_PAGE:
Expand Down

0 comments on commit 079c445

Please sign in to comment.