From fa6bccac787fd04c90b8391f2ece79162d2ecb21 Mon Sep 17 00:00:00 2001 From: Shrey Gupta Date: Wed, 22 May 2024 07:31:00 +0300 Subject: [PATCH] feat(auto-tracker): Add auto tracking capability to extension --- src/content/github.js | 3 +++ src/content/notion.js | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/content/github.js b/src/content/github.js index 5cacdbe24..ae35d3e49 100644 --- a/src/content/github.js +++ b/src/content/github.js @@ -53,6 +53,7 @@ togglbutton.render( className: "github", description: description, projectName: projectElem && projectElem.textContent, + autoTrackerKey: "pull-issue" }); div.appendChild(link); @@ -83,6 +84,7 @@ togglbutton.render( className: "github", description: description, projectName: projectElem ? projectElem.textContent.trim() : "", + autoTrackerKey: "peek" }); div.appendChild(link); @@ -110,6 +112,7 @@ togglbutton.render( className: "github", description: description, projectName: projectElem && projectElem.textContent, + autoTrackerKey: "project" }); const wrapper = createTag( diff --git a/src/content/notion.js b/src/content/notion.js index 2a2da8f33..f1a5b8b47 100644 --- a/src/content/notion.js +++ b/src/content/notion.js @@ -26,7 +26,8 @@ togglbutton.render( const link = togglbutton.createTimerLink({ className: 'notion', - description: getDescription + description: getDescription, + autoTrackerKey: "side_peek" }); const wrapper = createWrapper(link); @@ -75,7 +76,8 @@ togglbutton.render( const link = togglbutton.createTimerLink({ className: 'notion', - description: getDescription + description: getDescription, + autoTrackerKey: "document" }); const wrapper = createWrapper(link);