diff --git a/src/app/features/indicadores/indicador-catalog-card.spec.ts b/src/app/features/indicadores/indicador-catalog-card.spec.ts index 062b9b9..3ed18d7 100644 --- a/src/app/features/indicadores/indicador-catalog-card.spec.ts +++ b/src/app/features/indicadores/indicador-catalog-card.spec.ts @@ -36,7 +36,8 @@ describe('UX-06E.D.2.1 selector de representación', () => { fixture.detectChanges(); expect(fixture.nativeElement.querySelector('h2').textContent).toBe('EEG con ≥ 20 min de registro'); expect(fixture.nativeElement.querySelector('.indicator-id')).toBeNull(); - expect(fixture.nativeElement.querySelector('.catalog-metadata').textContent.trim()).toBe('2 figuras publicadas'); + // The card doesn't count its figures; the figures themselves show what is published. + expect(fixture.nativeElement.textContent).not.toContain('figuras publicadas'); // The internal panel heading is deliberately visually hidden and retains identity. const copy = fixture.nativeElement.cloneNode(true) as HTMLElement; copy.querySelectorAll('.visually-hidden').forEach(node => node.remove()); diff --git a/src/app/features/indicadores/indicador-catalog-card.ts b/src/app/features/indicadores/indicador-catalog-card.ts index 8235593..8907d40 100644 --- a/src/app/features/indicadores/indicador-catalog-card.ts +++ b/src/app/features/indicadores/indicador-catalog-card.ts @@ -40,7 +40,6 @@ import { IndicadorConteosPareados } from './indicador-conteos-pareados'; {{ pinned ? 'Desfijar indicador' : 'Fijar indicador' }}
-

{{ indicador.figuras.length }} figuras publicadas

@if (isEu7) {
@@ -104,8 +103,6 @@ import { IndicadorConteosPareados } from './indicador-conteos-pareados'; .pin-toggle mat-icon { flex-shrink: 0; } button:focus-visible { outline: 2px solid var(--issste-text); outline-offset: 3px; } mat-form-field { width: 100%; margin-top: var(--issste-space-4); } - .catalog-metadata { margin: var(--issste-space-4) 0 0; padding-top: var(--issste-space-4); - border-top: 1px solid var(--issste-border); color: var(--issste-text-secondary); font: var(--mat-sys-body-small); } @media (max-width: 550px) { h2 { font-size: 1.25rem; } header { gap: var(--issste-space-2); } } `, }) diff --git a/src/app/features/indicadores/indicador-confirmacion-citologia.html b/src/app/features/indicadores/indicador-confirmacion-citologia.html index 616eddb..5b0bf39 100644 --- a/src/app/features/indicadores/indicador-confirmacion-citologia.html +++ b/src/app/features/indicadores/indicador-confirmacion-citologia.html @@ -1,5 +1,4 @@
-

Filtro general aplicado: {{ appliedSummary }}

@if (helpOpen) {
diff --git a/src/app/features/indicadores/indicador-confirmacion-citologia.ts b/src/app/features/indicadores/indicador-confirmacion-citologia.ts index 5ede646..9a96a89 100644 --- a/src/app/features/indicadores/indicador-confirmacion-citologia.ts +++ b/src/app/features/indicadores/indicador-confirmacion-citologia.ts @@ -5,7 +5,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { PlotlyChart } from '../../shared/plotly/plotly-chart'; import { Dominio, Indicador, IndicadorMetadatos, PlotlyFigure, Tema } from './indicadores.models'; -import { describePeriods, filterCompatibility, GlobalApplied } from './indicadores-memory'; +import { filterCompatibility, GlobalApplied } from './indicadores-memory'; import { IndicadoresSnapshots, snapshotKey } from './indicadores-snapshots'; import { httpMessage } from './indicadores-http'; import { clicConfirmacion, clicDona, ConfirmacionIncompatible, CONFIRMACION_CACU, donaConfirmacion, donaExpandible, estadoTasa, figuraTasas, @@ -42,7 +42,6 @@ export class IndicadorConfirmacionCitologia implements OnChanges, OnDestroy { private loaded = false; private pages: ModeloConfirmacion[] = []; - get appliedSummary() { return describePeriods(this.applied.tipo, this.applied.selection); } get selectionLabel() { return this.model && this.selection ? seleccionEtiqueta(this.model, this.selection) : ''; } get reading() { return this.model && this.selection ? lectura(this.model, this.selection) : ''; } get isBase() { return !!this.model && !!this.selection && !this.selection.categoria && this.selection.grupo === (this.vista.botones ? this.model.base : undefined); } diff --git a/src/app/features/indicadores/indicador-conteos-pareados.html b/src/app/features/indicadores/indicador-conteos-pareados.html index c777cdd..5e0ffdf 100644 --- a/src/app/features/indicadores/indicador-conteos-pareados.html +++ b/src/app/features/indicadores/indicador-conteos-pareados.html @@ -1,5 +1,4 @@
-

Filtro general aplicado: {{ appliedSummary }}

@if (helpOpen) {
diff --git a/src/app/features/indicadores/indicador-conteos-pareados.ts b/src/app/features/indicadores/indicador-conteos-pareados.ts index e41656f..b4a88d0 100644 --- a/src/app/features/indicadores/indicador-conteos-pareados.ts +++ b/src/app/features/indicadores/indicador-conteos-pareados.ts @@ -6,7 +6,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { PlotlyChart } from '../../shared/plotly/plotly-chart'; import { Dominio, Indicador, IndicadorMetadatos, PlotlyFigure, Tema } from './indicadores.models'; -import { describePeriods, filterCompatibility, GlobalApplied } from './indicadores-memory'; +import { filterCompatibility, GlobalApplied } from './indicadores-memory'; import { IndicadoresSnapshots, snapshotKey } from './indicadores-snapshots'; import { httpMessage } from './indicadores-http'; import { barrasConteos, ConteosIncompatibles, donaConteos, ModeloConteos, modelosConteos, ParConteos, totalExamenes } from './indicadores-conteos-pareados'; @@ -39,7 +39,6 @@ export class IndicadorConteosPareados implements OnChanges, OnDestroy { private key = ''; private loaded = false; - get appliedSummary() { return describePeriods(this.applied.tipo, this.applied.selection); } get model(): ModeloConteos | undefined { return this.pages[this.periodIndex]; } get total() { return this.model ? totalExamenes(this.model) : null; } texto(n: number | null) { return n === null ? 'Sin dato' : n.toLocaleString('es-MX'); } diff --git a/src/app/features/indicadores/indicador-eu7-escenario.html b/src/app/features/indicadores/indicador-eu7-escenario.html index 1b25a0b..9f9814e 100644 --- a/src/app/features/indicadores/indicador-eu7-escenario.html +++ b/src/app/features/indicadores/indicador-eu7-escenario.html @@ -1,5 +1,4 @@
-

Filtro general aplicado: {{ appliedSummary }}

@if (helpOpen) {
diff --git a/src/app/features/indicadores/indicador-eu7-escenario.ts b/src/app/features/indicadores/indicador-eu7-escenario.ts index 4ee3495..6cd222c 100644 --- a/src/app/features/indicadores/indicador-eu7-escenario.ts +++ b/src/app/features/indicadores/indicador-eu7-escenario.ts @@ -5,7 +5,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { PlotlyChart } from '../../shared/plotly/plotly-chart'; import { Dominio, Indicador, IndicadorMetadatos, PlotlyFigure, Tema, VistaEscenario } from './indicadores.models'; -import { describePeriods, filterCompatibility, GlobalApplied } from './indicadores-memory'; +import { filterCompatibility, GlobalApplied } from './indicadores-memory'; import { IndicadoresSnapshots, snapshotKey } from './indicadores-snapshots'; import { httpMessage } from './indicadores-http'; import { percentText } from './indicadores-format'; @@ -44,7 +44,6 @@ export class IndicadorEu7Escenario implements OnChanges, OnDestroy { private pages: Modelo[] = []; get vista(): VistaEscenario | undefined { return vistaEscenario(this.dominio, this.indicador); } get etiquetaEstrato() { return this.vista?.etiqueta ?? 'escenario clínico'; } - get appliedSummary() { return describePeriods(this.applied.tipo, this.applied.selection); } get selectionLabel() { return this.model ? seleccionEtiqueta(this.model, this.selection) : 'TOTAL'; } get sinDatoNote() { const m = this.model; diff --git a/src/app/features/indicadores/indicadores-page.spec.ts b/src/app/features/indicadores/indicadores-page.spec.ts index 7e756b2..60a2c4d 100644 --- a/src/app/features/indicadores/indicadores-page.spec.ts +++ b/src/app/features/indicadores/indicadores-page.spec.ts @@ -108,7 +108,7 @@ describe('UX-06E.D.3.A catálogo permanentemente desplegado', () => { expect(host.querySelector('mat-select')).toBeNull(); expect(host.querySelector('.figure-skeleton').textContent).toContain('pendiente'); expect(host.textContent).not.toContain('Contrato C1'); - expect(host.querySelector('.catalog-metadata').textContent.trim()).toBe('2 figuras publicadas'); + expect(host.textContent).not.toContain('figuras publicadas'); http.expectNone(() => true); }); it('Resumen omite los indicadores publicados solo para otra pestaña', () => { @@ -123,7 +123,7 @@ describe('UX-06E.D.3.A catálogo permanentemente desplegado', () => { const header = host.querySelector('header'); toggle(); flushAll(); const panel = panels()[0]; cards()[0].setVisible(false); fixture.detectChanges(); expect(host.querySelector('header')).toBe(header); expect(panels()[0]).toBe(panel); - expect(host.querySelector('.catalog-metadata')).toBeTruthy(); http.expectNone(() => true); + expect(host.querySelector('.catalog-content')).toBeTruthy(); http.expectNone(() => true); }); it('UX-06C: conserva título largo completo y el control separado de la identidad', () => { const title = 'Distribución de indicadores con un título extenso y múltiples palabras para revisión responsive';