Repository navigation
feat: standard Lab + nuove pagine (Analisi, Community, alert, temi operativi) - #51
Merged
Merged
Conversation
- pyproject: setuptools>=68, name dataciviclab-dashboard - rimossa dep agent-context-builder dal packaging (mai importata, solo URL raw) - requirements.txt: pin export Streamlit Cloud, via dev deps - aggiunto PR template org - rimossi secrets.toml.example e token morto (nessun codice legge st.secrets)
- Vista Insieme: sezione Alert Lab (warnings + regressions/drift da source_health) - nuova pagina 03_Analisi: analisi pubblicate da topic_index, link dataset Explorer - nuova pagina 04_Community: PR/issues/discussions da workspace_triage, ricerca e link - Pipeline Health: temi operativi (pipeline/governance/infrastructure)
Il rename a dataciviclab-dashboard (underscore) ha reso il nome un package valido, facendo scoprire a setuptools piu' top-level (pages/, static/) e fallendo pip install -e . in CI. Con il nome vecchio (trattino) non era un package e passava. Test: build wheel locale OK (app.py + sources.py nel wheel).
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
Allinea lab-dashboard allo standard Lab e aggiunge le pagine mancanti sfruttando i dati ACB già disponibili ma inutilizzati (
analyses,operational_topics,source_health,warnings,prs/issues/discussions).Contesto collegato
Nessuna issue aperta — ripresa diretta del repo dopo una serie di prove locali scartate.
Cosa cambia
Standard (commit 1)
pyproject.toml:setuptools>=68, namedataciviclab-dashboard, rimossa depagent-context-builderdal packaging (mai importata, solo URL raw)requirements.txt: pin export Streamlit Cloud, rimosse dev deps.github/PULL_REQUEST_TEMPLATE.mdorg.streamlit/secrets.toml.examplee token GitHub morto (nessun codice leggest.secrets; la pagina Community ora leggeworkspace_triage.jsonsenza API)sources.py: rimossi dead code (duckdb_query,load_check_coverage,load_discussion_counts); fallback SO const.error(prima silenziosi → pagine vuote)Feature (commit 2)
00_Vista_Insieme: sezione Alert Lab (warnings + regressions/drift dasource_health)03_Analisi: analisi pubblicate datopic_index, con link dataset → Explorer04_Community: PR/issues/discussions daworkspace_triage, ricerca, link GitHub02_Pipeline_Health: sezione Temi operativi (pipeline/governance/infrastructure)load_analyses,load_operational_topics,load_source_healthImpatto
Verifica
ruff check+ruff formatpulitipytest -m "not smoke": 52 test passanopytest -m smoke: 1 smoke passa su rete reale (fetch artifact ACB/SO)topic_index.json,workspace_triage.json)Controlli
Note per chi revisiona
agent-context-builderè stata rimossa dal packaging: il repo consuma solo gli artifactraw.githubusercontent.com(branchcontext), non il package Python. Se in futuro servisse il package, va re-aggiunta esplicita.DE_SLUG_MAPresta hardcoded (usato da07_Fonteper i link Explorer): derivarlo dai dati è un follow-up possibile, non bloccante.secrets.toml.examplenon tocca la pagina Community: leggeworkspace_triage.json, già fetchato senza autenticazione. Il token reale che era in.streamlit/secrets.toml(gitignored, non committato) va ruotato/revocato manualmente su GitHub — non serve più a nulla.