feat: migrazione al nuovo registry (registry.json) + temi dinamici da category - #226
Merged
Conversation
….json) - catalog.json.py/themes.json.py leggono registry/registry.json (fusion) invece del legacy clean_catalog.json; logica condivisa e testata in src/data/_registry.py - temi dinamici: config editoriale catalog/themes.json mappa le category del registry ai temi pubblici; un dataset entra in un tema se ha pagina explorer e category mappata (lo stage registry è irrilevante) - generate-config: sidebar difensiva (solo pagine .md esistenti), 'Altri dataset' con invariante 'ogni pagina compare in sidebar' - generate_catalog migrato al registry + config temi condivisa; URL_SLUG_OVERRIDES estesi per le 4 pagine con slug registry divergenti - test aggiornati + nuovi tests/test_registry.py e generate-config.test.mjs; docs e PR template allineati
Gabrymi93
force-pushed
the
feat/registry-catalog
branch
from
August 10, 2026 11:14
d279fea to
f516cab
Compare
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
Migra il data-explorer dal legacy
clean_catalog.jsonal nuovo fusion registry (registry/registry.jsondi dataset-incubator) e rende i temi dinamici, derivati dallacategorydel registry con un layer editoriale unico.Cosa cambia
Catalogo:
clean_catalog.json→registry/registry.jsonsrc/data/catalog.json.pyethemes.json.pyleggono il fusion registry; logica condivisa e testata insrc/data/_registry.py(load_registry,build_catalog,build_themes,resolve_url_slug)scripts/generate_catalog.mjsmigrato al registryURL_SLUG_OVERRIDESspostati in_registry.pyed estesi per le 4 pagine con slug registry divergenti (mit_incidentalita_mensile,istat_housing_crowding,opencivitas_fsc_2025_rso,popolazione_istat_comunale_2019_2025)Temi dinamici
catalog/themes.json= single source editoriale: mappa lecategorydel registry ai temi pubblici (6 temi attuali)mef-partecipazioni/pensioni-pa-dagsparivano)generate-config.mjs: sidebar difensiva (solo pagine.mdesistenti) + invariante "ogni pagina compare in sidebar"Test/docs
tests/test_registry.pyetests/generate-config.test.mjs; test JS aggiornatiVerifica
Output: 6 temi + "Altri dataset", 32 dataset — equivalente a main (cambia solo l'ordine, ora derivato dal registry).
Note per chi revisiona
categorygià mappata entra nel tema senza toccare codice; le nuove category vanno aggiunte acatalog/themes.json.