feat(tea): seguimiento con resumen por paciente y resumen por periodo

- Pestaña Seguimiento de TEA: tabla de pacientes con filtro de alteraciones EEG
  y fila desplegable con ADOS-2 por reactivo, calidad del EEG y mapa topográfico
  (GET /tea/seguimiento/<id>).
- Indicadores destacados: M21 y M22 (pacientes con TEA con y sin EEG).
- Con un solo periodo elegido, TEA muestra un párrafo de resumen en lugar de
  las tarjetas.
This commit is contained in:
2026-10-29 02:38:43 +00:00
parent 8c63ed83ac
commit 2cbb994667
21 changed files with 677 additions and 37 deletions
@@ -137,6 +137,8 @@ describe('UX-06E.D.3.A tarjetas permanentes y visibilidad controlada', () => {
const before = cards(), panel = panels()[0], result = panel.result();
for (const section of ['seguimiento', 'datos'] as const) {
page.changeSection(section); await render();
// TEA's Seguimiento loads its patient list; that request is unrelated to the cards.
for (const req of http.match(r => r.url === '/tea/seguimiento')) req.flush({}, { status: 404, statusText: 'Pending' });
// Even stale geometry/observer notifications cannot activate hidden cards.
positions(cards().map(() => [200, 0])); notify(1); await idle();
expect(cards().every(card => !card.visible)).toBe(true); http.expectNone(() => true);
@@ -233,6 +235,7 @@ describe('UX-06E.D.3.A tarjetas permanentes y visibilidad controlada', () => {
expect(chart.host.nativeElement).toBe(host); expect(runtime.purge).not.toHaveBeenCalled();
for (const section of ['seguimiento', 'datos', 'resumen'] as const) {
page.changeSection(section); await idle();
for (const req of http.match(r => r.url === '/tea/seguimiento')) req.flush({}, { status: 404, statusText: 'Pending' });
expect(chart.host.nativeElement).toBe(host); expect(runtime.purge).not.toHaveBeenCalled();
expect(runtime.react).toHaveBeenCalledTimes(1); http.expectNone(() => true);
}