Skip to content

Commit 7ab7073

Browse files
committed
fix: ripristina temi e conteggi nella sezione EXPLORER del bootstrap
Ripristina le righe di pubblicati/temi che il commit #36 aveva rimosso, aggiungendo link diretto a data-explorer e mostrando i dataset per tema. Output: ## 🗂 EXPLORER **Pubblicati**: 6 dataset · 5 temi · [data-explorer](https://...) · Territorio e ambiente: ispra_ru_base, terna_capacita_rinnovabile · ... **Deploy**: ✅ success (2026-05-13) La gap analysis rimane (ora vuota, torna utile quando ricompaiono gap).
1 parent 0dda970 commit 7ab7073

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

src/agent_context_builder/render.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,27 @@ def render_session_bootstrap(self) -> str:
151151
for t in explorer_themes:
152152
themed_slugs.update(t.datasets)
153153

154-
# Gap analysis
154+
# Link all'explorer
155+
lines.append(
156+
f"**Pubblicati**: {len(themed_slugs)} dataset · "
157+
f"{len(explorer_themes)} temi · "
158+
f"[data-explorer](https://dataciviclab.github.io/data-explorer/)"
159+
)
160+
for t in explorer_themes:
161+
datasets_str = ", ".join(t.datasets)
162+
lines.append(f" · **{t.name}**: {datasets_str}")
163+
164+
# Gap analysis: published datasets without a theme
155165
catalog = self._fetch_di_clean_catalog()
156-
clean_ready_slugs: set[str] = set()
166+
catalog_published_slugs: set[str] = set()
157167
if catalog is not None:
158168
for ds in catalog.clean_ready:
159-
clean_ready_slugs.add(ds.slug)
160-
gap = sorted(clean_ready_slugs - themed_slugs)
169+
catalog_published_slugs.add(ds.slug)
170+
gap = sorted(catalog_published_slugs - themed_slugs)
161171
if gap:
162-
lines.append(f" ⚠ {len(gap)} dataset published non ancora su explorer:")
172+
lines.append(
173+
f" ⚠ {len(gap)} dataset published non ancora su explorer:"
174+
)
163175
for slug in gap[:5]:
164176
lines.append(f" · {slug}")
165177
if len(gap) > 5:

0 commit comments

Comments
 (0)