Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
df393b4
using graphQL
vedansh-5 Jun 22, 2025
baa434e
dummy commit 1
vedansh-5 Jun 22, 2025
60fdf3e
dummy commit 2
vedansh-5 Jun 22, 2025
733f042
added forceGithubDataRefresh function
vedansh-5 Jun 22, 2025
bafecf4
commit formatting
vedansh-5 Jun 22, 2025
94302db
checkbox in UI
vedansh-5 Jun 22, 2025
9b1dfcb
fixed the public to authenticated vulnerability
vedansh-5 Jun 25, 2025
6102295
Merge branch 'master' into commits
vedansh-5 Jun 26, 2025
499cfc8
added missed calls during rebase
vedansh-5 Jun 26, 2025
4303dc8
taking inputs from user for number of commits
vedansh-5 Jun 26, 2025
92cea91
re-rendering on nnumber of commits change
vedansh-5 Jun 26, 2025
191ce7a
Merge branch 'master' into commits
vedansh-5 Jun 26, 2025
fac353b
removed the bug causing calls
vedansh-5 Jun 26, 2025
90681a7
changed commit input size
vedansh-5 Jun 27, 2025
323ca7a
removed username from commit list
vedansh-5 Jun 27, 2025
1250768
Merge branch 'master' into commits
vedansh-5 Jun 27, 2025
b1bd7c1
async function writeGithubIssues()
vedansh-5 Jun 27, 2025
82a82da
post merge changes
vedansh-5 Jun 27, 2025
ef8f56e
removed duplicacy interval
vedansh-5 Jun 29, 2025
385d745
finetuned intervals
vedansh-5 Jun 29, 2025
22f3c16
commit fetching outside dateScope
vedansh-5 Jun 29, 2025
3226c3b
removed commits input, using date scope for displaying commits
vedansh-5 Jun 30, 2025
aa0dcd1
existing PR
vedansh-5 Jun 30, 2025
d0d45be
custom date
vedansh-5 Jul 1, 2025
e323273
dateBUg
vedansh-5 Jul 2, 2025
65d07f8
Merge branch 'master' into commits
vedansh-5 Jul 2, 2025
e44d0fb
interval race cond
vedansh-5 Jul 3, 2025
3b6164c
commits only for exisiting PRs
vedansh-5 Jul 3, 2025
a9fd5ac
Delete scrumHelperDummy.js
vedansh-5 Jul 4, 2025
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
25 changes: 24 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,28 @@ hr,
}

.dark-mode .token-preview-char {
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.popup-commit-list {
margin: 8px 0 8px 18px;
padding-left: 0;
border-left: 2px solid #e0e7ff;
background: #f8fafc;
border-radius: 6px;
}
.popup-commit-list li {
list-style: none;
margin: 8px 0 8px 0;
padding-left: 0;
}
.popup-commit-list .commit-meta {
color: #64748b;
font-size: 11px;
margin-left: 8px;
}
.popup-commit-list a {
color: #2563eb;
font-weight: 500;
text-decoration: underline;
}
20 changes: 17 additions & 3 deletions src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,22 @@ <h4>Your Github Token</h4>
<i id="tokenEyeIcon" class="fa fa-eye text-gray-600"></i>
</button>
</div>
<input id="githubToken" type="password"
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 pr-10"
placeholder="Required for making authenticated requests">
<input id="githubToken" type="password" class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 pr-10" placeholder="Required for making authenticated requests">



<div class="col s12 my-4 ">
<div class="flex items-center gap-2">
<input type="checkbox" id="showCommits" checked class="form-checkbox h-4 w-4 text-blue-600 ">
<label id="showCommitsLabel" for="showCommits" class="text-gray-700 font-medium text-sm flex items-center gap-1 ">Show commits made within date range in Open PRs</label> <span class="tooltip-container">
<i class="fa fa-question-circle question-icon"></i>
<span class="tooltip-bubble">
Github Token required.
</span>
</span>
</div>
</div>

<p class="text-sm font-medium">Enter cache TTL <span class="text-sm font-normal">(in minutes)</span>
<span class="tooltip-container">
<i class="fa fa-question-circle question-icon"></i>
Expand All @@ -186,6 +199,7 @@ <h4>Your Github Token</h4>
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2"
placeholder="Write Cache TTL in minutes (Default 10 minutes)">
</div>

<div class="">
<button id="refreshCache"
class="w-full mt-3 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded flex items-center justify-center gap-2 transition-colors duration-200">
Expand Down
15 changes: 15 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let startingDateElement = document.getElementById('startingDate');
let endingDateElement = document.getElementById('endingDate');
let showOpenLabelElement = document.getElementById('showOpenLabel');
let userReasonElement = document.getElementById('userReason');
let showCommitsElement = document.getElementById('showCommits');

function handleBodyOnLoad() {
chrome.storage.local.get(
Expand All @@ -24,6 +25,7 @@ function handleBodyOnLoad() {
'yesterdayContribution',
'cacheInput',
'githubToken',
'showCommits',
],
(items) => {
if (items.githubUsername) {
Expand Down Expand Up @@ -77,6 +79,12 @@ function handleBodyOnLoad() {
yesterdayContributionElement.checked = true;
handleYesterdayContributionChange();
}
if (items.showCommits){
showCommitsElement.checked = items.showCommits;
} else {
showCommitsElement.checked = false;
handleShowCommitsChange();
}
},
);
}
Expand Down Expand Up @@ -241,12 +249,19 @@ function handleUserReasonChange() {
let value = userReasonElement.value;
chrome.storage.local.set({ userReason: value });
}

function handleShowCommitsChange() {
let value = showCommitsElement.checked;
chrome.storage.local.set({ showCommits: value });
}

enableToggleElement.addEventListener('change', handleEnableChange);
githubUsernameElement.addEventListener('keyup', handleGithubUsernameChange);
githubTokenElement.addEventListener('keyup', handleGithubTokenChange);
cacheInputElement.addEventListener('keyup', handleCacheInputChange);
projectNameElement.addEventListener('keyup', handleProjectNameChange);
startingDateElement.addEventListener('change', handleStartingDateChange);
showCommitsElement.addEventListener('change', handleShowCommitsChange);
endingDateElement.addEventListener('change', handleEndingDateChange);
lastWeekContributionElement.addEventListener('change', handleLastWeekContributionChange);
yesterdayContributionElement.addEventListener('change', handleYesterdayContributionChange);
Expand Down
4 changes: 1 addition & 3 deletions src/scripts/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,7 @@ document.getElementById('refreshCache').addEventListener('click', async function

try {
// Clear local cache
await new Promise(resolve => {
chrome.storage.local.remove('githubCache', resolve);
});
await forceGithubDataRefresh();

// Clear the scrum report
const scrumReport = document.getElementById('scrumReport');
Expand Down
Loading