feat(indicadores): integrar ajustes CaCu, ficha de paciente y mejoras de navegación #7
@@ -3,6 +3,19 @@
|
||||
Textos que la WebApp escribe a mano en lugar de tomarlos del kit (`indicadores_kit`), por qué
|
||||
y qué hay que mantener al día. Lo más reciente, arriba.
|
||||
|
||||
## 2026-10-25 · «CaCu» es un nombre interno
|
||||
|
||||
- En pantalla, «CaCu» pasa a «cáncer cervicouterino» (`domainLabels` de `indicadores-page.ts` y
|
||||
`domainNames` de `indicadores-definitions.ts`). Con mayúscula donde abre el texto: la línea
|
||||
«Cáncer cervicouterino, investigación» (`domainTitles`). TEA y CaMa no cambian de nombre.
|
||||
- El botón del encabezado para cambiar de proyecto (`app.ts`) sigue diciendo «CaCu»: es
|
||||
provisional (usuario). Solo es la etiqueta: la dirección sigue siendo `/indicadores/cacu`.
|
||||
- La línea del encabezado ya no dice «Dominio»: «<proyecto>, investigación».
|
||||
- «Dashboard de indicadores» pasa a «Indicadores» y el subtítulo a «Explora los indicadores de
|
||||
<proyecto>.» (antes: «…de indicadores <proyecto> generadas por el servicio de reportes»).
|
||||
- «Datos y definiciones» ya no dice «Dominio: <proyecto>.»: repetía el título.
|
||||
- Siguen igual «Cambiar dominio» y su lectura en voz alta.
|
||||
|
||||
## 2026-10-25 · Tarjetas de indicadores de oportunidad de CaCu
|
||||
|
||||
- Las tarjetas de CaCu ya no muestran las notas del kit (`notas` de `/datos`, que son el pie de
|
||||
|
||||
@@ -10,7 +10,7 @@ it('permite acceso directo a /indicadores sin guard ni autenticación', async ()
|
||||
const harness = await RouterTestingHarness.create();
|
||||
await harness.navigateByUrl('/indicadores', IndicadoresPage);
|
||||
expect(TestBed.inject(Router).url).toBe('/indicadores/tea');
|
||||
expect(harness.routeNativeElement?.textContent).toContain('Dashboard de indicadores');
|
||||
expect(harness.routeNativeElement?.textContent).toContain('Indicadores');
|
||||
const http = TestBed.inject(HttpTestingController);
|
||||
http.expectOne('/tea/indicadores').flush([]);
|
||||
http.verify();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<h2>Datos y definiciones de {{ domainNames[dominio] }}</h2>
|
||||
<section aria-labelledby="domain-info-title">
|
||||
<h3 id="domain-info-title">Información del dominio</h3>
|
||||
<p>Dominio: {{ domainNames[dominio] }}.</p>
|
||||
@if (dominio === 'cacu') { <p>Pacientes evaluadas incluye a las pacientes con citología tomada en el periodo cuyo espécimen fue insatisfactorio.</p> }
|
||||
@if (!loading && !error && periodTypes.length) {
|
||||
<p>Periodicidad disponible:
|
||||
|
||||
@@ -19,7 +19,7 @@ export class IndicadoresDefinitions {
|
||||
@Input() loading = false;
|
||||
@Input() error = '';
|
||||
readonly retry = output<void>();
|
||||
readonly domainNames: Record<Dominio, string> = { tea: 'TEA', cacu: 'CaCu', cama: 'CaMa' };
|
||||
readonly domainNames: Record<Dominio, string> = { tea: 'TEA', cacu: 'cáncer cervicouterino', cama: 'CaMa' };
|
||||
readonly periodNames: Record<TipoPeriodo, string> = { semestre: 'Semestral', mes: 'Mensual' };
|
||||
readonly figureDisplayName = figureDisplayName;
|
||||
readonly periodInterpretation = PERIOD_INTERPRETATION;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<section class="dashboard" aria-labelledby="dashboard-title">
|
||||
<header>
|
||||
<span class="domain">Dominio {{ domainLabels[dominio] }}, investigación</span>
|
||||
<h1 id="dashboard-title">Dashboard de indicadores</h1>
|
||||
<p>Explora las figuras de indicadores {{ domainLabels[dominio] }} generadas por el servicio de reportes.</p>
|
||||
<span class="domain">{{ domainTitles[dominio] }}, investigación</span>
|
||||
<h1 id="dashboard-title">Indicadores</h1>
|
||||
<p>Explora los indicadores de {{ domainLabels[dominio] }}.</p>
|
||||
</header>
|
||||
<div class="section-tabs" [class.dark-theme]="tema === 'oscuro'" role="tablist" [attr.aria-label]="'Secciones de ' + domainLabels[dominio]" (keydown)="sectionKeydown($event)">
|
||||
@for (section of sections; track section.id) {
|
||||
|
||||
@@ -240,7 +240,9 @@ export class IndicadoresPage {
|
||||
private readonly route = inject(ActivatedRoute, { optional: true });
|
||||
readonly dominios = DOMINIOS;
|
||||
dominio: Dominio = 'tea';
|
||||
readonly domainLabels: Record<Dominio, string> = { tea: 'TEA', cacu: 'CaCu', cama: 'CaMa' };
|
||||
readonly domainLabels: Record<Dominio, string> = { tea: 'TEA', cacu: 'cáncer cervicouterino', cama: 'CaMa' };
|
||||
// At the start of the header line.
|
||||
readonly domainTitles: Record<Dominio, string> = { ...this.domainLabels, cacu: 'Cáncer cervicouterino' };
|
||||
readonly kpisByDomain = KPI_BY_DOMAIN;
|
||||
figureApplied(item: Indicador) { return figureApplied(this.dominio, item.id, this.filters!.applied); }
|
||||
independentPeriods(item: Indicador) { return independentFigurePeriods(this.dominio, item.id); }
|
||||
|
||||
@@ -106,7 +106,7 @@ describe('P0.1 selección publicada y último periodo por KPI', () => {
|
||||
fixture.detectChanges(); flushDatos('cacu');
|
||||
expect(fixture.componentInstance.initialPeriodState()).toBe('error');
|
||||
expect(panels()).toHaveLength(0);
|
||||
expect(fixture.nativeElement.textContent).toContain('No se pudo determinar el periodo inicial de CaCu');
|
||||
expect(fixture.nativeElement.textContent).toContain('No se pudo determinar el periodo inicial de cáncer cervicouterino');
|
||||
expect(fixture.nativeElement.textContent).not.toContain('private');
|
||||
const control = editor(); control.changeMode('manual'); control.select(['2025-S2']);
|
||||
expect(control.canApply).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user