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

@@ -1437,5 +1437,8 @@ describe('task-stream (e2e)', () => {
`/projects/${key}/issues?noEstimate=true&noArea=true`,
);
expect(unestimated.body['total']).toBe(2);
expect(later.body['quality'].openBugsByPriority).toHaveLength(5);
expect(later.body['quality'].bugWeeks).toHaveLength(8);
expect(later.body['fields']).toEqual([]);
});
});

View File

@@ -12316,6 +12316,166 @@
"staleDays"
]
},
"PriorityCountDto": {
"type": "object",
"properties": {
"priority": {
"allOf": [
{
"$ref": "#/components/schemas/IssuePriority"
}
]
},
"count": {
"type": "number"
}
},
"required": [
"priority",
"count"
]
},
"BugWeekDto": {
"type": "object",
"properties": {
"week": {
"type": "string",
"format": "date",
"description": "Monday (UTC)"
},
"created": {
"type": "number"
},
"closed": {
"type": "number"
}
},
"required": [
"week",
"created",
"closed"
]
},
"QaByAreaDto": {
"type": "object",
"properties": {
"area": {
"type": "string",
"nullable": true,
"description": "Null: no area"
},
"returned": {
"type": "number"
},
"passed": {
"type": "number"
}
},
"required": [
"area",
"returned",
"passed"
]
},
"EscapedBugsDto": {
"type": "object",
"properties": {
"releaseId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"releasedAt": {
"type": "string"
},
"bugs": {
"type": "number",
"description": "Bugs reported in the 14 days after"
}
},
"required": [
"releaseId",
"name",
"releasedAt",
"bugs"
]
},
"QualityDto": {
"type": "object",
"properties": {
"openBugsByPriority": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PriorityCountDto"
}
},
"bugWeeks": {
"description": "Last 8 weeks, oldest first",
"type": "array",
"items": {
"$ref": "#/components/schemas/BugWeekDto"
}
},
"qaByArea": {
"type": "array",
"items": {
"$ref": "#/components/schemas/QaByAreaDto"
}
},
"escaped": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EscapedBugsDto"
}
}
},
"required": [
"openBugsByPriority",
"bugWeeks",
"qaByArea",
"escaped"
]
},
"OptionCountDto": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"count": {
"type": "number"
}
},
"required": [
"value",
"count"
]
},
"FieldBreakdownDto": {
"type": "object",
"properties": {
"fieldId": {
"type": "string"
},
"counts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OptionCountDto"
}
},
"none": {
"type": "number",
"description": "Open tickets with no value"
}
},
"required": [
"fieldId",
"counts",
"none"
]
},
"ProjectInsightsDto": {
"type": "object",
"properties": {
@@ -12367,6 +12527,16 @@
},
"backlog": {
"$ref": "#/components/schemas/BacklogHealthDto"
},
"quality": {
"$ref": "#/components/schemas/QualityDto"
},
"fields": {
"description": "One per active list custom field",
"type": "array",
"items": {
"$ref": "#/components/schemas/FieldBreakdownDto"
}
}
},
"required": [
@@ -12378,7 +12548,9 @@
"releases",
"changes",
"team",
"backlog"
"backlog",
"quality",
"fields"
]
},
"ActivityDto": {

View File

@@ -144,6 +144,15 @@ type BoardColumn {
total: Int!
}
"""Bugs created and closed in a week"""
type BugWeek {
closed: Int!
created: Int!
"""Monday (UTC), YYYY-MM-DD"""
week: String!
}
type BulkIssueResult {
error: String
issueId: ID!
@@ -478,6 +487,23 @@ type Epic {
progress: ChildProgress!
}
"""Bugs reported in the 14 days after a release shipped"""
type EscapedBugs {
bugs: Int!
name: String!
releaseId: ID!
releasedAt: String!
}
"""Open tickets per option of a list custom field"""
type FieldBreakdown {
counts: [OptionCount!]!
fieldId: String!
"""Open tickets with no value"""
none: Int!
}
type FlowSeries {
counts: [Int!]!
status: String!
@@ -981,6 +1007,16 @@ type NotificationSettings {
pushPublicKey: String
}
type OptionCount {
count: Int!
value: String!
}
type PriorityCount {
count: Int!
priority: IssuePriority!
}
type Project {
"""Takes bug reports and ideas from anyone (while public)"""
acceptsProposals: Boolean!
@@ -1068,7 +1104,11 @@ type ProjectInsights {
"""Only when asked with `since`"""
changes: ChangesSince
"""One per active list custom field"""
fields: [FieldBreakdown!]!
generatedAt: String!
quality: Quality!
releases: [ReleaseForecast!]!
risks: Risks!
sprint: SprintPulse
@@ -1138,12 +1178,29 @@ input PushSubscriptionInput {
p256dh: String!
}
"""QA verdicts per area (90 days)"""
type QaByArea {
"""Null: no area"""
area: String
passed: Int!
returned: Int!
}
type QaStats {
failed: Int!
failureRate: Float
passed: Int!
}
"""Bugs (types with the bug icon) and QA"""
type Quality {
"""Last 8 weeks, oldest first"""
bugWeeks: [BugWeek!]!
escaped: [EscapedBugs!]!
openBugsByPriority: [PriorityCount!]!
qaByArea: [QaByArea!]!
}
type Query {
"""Project activity feed (newest first)"""
activity(