Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2774)

Unified Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 476903003: Add a "Link Bug" button to associate a bug with a failure (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebasd Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/test/unit-tests.html ('k') | Tools/GardeningServer/ui/ct-failure-card-tests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-failure-card.html
diff --git a/Tools/GardeningServer/ui/ct-failure-card.html b/Tools/GardeningServer/ui/ct-failure-card.html
index 054aa77bdd90a2956b1bec1609be33fc398fcbbf..527efc825a35d39fb63a3dd9827ce29724810c62 100644
--- a/Tools/GardeningServer/ui/ct-failure-card.html
+++ b/Tools/GardeningServer/ui/ct-failure-card.html
@@ -7,8 +7,11 @@ found in the LICENSE file.
<link rel="import" href="ct-builder-grid.html">
<link rel="import" href="ct-commit-list.html">
<link rel="import" href="ct-test-list.html">
+<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
+<link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html">
+<link rel="import" href="../bower_components/paper-input/paper-input.html">
-<polymer-element name="ct-failure-card" attributes="group commits tree">
+<polymer-element name="ct-failure-card" attributes="group commits tree bug">
<template>
<style>
:host {
@@ -75,7 +78,19 @@ found in the LICENSE file.
<template if="{{ group.isSnoozed }}">
<paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></paper-button>
</template>
+ <paper-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></paper-button>
+ <template if="{{ group.bug !== undefined }}">
+ <div>
+ <a href="{{ group.bug }}">
+ {{ group.bugLabel }}</a>
+ </div>
+ </template>
</div>
+
+ <paper-dialog heading="Enter bug number" transition="paper-transition-center" id="bugDialog">
+ <paper-input label="Bug# or URL" floatingLabel id="bug"></paper-input>
+ <paper-button label="OK" on-tap="{{ saveBug }}" affirmative autofocus id="dialogOk"></paper-button>
+ </paper-dialog>
</template>
<script>
Polymer({
@@ -99,7 +114,16 @@ found in the LICENSE file.
if (!this.group)
return undefined;
return this.group.commitList(this.commits);
- }
+ },
+
+ linkBug: function() {
+ this.$.bug.value = this.group.bug;
+ this.$.bugDialog.toggle();
+ },
+
+ saveBug: function() {
+ this.group.setBug(this.$.bug.value);
+ },
});
</script>
</polymer-element>
« no previous file with comments | « Tools/GardeningServer/test/unit-tests.html ('k') | Tools/GardeningServer/ui/ct-failure-card-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698