Revert "feat(indicadores): Resumen as a story of questions, for the domains that have one"
How: reverts e5ff342 entirely: indicadores-relato.ts and its spec are removed,
Resumen goes back to the opportunity cards followed by the clinical charts for
every domain, and the specs read cáncer de mama's cards in KPI order again.
Implications: no domain has a questions layout; RELATO_BY_DOMAIN is gone, so
nothing outside the KPI list and the catalog orders Resumen. The search
threshold and the equal card heights stay.
This commit is contained in:
@@ -13,7 +13,6 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { catchError, first, map, of, startWith, Subject, switchMap, takeUntil } from 'rxjs';
|
||||
import { Dominio, isDominio, Indicador, Tema } from './indicadores.models';
|
||||
import { vistaEscenario } from './indicadores-eu7-escenario';
|
||||
import { PreguntaRelato, RELATO_BY_DOMAIN, respuesta, sinPregunta } from './indicadores-relato';
|
||||
import { IndicadoresService } from './indicadores.service';
|
||||
import { applyGlobal, domainTypes, GlobalFilterState, IndicadoresMemory, pending, validDraft } from './indicadores-memory';
|
||||
import { IndicadorPeriodFilters } from './indicador-period-filters';
|
||||
@@ -358,10 +357,6 @@ export class IndicadoresPage {
|
||||
this.filtersEdited();
|
||||
this.changeDetector.markForCheck();
|
||||
}
|
||||
// Resumen as a story of questions, for the domains that have one.
|
||||
get relato(): readonly PreguntaRelato[] | undefined { return RELATO_BY_DOMAIN[this.dominio]; }
|
||||
respuesta(pregunta: PreguntaRelato) { return respuesta(pregunta, this.opportunityKpis, this.searchResults().items); }
|
||||
get sinPregunta() { return sinPregunta(this.relato ?? [], this.opportunityKpis, this.searchResults().items); }
|
||||
cardIdentity(item: Indicador) { return indicatorIdentity(this.dominio, item.id); }
|
||||
cardElementId(item: Indicador) { return identityElementId(this.cardIdentity(item)); }
|
||||
// «Ir» in the indicator selector: show the indicator if it was filtered out, then scroll to its card.
|
||||
|
||||
Reference in New Issue
Block a user