Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add display of story points remaining for epic in epic table list.

  • Loading branch information...
commit 78d1d52770096ccc2f7797343d684a4035a7ef77 1 parent 0640327
@abierbaum abierbaum authored
View
4 README.md
@@ -15,6 +15,10 @@ By default PT will automatically handle epics and mark them as done as soon as a
When clicking on epics and opening epics from the Epic list panel, the default behavior is to continue opening one new panel for each epic you click on. This makes it difficult to rapidly scan through a number of epics looking at their detailed stories. The extensions changes this behavior and will close all epic story panels before opening the new panel.
+* Display count of story points remaining in epic panel
+
+When displaying the epic panel we display the number of remaining story points to the right of the progress chart. This allows for easier comparison of large number of epics when reviewing.
+
* Allow dragging of panels
We include the excellent extension for allowing rearrange_panels.
View
2  build/autoupdate.xml
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lekkffheaefgbegicmemdmnafkeikcfj'>
- <updatecheck codebase='http://not.here.compivotal_tracker_tweaks-0.3.0.crx' version='0.3.0' />
+ <updatecheck codebase='http://not.here.compivotal_tracker_tweaks-0.4.0.crx' version='0.4.0' />
</app>
</gupdate>
View
BIN  build/pivotal_tracker_tweaks-0.4.0.crx
Binary file not shown
View
11 extension/css/ptt_style.css
@@ -0,0 +1,11 @@
+/**
+* CSS Overrides
+*/
+.epic_remaining_points {
+ float: right;
+ width: 3%;
+ text-align: right;
+}
+.epicTable .epic_details_graph {
+ width: 29% !important;
+}
View
21 extension/epic_overrides.js
@@ -36,4 +36,25 @@ if(window.app) {
app.layout.showEpicStoriesPanel(this.model.id());
};
+ // Override the epic stories update method to add count to the epic
+ // table that shows the number of points remaining
+ var orig_updateStoriesInEpicGraph = EpicPreviewWidget.prototype._updateStoriesInEpicGraph;
+ EpicPreviewWidget.prototype._updateStoriesInEpicGraph = function() {
+ orig_updateStoriesInEpicGraph.apply(this, arguments);
+ if(!this._graphElement) {
+ return;
+ }
+
+ // Lazy add a div for remaining point count.
+ var $point_count = this.j('.epic_remaining_points');
+ if($point_count.length === 0) {
+ $point_count = j('<div class="epic_remaining_points"></div>');
+ this.j(this._graphElement).before($point_count);
+ }
+ // compute the updated value and set it in the DOM.
+ var pseudo_points = this.model.getPseudopoints();
+ var remaining_points = pseudo_points.unscheduled + pseudo_points.unstarted;
+ $point_count.html('' + remaining_points);
+ };
+
}
View
4 extension/manifest.json
@@ -1,6 +1,6 @@
{
"name": "Pivotal Tracker Tweaks",
- "version": "0.3.0",
+ "version": "0.4.0",
"description": "",
"manifest_version": 2,
@@ -22,7 +22,7 @@
"src/epic_hook.js"
],
- "css": []
+ "css": ["css/ptt_style.css"]
}
],
View
2  extension/src/epic_hook.js
@@ -1,4 +1,4 @@
-/*global PTT:false, inject_script:false */
+/*global PTT:false */
PTT.onOptionsLoaded(function(options) {
View
2  jshintrc
@@ -25,6 +25,8 @@
"globals": {
"_": false,
+ "$": false,
+ "j": false,
"chrome": false,
"Epic": false
}
Please sign in to comment.
Something went wrong with that request. Please try again.