feat(小宝预警): 同步今日日报证据
This commit is contained in:
@@ -53,10 +53,13 @@ function risk(patch: Partial<XiaobaoVersionRisk> = {}): XiaobaoVersionRisk {
|
||||
dailyEvidence: {
|
||||
todayDeliveries: [{ id: 'ev-1', title: 'Delivery', summary: 'Submitted core flow.', occurredAt: '2026-06-29T09:00:00.000Z' }],
|
||||
todayProgress: [{ id: 'ev-2', title: 'Progress', summary: 'Fixed login issue.', occurredAt: '2026-06-29T10:00:00.000Z' }],
|
||||
todayCreations: [{ id: 'ev-create', title: 'Creation', summary: 'Created regression case.', occurredAt: '2026-06-29T10:30:00.000Z' }],
|
||||
todayRisks: [{ id: 'ev-3', title: 'Risk', summary: 'Regression failed.', occurredAt: '2026-06-29T11:00:00.000Z' }],
|
||||
progressNotes: [{ id: 'ev-4', title: 'Note', summary: 'Need QA retest.', occurredAt: '2026-06-29T12:00:00.000Z' }],
|
||||
needsProgressItems: [{ id: 'ev-5', title: 'Need update', summary: 'Backend task has no update.', occurredAt: '2026-06-29T13:00:00.000Z' }],
|
||||
recentActivityCount: 3,
|
||||
totalActivityCount: 6,
|
||||
todayActualHours: 4.5,
|
||||
lastActivityAt: '2026-06-29T13:00:00.000Z',
|
||||
},
|
||||
signals: {
|
||||
@@ -437,7 +440,10 @@ test('buildRiskInterpretRequest compresses frontend risk evidence for the backen
|
||||
assert.equal(payload.reasons[0].severity, 'medium');
|
||||
assert.equal(payload.reasons[1].severity, 'critical');
|
||||
assert.deepEqual(payload.dailyEvidence.todayDeliveries, ['Submitted core flow.']);
|
||||
assert.deepEqual(payload.dailyEvidence.todayCreations, ['Created regression case.']);
|
||||
assert.deepEqual(payload.dailyEvidence.needsProgressItems, ['Backend task has no update.']);
|
||||
assert.equal(payload.dailyEvidence.totalActivityCount, 6);
|
||||
assert.equal(payload.dailyEvidence.todayActualHours, 4.5);
|
||||
assert.equal(payload.silentRisks[0].detail, 'No update for 5 days.');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user