Skip to content

Commit

Permalink
Merge pull request #84 from bitovi/grow-nan-releases
Browse files Browse the repository at this point in the history
handles percent complete with releases and grows the status report
  • Loading branch information
justinbmeyer authored Jul 16, 2024
2 parents 17eaba7 + 2ea72d4 commit a3c2fb7
Show file tree
Hide file tree
Showing 6 changed files with 364 additions and 354 deletions.
700 changes: 350 additions & 350 deletions public/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/main.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion public/gantt-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export class GanttGrid extends StacheElement {
idToIssue[issue.key] = issue;
}
return this.issues.map( issue => {
const issueData = idToIssue[issue["Issue key"]];
return {
...issue,
completionRollup: idToIssue[issue["Issue key"]].completionRollup
completionRollup: issueData ? issueData.completionRollup : {}
}
})
} else {
Expand Down
11 changes: 10 additions & 1 deletion public/shared/issue-data/issue-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ export function getLabelsDefault({fields}) {
return fields?.labels || []
}

export function getReleasesDefault ({fields}) {
return (fields["Fix versions"] || []).map( ({name, id})=> {
return {name, id}
});
}


/**
* @typedef {{
* fields: {
Expand Down Expand Up @@ -195,7 +202,8 @@ export function normalizeIssue( issue, {
getParallelWorkLimit = getParallelWorkLimitDefault,
getSprints = getSprintsDefault,
getStatus = getStatusDefault,
getLabels = getLabelsDefault
getLabels = getLabelsDefault,
getReleases = getReleasesDefault
} = {}){
const teamName = getTeamKey(issue),
velocity = getVelocity(teamName),
Expand Down Expand Up @@ -226,6 +234,7 @@ export function normalizeIssue( issue, {
url: getUrl(issue),
status: getStatus(issue),
labels: getLabels(issue),
releases: getReleases(issue),
issue
};
return data;
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion public/status-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class StatusReport extends StacheElement {
static view = `
<div class='release_wrapper {{# if(this.breakdown) }}extra-timings{{else}}simple-timings{{/ if}} px-2 flex gap-2'>
{{# for(primaryIssue of this.primaryIssues) }}
<div class='release_box shrink'>
<div class='release_box grow'>
<div
on:click='this.showTooltip(scope.event, primaryIssue)'
class="pointer release_box_header_bubble color-text-and-bg-{{primaryIssue.dateData.rollup.status}} rounded-t {{this.fontSize(0)}}">
Expand Down

0 comments on commit a3c2fb7

Please sign in to comment.