Skip to content

Commit

Permalink
Issue #975 - Added a new label 'Needs Triage' to the list of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
deepthivenkat committed Jun 5, 2016
1 parent f1c1620 commit 13ae110
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
9 changes: 7 additions & 2 deletions webcompat/static/css/development/components/issue-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
--Issue-stateClose: var(--base-stateClose);
--Issue-stateFixed: var(--base-stateFixed);
--Issue-stateWorksForMe: var(--base-stateWorksForMe);
--Issue-stateNeedsTriage: var(--base-stateNeedsTriage);
}

/* Parent class */
Expand Down Expand Up @@ -56,15 +57,19 @@
.wc-IssueList--close {
border-left: 5px solid var(--Issue-stateClose);
}

.wc-IssueList--fixed {
border-left: 5px solid var(--Issue-stateFixed);
}

.wc-IssueList--worksforme {
border-left: 5px solid var(--Issue-stateWorksForMe);
}

.wc-IssueList--needstriage {
border-left: 5px solid var(--Issue-stateNeedsTriage);
}

.wc-IssueList--large {
font-size:1.2em;
border-width:8px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
--base-stateClose: #c5d1d5; /* light gray */
--base-stateFixed: #dda0dd; /* light purple */
--base-stateWorksForMe: #cfb53b; /* light yellow */
--base-stateNeedsTriage: #ff9900; /* orange */
}
17 changes: 15 additions & 2 deletions webcompat/static/css/development/components/tag.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
.wc-Tag--fixed.wc-Tag--label {
background-color:var(--base-stateFixed);
}

/* Tag Appears to work */
.wc-Tag--worksforme {
border-color:var(--base-stateWorksForMe);
Expand All @@ -141,4 +141,17 @@
.wc-Tag--worksforme.is-active,
.wc-Tag--worksforme.wc-Tag--label {
background-color:var(--base-stateWorksForMe);
}
}

/* Tag needs triaging */
.wc-Tag--needstriage {
border-color:var(--base-stateNeedsTriage);
}

/* event */
.wc-Tag--needstriage.wc-tag--filter:hover,
.wc-Tag--needstriage.wc-tag--filter:focus,
.wc-Tag--needstriage.is-active,
.wc-Tag--needstriage.wc-Tag--label {
background-color:var(--base-stateNeedsTriage);
}
4 changes: 4 additions & 0 deletions webcompat/static/js/lib/models/issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ issues.Issue = Backbone.Model.extend({
this.set('stateClass', 'worksforme');
return 'Appears to work';
}
if (labelsNames.indexOf('needstriage') > -1) {
this.set('stateClass', 'needstriage');
return 'Needs Triage';
}
//New is the default value.
this.set('stateClass', 'new');
return 'New Issue';
Expand Down

0 comments on commit 13ae110

Please sign in to comment.