How javierrojas62/atencion_ciudadana works
Atención Ciudadana is a Flutter mobile app backed by Supabase for reporting and resolving neighborhood issues. A resident registers or signs in, submits a categorized report with a photo, description and GPS location, and can track or edit a pending report. An operator works through neighborhoods with pending reports and closes one with a repair photo; administrators manage users and neighborhoods and review dashboards. The README documents database-side status, permissions and hash-chain behavior. Source excerpts cover no Dart or SQL implementation, so relationships below cite documented capabilities rather than inspected calls.
Main entry points: reclamo_page.dart Report submission · admin_provider.dart Admin data access · esquema PostgreSQL schema and rules · mi_reclamo_detalle_page.dart Report detail
Components 25
Accounts and roles
- Sign-in and registration
lib/src/pages/login_page.dart - Authentication state
lib/src/providers/auth_provider.dart - Resident registration
lib/src/pages/registro_page.dart
Resident reports
- Report submission
lib/src/pages/reclamo_page.dart - Report data access
lib/src/providers/reclamos_provider.dart - Report models
lib/src/models/reclamo_model.dart - My reports
lib/src/pages/mis_reclamos_page.dart - Report detail
lib/src/pages/mi_reclamo_detalle_page.dart - Camera capture
lib/src/services/camara_service.dart - GPS location
lib/src/services/ubicacion_service.dart - Local notifications
lib/src/services/notification_service.dart - Report map
lib/src/widgets/mapa_ubicacion.dart
Operator workflow
- Pending neighborhoods
lib/src/pages/operario_page.dart - Neighborhood reports
lib/src/pages/operario_barrio_page.dart - Resolve report
lib/src/pages/reclamo_detalle_page.dart
Administration
- Admin dashboard
lib/src/pages/admin/dashboard_tab.dart - User and area management
lib/src/pages/admin_page.dart - Admin data access
lib/src/providers/admin_provider.dart
Supabase backend
- Supabase Auth
- PostgreSQL schema and rules
supabase/esquema - Supabase Storage
- Report categories
lib/src/providers/categorias_provider.dart
Other components
- Resident
- Operator
- Administrator
Connections 25
- Resident → Resident registration: registers
README.md - Resident → Sign-in and registration: signs in
README.md - Sign-in and registration → Supabase Auth: authenticates
README.md - Resident → Report submission: submits report
README.md - Report submission → Camera capture: captures photo
README.md - Report submission → GPS location: gets GPS
README.md - Report submission → Report categories: selects category
README.md - Report submission → Report data access: sends report
- Report data access → PostgreSQL schema and rules: stores report
README.md - Report submission → Local notifications: notifies outcome
README.md - Resident → My reports: reviews history
README.md - Resident → Report detail: views or edits
README.md - Report detail → Supabase Storage: loads photos
README.md - Report detail → Report map: shows location
README.md - Operator → Pending neighborhoods: views workload
README.md - Pending neighborhoods → Neighborhood reports: opens neighborhood
README.md - Operator → Resolve report: resolves report
README.md - Resolve report → Supabase Storage: uploads repair photo
README.md - Resolve report → PostgreSQL schema and rules: records resolution
README.md - Administrator → Admin dashboard: reviews metrics
README.md - Admin dashboard → Admin data access: loads summaries
- Admin data access → PostgreSQL schema and rules: reads dashboard views
README.md - Administrator → User and area management: manages accounts
README.md - User and area management → Admin data access: updates records
- Admin data access → PostgreSQL schema and rules: manages users and areas
README.md