feat: sprints with burndown and carry-over

Plan sprints with dates and a goal, run one at a time per project, and
put tickets in them from the ticket page. The Sprints tab follows the one
under way with its progress and a burndown in tickets or points against
the ideal line. Closing a sprint sends what was left to the next one or
back to the backlog; the board can be filtered by sprint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 14:59:01 +02:00
parent d2e31789a7
commit 50d3ffd1dd
104 changed files with 7209 additions and 33 deletions

View File

@@ -5,6 +5,7 @@ import {
NotificationKind,
ProjectRole,
ReleaseStatus,
SprintStatus,
SETTING_COLORS,
StatusCategory,
TYPE_ICONS,
@@ -135,6 +136,11 @@ export class IssueParentDto {
@ApiProperty({ example: 'Pago con tarjeta' }) title!: string;
}
export class SprintRefDto {
@ApiProperty({ format: 'uuid' }) id!: string;
@ApiProperty({ example: 'Sprint 14' }) name!: string;
}
export class IssueDto {
@ApiProperty({ format: 'uuid' }) id!: string;
@ApiProperty({ format: 'uuid' }) projectId!: string;
@@ -163,6 +169,8 @@ export class IssueDto {
assignee!: UserRefDto | null;
@ApiProperty({ type: ReleaseRefDto, nullable: true })
release!: ReleaseRefDto | null;
@ApiProperty({ type: SprintRefDto, nullable: true })
sprint!: SprintRefDto | null;
@ApiProperty({ type: [String] }) labels!: string[];
@ApiProperty({ type: String, nullable: true, description: 'Figma frame' })
figmaUrl!: string | null;
@@ -255,6 +263,50 @@ export class CommentPageDto {
@ApiProperty() total!: number;
}
export class SprintDto {
@ApiProperty({ format: 'uuid' }) id!: string;
@ApiProperty({ format: 'uuid' }) projectId!: string;
@ApiProperty({ example: 'Sprint 14' }) name!: string;
@ApiProperty({ type: String, nullable: true }) goal!: string | null;
@ApiProperty({ format: 'date' }) startDate!: string;
@ApiProperty({ format: 'date', description: 'Last day, included' })
endDate!: string;
@ApiProperty({ enum: SprintStatus, enumName: 'SprintStatus' })
status!: SprintStatus;
@ApiProperty({ type: String, nullable: true, format: 'date-time' })
startedAt!: string | null;
@ApiProperty({ type: String, nullable: true, format: 'date-time' })
closedAt!: string | null;
@ApiProperty({ format: 'date-time' }) createdAt!: string;
@ApiProperty() version!: number;
}
export class SprintProgressDto {
@ApiProperty() total!: number;
@ApiProperty({ description: 'Done or cancelled' }) finished!: number;
@ApiProperty({ minimum: 0, maximum: 100 }) percent!: number;
@ApiProperty() storyPoints!: number;
@ApiProperty() finishedStoryPoints!: number;
}
export class SprintBurndownDto {
@ApiProperty({ format: 'uuid' }) sprintId!: string;
@ApiProperty({ type: [String], format: 'date' }) dates!: string[];
@ApiProperty({
type: [Number],
nullable: true,
description: 'Tickets in the sprint (null: days to come)',
})
scope!: (number | null)[];
@ApiProperty({ type: [Number], nullable: true }) remaining!: (
| number
| null
)[];
@ApiProperty({ type: [Number], nullable: true })
remainingPoints!: (number | null)[];
@ApiProperty({ type: [Number] }) ideal!: number[];
}
export class ReleaseDto {
@ApiProperty({ format: 'uuid' }) id!: string;
@ApiProperty({ format: 'uuid' }) projectId!: string;