feat: estimate tickets and see the team's velocity

Story points can be set on the ticket page and when creating a ticket,
and show on cards, column headers, subtasks and the backlog. The Sprints
tab charts the points finished per closed sprint and warns when a planned
sprint holds more than the recent average.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 15:04:11 +02:00
parent 50d3ffd1dd
commit 6aec774c92
16 changed files with 304 additions and 20 deletions

View File

@@ -42,11 +42,13 @@ import {
boardFilterOf,
IssuePriority,
IssueSummary,
POINT_SCALE,
ReleaseStatus,
SavedFilter,
sumPoints,
} from '@task-stream/web/tracker/domain';
import { IssueCardComponent } from '../ui/issue-card';
import { options, PRIORITY, statusLook } from '../ui/copy';
import { options, pointOptions, PRIORITY, statusLook } from '../ui/copy';
const ALL = '';
/** "Sin asignar" in the person filter. */
@@ -186,7 +188,14 @@ const NOBODY = '__nobody__';
<span class="ts-column__name">{{
statusLabel(column.status)
}}</span>
<span class="ts-column__count">{{ column.total }}</span>
<span class="ts-column__count"
>{{ column.total }}
@if (pointsOf(column); as points) {
<span class="ts-column__points" title="Puntos estimados"
>· {{ points }} pts</span
>
}
</span>
</header>
<div
class="ts-column__list"
@@ -254,6 +263,12 @@ const NOBODY = '__nobody__';
<pi-select-field [formField]="f.area" [options]="areaOptions()">
<pi-label>Área</pi-label>
</pi-select-field>
<pi-select-field
[formField]="f.storyPoints"
[options]="pointsOptions"
>
<pi-label>Estimación</pi-label>
</pi-select-field>
</div>
<div class="ts-form__row">
<pi-select-field
@@ -461,6 +476,9 @@ export class BoardPage {
],
);
protected readonly priorityOptions = options(PRIORITY);
protected readonly pointsOptions = pointOptions(POINT_SCALE);
/** Estimated points of the cards loaded in a column. */
protected pointsOf = (column: BoardColumn) => sumPoints(column.issues);
protected readonly typeOptions = computed<SegmentedControlOption<string>[]>(
() =>
this.project
@@ -477,6 +495,7 @@ export class BoardPage {
figmaUrl: '',
priority: IssuePriority.MEDIUM as string,
area: ALL as string,
storyPoints: '' as string,
assigneeId: ALL as string,
releaseId: ALL as string,
});
@@ -648,6 +667,7 @@ export class BoardPage {
figmaUrl: '',
priority: IssuePriority.MEDIUM,
area: ALL,
storyPoints: '',
assigneeId: ALL,
releaseId: this.releaseFilter() || ALL,
});
@@ -669,6 +689,7 @@ export class BoardPage {
: null,
priority: v.priority as IssuePriority,
area: v.area || null,
storyPoints: v.storyPoints === '' ? null : Number(v.storyPoints),
assigneeId: v.assigneeId || null,
releaseId: v.releaseId || null,
});