feat(work-status): add opt-in turn statistics (#3177)
Add optional completed-turn statistics without changing the existing panel layout. Separate final text delivery speed from whole-turn throughput, preserve scope and opt-in settings, and explain each metric with localized delayed tooltips. Validated focused telemetry, lifecycle, sync and persistence tests, all-workspace type-check and lint, web builds, the 12-locale narrow layout, and full GitHub CI.
This commit is contained in:
@@ -111,9 +111,9 @@ describe('sanitizeWorkStatusHiddenSections', () => {
|
||||
expect(sanitizeWorkStatusHiddenSections(['usage', 'usage'])).toEqual(['usage']);
|
||||
});
|
||||
|
||||
test('treats a non-array payload as no preference', () => {
|
||||
expect(sanitizeWorkStatusHiddenSections(undefined)).toEqual([]);
|
||||
expect(sanitizeWorkStatusHiddenSections('usage')).toEqual([]);
|
||||
expect(sanitizeWorkStatusHiddenSections({ usage: true })).toEqual([]);
|
||||
test('treats a non-array payload as default hidden preference', () => {
|
||||
expect(sanitizeWorkStatusHiddenSections(undefined)).toEqual(['telemetry']);
|
||||
expect(sanitizeWorkStatusHiddenSections('usage')).toEqual(['telemetry']);
|
||||
expect(sanitizeWorkStatusHiddenSections({ usage: true })).toEqual(['telemetry']);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user