Update kanbn dependency and burndown chart

This commit is contained in:
Gordon 2021-04-30 18:21:41 +01:00
parent d0b53c9443
commit d1ac481f2f
5 changed files with 10598 additions and 31155 deletions

View File

@ -1,3 +1,8 @@
# 0.7.2
* Updated kanbn dependency, task workload calculations are now working correctly on burndown chart
* Task creation events are now reported correctly on burndown chart
# 0.7.1 # 0.7.1
* Fixed bug where task editor would reset to Create mode after renaming a task * Fixed bug where task editor would reset to Create mode after renaming a task
@ -6,7 +11,7 @@
# 0.7.0 # 0.7.0
* Markdown preview for task descriptions * Markdown preview for task descriptions
* Task comments now render as comments, toggle comment editing by clicking the new edit button next to each comment * Task comments now render as comments, toggle comment editing by clicking the edit button next to each comment
# 0.6.0 # 0.6.0

21296
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -88,7 +88,7 @@
} }
}, },
"dependencies": { "dependencies": {
"@basementuniverse/kanbn": "^0.6.0", "@basementuniverse/kanbn": "^0.6.1",
"dateformat": "^4.5.1", "dateformat": "^4.5.1",
"formik": "^2.2.6", "formik": "^2.2.6",
"git-user-name": "^2.0.0", "git-user-name": "^2.0.0",
@ -117,6 +117,7 @@
"@types/jest": "^23.3.14", "@types/jest": "^23.3.14",
"@types/lodash": "^4.14.168", "@types/lodash": "^4.14.168",
"@types/node": "^10.17.56", "@types/node": "^10.17.56",
"@types/recharts": "^1.8.19",
"@types/uuid": "^8.3.0", "@types/uuid": "^8.3.0",
"react-scripts": "^2.1.8", "react-scripts": "^2.1.8",
"rewire": "^4.0.1", "rewire": "^4.0.1",

View File

@ -79,7 +79,7 @@ const Burndown = ({ name, sprints, burndownData, dateFormat, vscode }: {
setSprintMode(false); setSprintMode(false);
refreshBurndownData({ sprintMode: false }); refreshBurndownData({ sprintMode: false });
}; };
const chartData = burndownData.series.length > 0 const chartData = burndownData.series.length > 0
? burndownData.series[0].dataPoints.map(dataPoint => ({ ? burndownData.series[0].dataPoints.map(dataPoint => ({
x: Date.parse(dataPoint.x), x: Date.parse(dataPoint.x),
@ -101,7 +101,7 @@ const Burndown = ({ name, sprints, burndownData, dateFormat, vscode }: {
<p className="kanbn-burndown-tooltip-count">Active tasks: {data.count}</p> <p className="kanbn-burndown-tooltip-count">Active tasks: {data.count}</p>
{data.tasks.map(task => ( {data.tasks.map(task => (
<p className="kanbn-burndown-tooltip-task"> <p className="kanbn-burndown-tooltip-task">
{{ started: 'Started', completed: 'Completed' }[task.eventType]} {task.task.name} {{ created: 'Created', started: 'Started', completed: 'Completed' }[task.eventType]} {task.task.name}
</p> </p>
))} ))}
</div> </div>

20443
yarn.lock

File diff suppressed because it is too large Load Diff