Permalink
Browse files

give immediate feedback when marking a build

  • Loading branch information...
scarytom committed Aug 4, 2012
1 parent 7ed5954 commit 492e894b75482bd293bb218676a2dd633c508e12
Showing with 11 additions and 3 deletions.
  1. +0 −1 TODO
  2. +3 −0 src/main/webapp/resources/cieye.css
  3. +8 −2 src/main/webapp/resources/cieye.js
View
1 TODO
@@ -1,5 +1,4 @@
support for Cruise/Go, Bamboo, AnthillPro, CI Joe, Buildomatic, cruisecontrol?
-give immediate feedback when marking a build
indicate when targets are pending a build, but are in the queue
have another think on logging, and perhaps expose the log as a page.
ensure identities have no 'business' meaning
@@ -47,6 +47,9 @@ div.target.BROKEN {
color: #ffffff;
background-color: #aa0000;
}
+div.target.BROKEN.marked {
+ box-shadow: 0px 15px 15px rgba(253, 146, 21, 0.7) inset, 0px -15px 15px rgba(253, 146, 21, 0.7) inset;
+}
div.target.UNDER_INVESTIGATION {
color: #ffffff;
background-color: #f87217;
@@ -92,7 +92,8 @@ ORG.NETMELODY.CIEYE.newTargetWidget = function(targetJson) {
sponsorDiv = $("<div></div>").addClass("sponsors"),
buildsDiv = $("<div></div>"),
sponsorMugshots = {},
- displayedMugshots = {};
+ displayedMugshots = {},
+ markedOn = 0;
function sortedSponsors(unsortedSponsors) {
return unsortedSponsors.sort(function(a, b) {
@@ -121,6 +122,7 @@ ORG.NETMELODY.CIEYE.newTargetWidget = function(targetJson) {
buildsDiv.append(ORG.NETMELODY.CIEYE.newBuildWidget(buildJson).getContent());
});
+ targetDiv.toggleClass("marked", (new Date() - markedOn) < 12000);
targetDiv.toggleClass("building", newTargetJson.builds.length !== 0);
if (newTargetJson.builds.length === 0 && newTargetJson.status === "GREEN") {
@@ -153,7 +155,11 @@ ORG.NETMELODY.CIEYE.newTargetWidget = function(targetJson) {
}
function markAs(note) {
- return function() { $.post("addNote", { "id": targetJson.id, "note": note }); };
+ return function() {
+ $.post("addNote", { "id": targetJson.id, "note": note });
+ markedOn = new Date() - 1;
+ targetDiv.addClass("marked");
+ };
}
function doh() {

0 comments on commit 492e894

Please sign in to comment.