How david0450/ceuta-me-preocupa works
Ceuta Me Preocupa is a citizen-submission and human-review system. Its main workflow collects a concern, separates restricted originals from the working record, obtains local AI proposals, and requires reviewer confirmation before routing. The README documents the AI stages and database handoff; sampled Laravel code confirms submission storage and the review interface’s model usage. Unsampled route wiring and the exact Python database implementation are not asserted beyond documented relationships.
Main entry points: qwen_chat.py AI pipeline · SugerenciaController.php Submission handler · ⚡revision-sugerencia.blade.php Review panel · Sugerencia.php Review and routing
Components 19
Public intake
- Submission form
web/backend/resources/views/index.blade.php - Submission handler
web/backend/app/Http/Controllers/SugerenciaController.php - Input validation
web/backend/app/Http/Requests/GuardarSugerenciaRequest.php - Category taxonomy
web/backend/app/Models/Categoria.php
AI processing
- AI pipeline
ai/qwen_chat.py - De-identification
ai/qwen_chat.py - Emergency check
ai/qwen_chat.py - Classification proposal
ai/qwen_chat.py - Local Qwen model
Human review
- Review panel
web/backend/resources/views/components/admin/⚡revision-sugerencia.blade.php - Review and routing
web/backend/app/Models/Sugerencia.php - Reviewer authentication
web/backend/routes/auth.php
Records and reporting
- MySQL / MariaDB
- AI proposals
web/backend/app/Models/PropuestaIa.php - Change history
web/backend/app/Models/HistorialSugerencia.php - Public category metrics
web/backend/resources/views/components/metricas-categorias.blade.php
Other components
- Citizen
- Authorised reviewer
- Competent public body
Connections 19
- Citizen → Submission form: submits concern
README.md - Submission form → Submission handler: posts submission
README.md - Submission handler → Input validation: validates with
web/backend/app/Http/Controllers/SugerenciaController.php - Submission handler → Category taxonomy: loads categories
web/backend/app/Http/Controllers/SugerenciaController.php - Submission handler → MySQL / MariaDB: stores separated records
web/backend/app/Http/Controllers/SugerenciaController.php - MySQL / MariaDB → AI pipeline: provides pending rows
README.md - AI pipeline → De-identification: de-identifies text
README.md - AI pipeline → Emergency check: checks keywords
README.md - AI pipeline → Classification proposal: proposes classification
README.md - AI pipeline → Local Qwen model: runs Qwen3-8B
README.md - AI pipeline → AI proposals: writes proposals
README.md - AI proposals → MySQL / MariaDB: persists proposals
README.md - Authorised reviewer → Review panel: reviews submission
README.md - Review panel → AI proposals: displays proposal
web/backend/resources/views/components/admin/⚡revision-sugerencia.blade.php - Review panel → Review and routing: confirms and updates
web/backend/resources/views/components/admin/⚡revision-sugerencia.blade.php - Review and routing → Change history: records changes
web/backend/app/Models/Sugerencia.php - Review and routing → Competent public body: routes submission
README.md - Reviewer authentication → Authorised reviewer: authenticates
web/backend/routes/auth.php - MySQL / MariaDB → Public category metrics: supplies category counts
README.md