feat: dashboard weighs quality and splits work by a list field

The insights reading adds quality (open bugs per priority, bugs created
and closed per week for 8 weeks, QA returns and passes per area over 90
days, bugs reported in the 14 days after each of the last three
releases) and, for each list custom field, open tickets per option. The
dashboard shows both; the field to split by can be picked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 13:06:11 +02:00
parent 0d158a2ed7
commit 76312c079d
22 changed files with 1264 additions and 74 deletions

View File

@@ -128,6 +128,48 @@ export class BacklogHealthReadModel {
staleDays!: number;
}
/** Bugs created and closed in one week (Monday, UTC). */
export class BugWeekReadModel {
week!: string;
created!: number;
closed!: number;
}
/** What QA sent back, and let through, per area (last 90 days). */
export class QaByAreaReadModel {
/** Area id; null: tickets with no area. */
area!: string | null;
returned!: number;
passed!: number;
}
/** Bugs reported in the 14 days after a release shipped. */
export class EscapedBugsReadModel {
releaseId!: string;
name!: string;
releasedAt!: string;
bugs!: number;
}
/** Bugs (types drawn with the bug icon) and QA. */
export class QualityReadModel {
/** Open bugs per priority (all five, most urgent first). */
openBugsByPriority!: { priority: string; count: number }[];
/** The last 8 weeks, oldest first. */
bugWeeks!: BugWeekReadModel[];
qaByArea!: QaByAreaReadModel[];
/** The last three shipped releases, newest first. */
escaped!: EscapedBugsReadModel[];
}
/** Open tickets per option of a list custom field. */
export class FieldBreakdownReadModel {
fieldId!: string;
counts!: { value: string; count: number }[];
/** Open tickets with no value in it. */
none!: number;
}
/** What the project dashboard reads beyond the counts. */
export class ProjectInsightsReadModel {
generatedAt!: string;
@@ -143,4 +185,7 @@ export class ProjectInsightsReadModel {
/** Members (and others with open tickets), busiest first. */
team!: TeamLoadReadModel[];
backlog!: BacklogHealthReadModel;
quality!: QualityReadModel;
/** One per active list (SELECT) custom field. */
fields!: FieldBreakdownReadModel[];
}