feat: add SILOS infrastructure explorer page#192
Merged
Conversation
Gabrymi93
approved these changes
Jul 3, 2026
Gabrymi93
left a comment
Member
There was a problem hiding this comment.
Review PR #192 — SILOS infrastrutture
Clip: 3 file (loader + pagina + themes), metodologia solida.
Findings
- Low: la pagina non usa
tableFormat()ma dichiara header/format manuali. Motivazione esplicita nella checklist. ✅ - Low: data loader custom giustificato (due query aggregate + metadati). Pattern coerente.
Nota positiva
Eccellente gestione della gerarchia SILOS — selettore di livello + tabella confronto + caveat nei Limiti. La pagina educa l'utente a non sommare i livelli. 👌
Checklist
- ✅
safe_connect(),format-utils.js,themes.json.py - ✅ Frontmatter + Limiti completi
- ✅ Build/lint/test passati
Verdict: merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sintesi
Aggiunge una pagina Data Explorer per
silos_infrastrutturecon taglio BI sulle infrastrutture strategiche SILOS: costi, disponibilità, fabbisogno, sistema infrastrutturale, localizzazione dichiarata, stato di attuazione e interventi principali.Punto metodologico centrale: SILOS è gerarchico. La pagina non somma tutti i livelli insieme; espone un selettore di livello gerarchico e una tabella di confronto tra livelli, così ogni vista viene letta sul livello selezionato.
Contesto collegato
Closes #190
Cosa cambia
Checklist nuovo dataset
Se la PR aggiunge un nuovo dataset in explorer:
src/data/silos-infrastrutture.json.py— usasafe_connect()(nonduckdb.connect())src/dataset/silos-infrastrutture.md— usa moduli condivisi (format-utils.js)src/data/themes.json.py(sidebar auto-generata, non toccatoobservablehq.config.js)title,description,source,source_url,period,last_modified,dataset_slugnpm run lint,npm testenpm run buildpassanoStandard check
Prima della review, verificare:
toLocaleString— usanum(),euroCompact(),pct()daformat-utils.jstableFormateInputs.tablein celle separate: non usatotableFormatdove serviva formattazione custom milioni→euroduckdb.connect()— usasafe_connect()themes.json.py— non modificatoobservablehq.config.jsVerifica
npm run lint npm test npm run buildnpm run lint— eslint + standard check: 30 pagine, 0 errorinpm test— JS 57/57 pass, Python 13/13 passnpm run build— build completato: 39 pagine renderizzate,silos-infrastruttureincluso, 26 link validatiHo verificato anche il loader direttamente sul parquet pubblico: 7 livelli gerarchici e 2.633 righe con costo positivo nel JSON generato.
Checklist PR
Note per chi revisiona
La parte da guardare con più attenzione è la scelta metodologica sui livelli: la pagina permette di cambiare livello e dichiara nei limiti che i livelli SILOS non vanno sommati tra loro, perché descrivono nodi padre e sotto-interventi della stessa gerarchia.