Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions client/cz-graph-card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-card/paper-card.html">

<dom-module id="cz-graph-card">

<template>
<style>
:host {
display: block;
}

paper-card {
width: 100%;
}

.title {
overflow: hidden;
text-overflow: ellipsis;
white-space: pre;
color: #757575;
margin-bottom: 5px;
}
</style>

<paper-card heading="{{graph.heading}}">
<div class='card-content' id='cardview'>
<iframe width="600" height="371" seamless frameborder="0" scrolling="no"
src="{{graph.source}}">
</iframe>
</div>
</paper-card>
</template>

<script>
Polymer({
is: "cz-graph-card",

properties: {
graph: {
type: 'Object',
value: function() { return {} },
}
},

});
</script>

</dom-module>
59 changes: 59 additions & 0 deletions client/cz-graph-feed-source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-card/paper-card.html">
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-item/paper-item-body.html">

<link rel="import" href="cz-graph-card.html">

<dom-module id="cz-graph-feed-source">

<template>
</template>

<script>
Polymer({
is: "cz-graph-feed-source",

properties: {
graphs: {
type: 'Object',
value: function() { return []; },
observer: "graphsChanged"
}
},

created: function() {
//this.cards = [];
},

attached: function() {
registerSource('cz-config', 'graph-sources', function(graphConfig) {
var graphs = [];
for (var key in graphConfig) {
graphs.push(graphConfig[key]);
}
this.set('graphs', graphs);
}.bind(this));
},

graphsChanged: function(graphs) {
/*
this.cards.forEach(function(card, idx) {
removeCard(card);
}.bind(this));
console.log(this.cards);
this.set('cards', []);
console.log(this.cards);
*/
graphs.forEach(function(graph, idx) {
var card = document.createElement("cz-graph-card");
//card.priority = 'high';
card.graph = graph;
addCard(card);
//this.cards.push(card);
}.bind(this));
},

});
</script>
</dom-module>
4 changes: 2 additions & 2 deletions client/cz-registry.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
},

attached: function() {
this.async(this.update, 300000);
this.async(this.update, 10000);
},

update: function() {
var sources = Polymer.dom(this).children;
for (var i = 0; i < sources.length; i++) {
sources[i].update && sources[i].update();
}
this.async(this.update, 300000);
this.async(this.update, 10000);
},

registerSource: function(type, query, callback) {
Expand Down
11 changes: 11 additions & 0 deletions configs/animations-ave.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"cz-regression-dash",
"cz-review-latency-dash(false)",
"cz-review-load-dash",
"cz-graph-feed-source",
"cz-shields-dash(web-animations-next)"
],
"timezones": [
Expand All @@ -47,5 +48,15 @@
"tag": "cz-github-issues",
"query": {"repo": "web-animations/web-animations-js"}
}
},
"graph-sources": {
"all issue score": {
"heading": "DEF",
"source": "https://docs.google.com/a/google.com/spreadsheets/d/1rGOTr8Fr7ojLNMCThTT_saXmMomepaJ1pCP4d8HWTyY/pubchart?oid=369737749&amp;format=image"
},
"sub-quarterly score": {
"heading": "",
"source": "https://docs.google.com/a/google.com/spreadsheets/d/1rGOTr8Fr7ojLNMCThTT_saXmMomepaJ1pCP4d8HWTyY/pubchart?oid=2017104650&amp;format=image"
}
}
}