Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: vrsource/pivotal-tracker-tweaks
base: 496a3d30a5
...
head fork: vrsource/pivotal-tracker-tweaks
compare: 78d1d52770
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 11, 2013
@abierbaum abierbaum Move the injection back into the main script so it happens immediately.
With it in the options callback, there is a race to see if it is
run before pivotal updates the UI the first time.
0640327
@abierbaum abierbaum Add display of story points remaining for epic in epic table list. 78d1d52
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
5 extension/src/epic_hook.js
@@ -1,7 +1,8 @@
-/*global PTT:false, inject_script:false */
+/*global PTT:false */
PTT.onOptionsLoaded(function(options) {
+
// Only load this tool if the user has not disabled it.
if (! options.epicOverrides) {
console.log('Epic Overrides plugin has been disabled');
@@ -15,7 +16,7 @@ PTT.onOptionsLoaded(function(options) {
// - Add option to split the epic overrides into two
// - OR determine way to pass options into the injected script as arguments
//
- inject_script('epic_overrides.js');
+ //inject_script('epic_overrides.js');
/*
var last_nodes = [],
View
4 extension/src/pt_tweak_main.js
@@ -15,6 +15,10 @@ function inject_script(scriptFile) {
(document.head||document.documentElement).appendChild(s);
}
+// Code to inject immediately
+// todo: get this loaded as part of configuration
+inject_script('epic_overrides.js');
+
(function(exports) {
function App() {
View
2  jshintrc
@@ -25,6 +25,8 @@
"globals": {
"_": false,
+ "$": false,
+ "j": false,
"chrome": false,
"Epic": false
}

No commit comments for this range

Something went wrong with that request. Please try again.