feat(ui): mejorar presentacion y disponibilidad inicial de KPI

This commit is contained in:
Angel Capetillo Zavala
2026-10-14 13:00:54 -06:00
parent 69afcc7fdb
commit 4685a91a7c
19 changed files with 466 additions and 102 deletions
@@ -62,6 +62,9 @@ export function applyGlobal(state: GlobalFilterState, types: TipoPeriodo[]): boo
@Injectable({ providedIn: 'root' })
export class IndicadoresMemory {
private readonly manuallyApplied = new Set<Dominio>();
initialKpiPresentation(domain: Dominio) { return !this.manuallyApplied.has(domain); }
finishInitialKpiPresentation(domain: Dominio) { this.manuallyApplied.add(domain); }
private readonly pinnedIndicators = signal<ReadonlySet<string>>(new Set());
isPinned(domain: Dominio, indicador: string) {
return this.pinnedIndicators().has(JSON.stringify([domain, indicador]));