Skip to content

Commit 0581e17

Browse files
author
hkedia321
committed
Merge branch 'S2606-patch'
2 parents 8e2315a + bae7f7c commit 0581e17

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/popup.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ <h6 class="center">
5050
<input type="checkbox" class="filled-in" id="showClosedLabel" />
5151
<label for="showClosedLabel">Show Closed Label</label>
5252
</div>
53+
<div class="input-field col s12">
54+
<input placeholder="Reason" id="UserReason" type="text">
55+
<label for="UserReason">What is stopping you from doing your work?</label>
56+
</div>
5357
<div class="col center s12">
5458
<br /><br />
5559
<button id="refresh" class="waves-effect waves-light btn refresh"><i class="fa fa-refresh" aria-hidden="true"></i> Refresh this page to apply changes</button>

src/scripts/scrumHelper.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ var githubPrsReviewDataProccessed = {};
1414
var showOpenLabel=true;
1515
var enableToggle=true;
1616
var showClosedLabel=true;
17+
var userReason="";
18+
1719
var pr_merged_button="<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #6f42c1;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--purple\">closed</div>";
1820
var pr_unmerged_button="<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #2cbe4e;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--green\">open</div>";
1921

2022
var issue_closed_button="<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #6f42c1;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--purple\">closed</div>";
2123
var issue_opened_button="<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #2cbe4e;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--green\">open</div>";
2224

2325
var linkStyle="";
24-
chrome.storage.local.get(["githubUsername","enableToggle","startingDate","endingDate","showOpenLabel","showClosedLabel"],function(items){
26+
27+
chrome.storage.local.get(["githubUsername","enableToggle","startingDate","endingDate","showOpenLabel","showClosedLabel","UserReason"],function(items){
2528
if(!items.enableToggle){
2629
enableToggle=items.enableToggle;
2730
}
@@ -45,6 +48,12 @@ chrome.storage.local.get(["githubUsername","enableToggle","startingDate","ending
4548
pr_merged_button="";
4649
issue_closed_button="";
4750
}
51+
if(items.UserReason){
52+
userReason=items.UserReason;
53+
}
54+
if(!items.UserReason){
55+
userReason="No Blocker at the moment";
56+
}
4857
});
4958

5059
// fetch github data
@@ -114,7 +123,7 @@ function writeScrumBody(){
114123
<b>2. What I plan to do this week?</b>\
115124
<br>"+nextWeekUl+"<br><br>\
116125
<b>3. What is stopping me from doing my work?</b>\
117-
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No blocker at the moment</p>";
126+
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+userReason+"</p>";
118127
}
119128

120129
function getProject(){

0 commit comments

Comments
 (0)