From f78db1ae37ab5418208ad10b765f2ae7aa4533e8 Mon Sep 17 00:00:00 2001 From: Angel Capetillo Zavala Date: Thu, 12 Nov 2026 09:47:02 -0600 Subject: [PATCH] feat(indicadores): CaMa KPI cards show only their own line, as in the reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The kit's notes are no longer appended to CaMa's opportunity cards (they stay in the figure footers, Histórico and Datos y definiciones). The four cards measure 308 x 220 px at 1366 px, like the reference. TEA keeps its notes and CaCu already hid them. --- src/app/features/indicadores/indicador-kpi-panel.spec.ts | 4 ++-- src/app/features/indicadores/indicador-kpi-panel.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/features/indicadores/indicador-kpi-panel.spec.ts b/src/app/features/indicadores/indicador-kpi-panel.spec.ts index 35e4d87..432a2a9 100644 --- a/src/app/features/indicadores/indicador-kpi-panel.spec.ts +++ b/src/app/features/indicadores/indicador-kpi-panel.spec.ts @@ -185,8 +185,8 @@ describe('KPI integración con autoridad global', () => { expect.stringContaining(domain === 'cacu' ? '5 citologías; primer cuartil: 3 días; tercer cuartil: 9 días.' : '5 mastografías; Q1 a Q3: 3 a 9 días.'), ])); expect(fixture.nativeElement.textContent).not.toContain('Definición provisional'); - // CaCu cards say only their own line; the kit notes are the figure footer. - expect(fixture.nativeElement.textContent.includes('Nota del pie de la figura.')).toBe(domain !== 'cacu'); + // CaCu and CaMa cards say only their own line, as in the reference; the kit notes are the figure footer and the definitions. + expect(fixture.nativeElement.textContent.includes('Nota del pie de la figura.')).toBe(false); } }); it('Aplicar Todos después del periodo compartido conserva supresión del último sin retroceder', () => { diff --git a/src/app/features/indicadores/indicador-kpi-panel.ts b/src/app/features/indicadores/indicador-kpi-panel.ts index 224161a..cad1e48 100644 --- a/src/app/features/indicadores/indicador-kpi-panel.ts +++ b/src/app/features/indicadores/indicador-kpi-panel.ts @@ -19,7 +19,7 @@ interface KpiDisplay extends KpiResult { period?: string; earlier?: boolean; ver imports: [IndicadorKpiCard, MatButtonModule], template: ` + [loading]="result().loading ?? false" [notes]="dominio === 'tea' ? result().notes ?? [] : []" [quietWhenAvailable]="dominio === 'cama'" /> @if (result().state === 'Error de consulta') { }`,