feat(region): vista pubblica di trasparenza /regione/pubblico (#232, F5) - #248
Merged
Conversation
Unico endpoint PUBBLICO (no auth) oltre /health, eccezione deliberata a R7: aggregati regionali NON sensibili (nessun dato personale) — distribuzione stato, mediana, copertura HVD, stato qualitativo dei comuni, top 5 priorità. Protetto dal rate limit per-IP (#237). UI /regione/pubblico read-only, senza DashboardGate/token. R7 aggiornata con l'eccezione. Backend 510, tsc+build+lint OK. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
F5: la vista pubblica di trasparenza per il cittadino — read-only, senza login.
Backend
GET /regione/pubblico— unico endpoint pubblico (anonimo) oltre/health, eccezione deliberata a R7: espone solo aggregati regionali non sensibili (nessun dato personale) — distribuzione per stato, comuni valutati/totali, maturità mediana, copertura HVD, stato qualitativo per comune (nome/provincia/stato) e top 5 priorità. Protetto dal rate limit per-IP del middleware (#237).CLAUDE.mdR7 aggiornata per registrare l'eccezione.Frontend
/regione/pubblico— pagina pubblica (nessunDashboardGate, nessun token): KPI, barra distribuzione stati, dataset prioritari, copertura HVD %, e i comuni come badge colorati per stato. Embeddabile/trasparente.Test
test_region_backend.py: l'endpoint risponde senza override direquire_user(anonimo) e il payload è aggregato (comuni = solo nome/provincia/stato). Backend 510 passed;tsc+next build(/regione/pubblico)+lint OK.Parte di #227 · ultima F6 (#233 trend + narrativa).
🤖 Generated with Claude Code