Skip to content

Commit

Permalink
feat(auto-tracker): Add auto tracking capability to extension
Browse files Browse the repository at this point in the history
  • Loading branch information
with-shrey committed Sep 25, 2024
1 parent 8a2b141 commit ec3b457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/content/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ togglbutton.render(
className: "github",
description: description,
projectName: projectElem && projectElem.textContent,
autoTrackerKey: "pull-issue"
});

div.appendChild(link);
Expand Down Expand Up @@ -83,6 +84,7 @@ togglbutton.render(
className: "github",
description: description,
projectName: projectElem ? projectElem.textContent.trim() : "",
autoTrackerKey: "peek"
});

div.appendChild(link);
Expand Down Expand Up @@ -118,6 +120,7 @@ togglbutton.render(
className: "github",
description: getDescription,
projectName: projectElem && projectElem.textContent,
autoTrackable: true
});

const wrapper = createTag(
Expand Down
6 changes: 4 additions & 2 deletions src/content/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ togglbutton.render(

const link = togglbutton.createTimerLink({
className: 'notion',
description: getDescription
description: getDescription,
autoTrackerKey: "side_peek"
});

const wrapper = createWrapper(link);
Expand Down Expand Up @@ -75,7 +76,8 @@ togglbutton.render(

const link = togglbutton.createTimerLink({
className: 'notion',
description: getDescription
description: getDescription,
autoTrackerKey: "document"
});

const wrapper = createWrapper(link);
Expand Down

0 comments on commit ec3b457

Please sign in to comment.