From d38c795c8afb863685043bc4d5a56ff838d4be5b Mon Sep 17 00:00:00 2001 From: Angel Capetillo Zavala Date: Thu, 3 Dec 2026 11:00:55 -0600 Subject: [PATCH] Hide the CaMa diagnosis-to-treatment card until the indicator is defined The card read "Indicador no disponible" and the route listed a step with no measure. Both are removed from the CaMa summary, and the opportunity grid sizes its columns to the cards it has so the remaining ones fill the row. --- src/app/indicadores/pages.ts | 7 ------- src/app/indicadores/tab-indicadores.html | 6 +++++- src/app/indicadores/tab-indicadores.scss | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/indicadores/pages.ts b/src/app/indicadores/pages.ts index 0c104d8..4ccb88a 100644 --- a/src/app/indicadores/pages.ts +++ b/src/app/indicadores/pages.ts @@ -124,7 +124,6 @@ const CAMA_DAYS = { value: '{median} días (mediana)', note: '{obs} mastografías; Q1 a Q3: {q1} a {q3} días.', }; -const PENDING = 'Indicador no publicado en el catálogo institucional.'; /** BI-RADS 4 to 6 as the old app named and coloured them. */ const BIRADS: Catalog = { @@ -273,11 +272,6 @@ export const PAGES: Record = { title: 'Días de interpretación radiológica a diagnóstico', ...CAMA_DAYS, }, - { - title: 'Días de diagnóstico a tratamiento', - value: 'Indicador no disponible', - note: PENDING, - }, ], opportunity: [ { @@ -301,7 +295,6 @@ export const PAGES: Record = { label: 'Interpretación radiológica a resultado de biopsia', measure: 'CAMA_DIAS_RESULTADO_BIOPSIA', }, - { label: 'Diagnóstico a tratamiento' }, ], }, ], diff --git a/src/app/indicadores/tab-indicadores.html b/src/app/indicadores/tab-indicadores.html index 4880d44..c31c1ba 100644 --- a/src/app/indicadores/tab-indicadores.html +++ b/src/app/indicadores/tab-indicadores.html @@ -45,7 +45,11 @@

Indicadores de oportunidad

Periodo {{ period }} -
+
@for (k of pg.kpis; track k.title) { diff --git a/src/app/indicadores/tab-indicadores.scss b/src/app/indicadores/tab-indicadores.scss index f641449..5ee334a 100644 --- a/src/app/indicadores/tab-indicadores.scss +++ b/src/app/indicadores/tab-indicadores.scss @@ -42,13 +42,13 @@ h2 { @media (min-width: 1000px) { .kpis { - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(var(--kpi-cols-md, 3), 1fr); } } @media (min-width: 1350px) { .kpis { - grid-template-columns: repeat(5, 1fr); + grid-template-columns: repeat(var(--kpi-cols-lg, 5), 1fr); } }