How ndlhoangndl/ansinh360 works
AN SINH 360 is a policy, service, and opportunity guide for workers in Liên Chiểu. Its competition demo presents a situation-specific journey—job loss, housing difficulty, or having a young child—then provides contextual guidance, opportunities, and practical next steps with official-source provenance. The web demo is explicitly standalone; the .NET Phase 1 backend separately validates and imports CSV datasets rather than powering the demo. The graph preserves both product journeys and the backend’s data-foundation workflow. Backend links are supported by indexed references and excerpts; the frontend overview relies on README statements where component wiring was not shown.
Main entry points: demo-app.tsx Journey interface · Program.cs Phase 1 CLI · PostgresDatasetImporter.cs PostgreSQL importer · DatasetValidator.cs Dataset validator
Components 27
Demo entry
- Demo page
apps/web/app/page.tsx - Journey interface
apps/web/components/demo-app.tsx
Worker journeys
- Situation analysis
apps/web/components/analysis-screen.tsx - Job-loss journey
apps/web/lib/job-journey.ts - Housing journey
apps/web/components/housing-journey.tsx - Housing guidance logic
apps/web/lib/housing-journey.ts - Child journey
apps/web/components/child-journey.tsx - Child guidance logic
apps/web/lib/child-journey.ts
Guidance and actions
- Job results
apps/web/components/job-results.tsx - Job opportunities
apps/web/components/job-opportunities.tsx - Job action plan
apps/web/components/job-action-plan.tsx - Service handoff
apps/web/components/job-service-handoff.tsx - Local action plans
apps/web/components/local-action-plan.tsx - Family housing results
apps/web/components/family-housing-results.tsx - Source disclosure
apps/web/components/source-badge.tsx
Dataset foundation
- Demo content
apps/web/lib/competition-demo.ts - Demo data access
apps/web/lib/demo.ts - CSV reader
src/AnSinh360.Application/CsvDatasetReader.cs - Dataset snapshot
src/AnSinh360.Application/DatasetSnapshot.cs - Dataset validator
src/AnSinh360.Application/DatasetValidator.cs - Import planner
src/AnSinh360.Application/ImportPlanner.cs - Dataset records
src/AnSinh360.Domain/Service.cs
Backend operations
- Phase 1 CLI
src/AnSinh360.Cli/Program.cs - PostgreSQL importer
src/AnSinh360.Infrastructure/PostgresDatasetImporter.cs - Dataset database
src/AnSinh360.Infrastructure/DatasetDbContext.cs - Health API
src/AnSinh360.Api/Program.cs
Other components
- Worker
Connections 31
- Worker → Demo page: opens demo
README.md - Demo page → Journey interface: renders
- Journey interface → Situation analysis: shows analysis
apps/web/components/demo-app.tsx - Journey interface → Job results: shows results
apps/web/components/demo-app.tsx - Journey interface → Job action plan: shows actions
apps/web/components/demo-app.tsx - Journey interface → Housing journey: shows journey
apps/web/components/demo-app.tsx - Journey interface → Child journey: shows journey
apps/web/components/demo-app.tsx - Journey interface → Family housing results: shows results
- Job results → Job opportunities: renders
apps/web/components/job-results.tsx - Job action plan → Service handoff: renders
apps/web/components/job-action-plan.tsx - Child journey → Source disclosure: renders
apps/web/components/child-journey.tsx - Housing journey → Source disclosure: renders
apps/web/components/housing-journey.tsx - Job results → Source disclosure: renders
apps/web/components/job-results.tsx - Job action plan → Source disclosure: renders
apps/web/components/job-action-plan.tsx - Child journey → Child guidance logic: uses guidance
apps/web/lib/child-journey.ts - Housing journey → Housing guidance logic: uses guidance
apps/web/lib/housing-journey.ts - Child guidance logic → Demo content: reads fixtures
apps/web/lib/child-journey.ts - Housing guidance logic → Demo content: reads fixtures
apps/web/lib/housing-journey.ts - Job-loss journey → Journey interface: supports journey
- Demo data access → Demo content: reads fixtures
apps/web/lib/demo.ts - Phase 1 CLI → CSV reader: reads CSV
src/AnSinh360.Cli/Program.cs - CSV reader → Dataset snapshot: builds snapshot
src/AnSinh360.Application/CsvDatasetReader.cs - Phase 1 CLI → Dataset validator: validates data
src/AnSinh360.Cli/Program.cs - Dataset validator → Dataset snapshot: checks structure
src/AnSinh360.Application/DatasetValidator.cs - Dataset validator → Dataset records: checks references
src/AnSinh360.Application/DatasetValidator.cs - Phase 1 CLI → Import planner: plans import
src/AnSinh360.Cli/Program.cs - Phase 1 CLI → PostgreSQL importer: imports dataset
src/AnSinh360.Cli/Program.cs - PostgreSQL importer → Dataset validator: validates before import
src/AnSinh360.Infrastructure/PostgresDatasetImporter.cs - PostgreSQL importer → Import planner: plans changes
src/AnSinh360.Infrastructure/PostgresDatasetImporter.cs - PostgreSQL importer → Dataset database: reads and writes
src/AnSinh360.Infrastructure/PostgresDatasetImporter.cs - Dataset database → Dataset snapshot: reads snapshot
src/AnSinh360.Infrastructure/DatasetDbContext.cs