fix(indicadores): decir cáncer cervicouterino en lugar de CaCu en pantalla
CaCu es el nombre que le dimos nosotros, no el que busca un médico. Las etiquetas de la página dicen «cáncer cervicouterino», con mayúscula donde abre el texto (la línea «Cáncer cervicouterino, investigación», que ya no dice «Dominio»). El botón del encabezado para cambiar de proyecto sigue diciendo «CaCu», provisional; las direcciones no cambian (/indicadores/cacu). El encabezado dice «Indicadores» en lugar de «Dashboard de indicadores» y el subtítulo «Explora los indicadores de …» sin mencionar el servicio de reportes. «Datos y definiciones» ya no repite «Dominio: …» bajo su título. TEA y CaMa conservan su nombre. Registrado en docs/bitacora-textos.md. CSO5.5
This commit is contained in:
@@ -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