Changeset 161454 in webkit
- Timestamp:
- Jan 7, 2014 2:06:08 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotBuilderQueueView.js
r161440 r161454 144 144 } 145 145 146 var title = document.createElement("div"); 147 title.className = "build-logs-popover-title"; 148 title.textContent = iteration.queue.id; 149 content.appendChild(title); 146 this._addIterationHeadingToPopover(iteration, content); 147 this._addDividerToPopover(content); 150 148 151 var builderPageLine = document.createElement("a");152 builderPageLine.className = "build-page-link";153 builderPageLine.href = iteration.queue.buildbot.buildPageURLForIteration(iteration);154 builderPageLine.textContent = "build #" + iteration.id;155 builderPageLine.target = "_blank";156 content.appendChild(builderPageLine);157 158 149 var logsHeadingLine = document.createElement("div"); 159 150 logsHeadingLine.className = "build-logs-heading"; -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js
r161277 r161454 167 167 var linesForInternal = this._popoverLinesForCommitRange(internalTrac, latestProductiveIteration.internalRevision + 1, internalTrac.latestRecordedRevisionNumber); 168 168 169 if (linesForOpenSource.length && linesForInternal.length) { 170 var divider = document.createElement("div"); 171 divider.className = "divider"; 172 content.appendChild(divider); 173 } 169 if (linesForOpenSource.length && linesForInternal.length) 170 this._addDividerToPopover(content); 174 171 175 172 for (var i = 0; i != linesForInternal.length; ++i) … … 192 189 return false; 193 190 191 var line = document.createElement("div"); 192 line.className = "title"; 193 line.textContent = "new commits in this build"; 194 content.appendChild(line); 195 this._addDividerToPopover(content); 196 194 197 for (var i = 0; i != linesForCommits.length; ++i) 195 198 content.appendChild(linesForCommits[i]); … … 209 212 var line = document.createElement("div"); 210 213 line.className = "no-commits"; 211 line.textContent = "no new commits in this build bot queue iteration";214 line.textContent = "no new commits in this build"; 212 215 213 216 content.appendChild(line); … … 222 225 _revisionPopoverContentForIteration: function(iteration, internal) 223 226 { 224 var content Element= document.createElement("span");225 content Element.textContent = "r" + (internal ? iteration.internalRevision : iteration.openSourceRevision);226 content Element.classList.add("revision-number");227 var content = document.createElement("span"); 228 content.textContent = "r" + (internal ? iteration.internalRevision : iteration.openSourceRevision); 229 content.classList.add("revision-number"); 227 230 228 231 var previousIteration = iteration.previousProductiveIteration; … … 234 237 }; 235 238 if (context.firstRevision <= context.lastRevision) 236 new PopoverTracker(content Element, this._presentPopoverForRevisionRange.bind(this), context);239 new PopoverTracker(content, this._presentPopoverForRevisionRange.bind(this), context); 237 240 else 238 new PopoverTracker(contentElement, this._presentNoChangePopover.bind(this), context); 239 } 240 241 return contentElement; 241 new PopoverTracker(content, this._presentNoChangePopover.bind(this), context); 242 } 243 244 return content; 245 }, 246 247 _addIterationHeadingToPopover: function(iteration, content, additionalText) 248 { 249 var title = document.createElement("div"); 250 title.className = "popover-iteration-heading"; 251 252 var queueName = document.createElement("span"); 253 queueName.className = "queue-name"; 254 queueName.textContent = iteration.queue.id; 255 title.appendChild(queueName); 256 257 var buildbotLink = document.createElement("a"); 258 buildbotLink.className = "buildbot-link"; 259 buildbotLink.textContent = "build #" + iteration.id; 260 buildbotLink.href = iteration.queue.buildbot.buildPageURLForIteration(iteration); 261 buildbotLink.target = "_blank"; 262 title.appendChild(buildbotLink); 263 264 if (additionalText) { 265 var additionalTextElement = document.createElement("span"); 266 additionalTextElement.className = "additional-text"; 267 additionalTextElement.textContent = additionalText; 268 title.appendChild(additionalTextElement); 269 } 270 271 content.appendChild(title); 272 }, 273 274 _addDividerToPopover: function(content) 275 { 276 var divider = document.createElement("div"); 277 divider.className = "divider"; 278 content.appendChild(divider); 242 279 }, 243 280 -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js
r161440 r161454 141 141 content.className = "test-results-popover"; 142 142 143 this._addIterationHeadingToPopover(iteration, content, "layout test failures"); 144 this._addDividerToPopover(content); 145 143 146 if (!iteration.layoutTestResults.regressions) { 144 147 var message = document.createElement("div"); … … 200 203 content.className = "test-results-popover"; 201 204 205 this._addIterationHeadingToPopover(iteration, content, "layout test failures"); 206 this._addDividerToPopover(content); 207 202 208 var loadingIndicator = document.createElement("div"); 203 209 loadingIndicator.className = "loading-indicator"; … … 237 243 content.className = "test-results-popover"; 238 244 245 this._addIterationHeadingToPopover(iteration, content); 246 this._addDividerToPopover(content); 247 239 248 if (layoutTestResults.failureCount) { 240 249 var message = (layoutTestResults.tooManyFailures ? layoutTestResults.failureCount + "\uff0b" : layoutTestResults.failureCount) + "\u00a0" + -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/QueueView.css
r161440 r161454 41 41 } 42 42 43 .commit-history-popover > .pending-commit, 44 .commit-history-popover > .no-commits { 43 .popover .divider { 44 height: 7px; 45 } 46 47 .popover .popover-iteration-heading .buildbot-link, 48 .popover .popover-iteration-heading .additional-text { 49 padding-left: 5px; 50 } 51 52 .commit-history-popover { 45 53 font-family: "HelveticaNeue-Light", "Helvetica Neue", sans-serif; 46 54 color: rgb(145, 135, 95); … … 60 68 } 61 69 62 .commit-history-popover > .divider { 63 height: 7px; 70 .build-logs-popover { 71 font-family: "HelveticaNeue-Light", "Helvetica Neue", sans-serif; 72 color: rgb(145, 135, 95); 73 font-size: 12px; 74 text-align: left; 75 padding: 1px 6px 1px 6px; 64 76 } 65 77 -
trunk/Tools/ChangeLog
r161441 r161454 1 2014-01-07 Alexey Proskuryakov <ap@apple.com> 2 3 Popovers at build.webkit.org/dashboard could have titles 4 https://bugs.webkit.org/show_bug.cgi?id=126495 5 6 Reviewed by Timothy Hatcher. 7 8 Added titles to all popovers except for pending revisions one, which I would like 9 to improve more (probably add an ETA). 10 11 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotBuilderQueueView.js: 12 (BuildbotBuilderQueueView.prototype._presentPopoverFailureLogs): Moved code for 13 adding a title to base class. 14 15 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js: 16 (BuildbotQueueView.prototype._presentPopoverForPendingCommits): Moved code for inserting 17 a divider to a separate function. 18 (BuildbotQueueView.prototype._presentPopoverForRevisionRange): Added a title. 19 (BuildbotQueueView.prototype._presentNoChangePopover): Updated the text to match 20 title from above function. 21 (BuildbotQueueView.prototype._revisionPopoverContentForIteration): Renamed "contentElement" 22 variable to "content" to match all other code. 23 (BuildbotQueueView.prototype._addIterationHeadingToPopover): Added. 24 (BuildbotQueueView.prototype._addDividerToPopover): Added. 25 26 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js: 27 (BuildbotTesterQueueView.prototype._popoverContentForLayoutTestRegressions): Add a title. 28 (BuildbotTesterQueueView.prototype._presentPopoverForLayoutTestRegressions): Ditto. 29 (BuildbotTesterQueueView.prototype._presentPopoverForMultipleFailureKinds): Ditto. 30 31 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/QueueView.css: 32 1 33 2014-01-07 Alexey Proskuryakov <ap@apple.com> 2 34
Note: See TracChangeset
for help on using the changeset viewer.