style(indicadores): no figure count on the cards, and no repeated filter line where the view states its period

How: the catalog card no longer shows "N figuras publicadas". CaCu's
interactive view, the confirmation view and the paired counts drop their
"Filtro general aplicado: …" line: their status line or figure titles already
name the period ("2025-S2, selección: …"). The plain figure panels and the
paired times keep it, as it is their only statement of the period.

Implications: applies to every domain. The applied filter is still shown under
the general filters bar.
This commit is contained in:
rockdrigo
2026-11-09 20:36:19 -06:00
parent 8b7dd6ec19
commit 612a11fa6f
9 changed files with 7 additions and 15 deletions
@@ -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());
@@ -40,7 +40,6 @@ import { IndicadorConteosPareados } from './indicador-conteos-pareados';
<mat-icon aria-hidden="true">push_pin</mat-icon>{{ pinned ? 'Desfijar indicador' : 'Fijar indicador' }}
</button>
<div class="catalog-content" [id]="contentId" [attr.aria-labelledby]="titleId">
<p class="catalog-metadata">{{ indicador.figuras.length }} figuras publicadas</p>
@if (isEu7) {
<div #visibilityRegion class="eu7-region">
<app-indicador-eu7-escenario [dominio]="dominio" [indicador]="indicador" [tema]="tema" [applied]="applied" [visible]="visible" [metadata]="metadata" (metadataRequested)="loadMetadata()" />
@@ -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); } }
`,
})
@@ -1,5 +1,4 @@
<section class="confirmacion" [attr.aria-label]="'Confirmación histopatológica, ' + vista.textos.filas.toLowerCase()">
<p class="applied-summary">Filtro general aplicado: {{ appliedSummary }}</p>
<button mat-button type="button" class="methodology-toggle" [attr.aria-expanded]="helpOpen" (click)="toggleHelp()">Cómo leer</button>
@if (helpOpen) {
<div class="methodology">
@@ -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); }
@@ -1,5 +1,4 @@
<section class="conteos" [attr.aria-label]="indicador.titulo + ', por ' + par.unidades.pacientes.slice(0, -1) + ' y por ' + par.unidades.examenes.slice(0, -1)">
<p class="applied-summary">Filtro general aplicado: {{ appliedSummary }}</p>
<button mat-button type="button" class="methodology-toggle" [attr.aria-expanded]="helpOpen" (click)="toggleHelp()">Cómo leer</button>
@if (helpOpen) {
<div class="methodology">
@@ -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'); }
@@ -1,5 +1,4 @@
<section class="eu7" [attr.aria-label]="indicador.titulo + ' por ' + etiquetaEstrato">
<p class="applied-summary">Filtro general aplicado: {{ appliedSummary }}</p>
<button mat-button type="button" class="methodology-toggle" [attr.aria-expanded]="helpOpen" (click)="toggleHelp()">Cómo leer</button>
@if (helpOpen) {
<div class="methodology">
@@ -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;
@@ -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';