Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

give immediate feedback when marking a build

  • Loading branch information...
commit 492e894b75482bd293bb218676a2dd633c508e12 1 parent 7ed5954
@scarytom scarytom authored
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
View
3  src/main/webapp/resources/cieye.css
@@ -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;
View
10 src/main/webapp/resources/cieye.js
@@ -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() {
Please sign in to comment.
Something went wrong with that request. Please try again.