How git-happens-sih/project-reality-os works
Nirmaan Setu is a browser-based construction progress reporting and planner-review demo. The principal workflow is: an engineer drafts and submits a site report; the local demo matches report text to work tasks; the engineer confirms suggested tasks; a planner approves or rejects them; approvals update dashboard progress and the audit trail. The sampled code explicitly describes local-only storage and keyword matching, not server sync or trained AI. The page tree documents additional auth, onboarding, settings, FAQ, and recommendation experiences; their internal wiring is not established by the sampled excerpts.
Main entry points: ns-demo.js Demo UI controller · ns-demo-core.js Demo domain model · nirmaan-setu-planner-review.html Planner review · nirmaan-setu-site-report.html Site report
Components 21
Field reporting
- Site report
nirmaan-setu-site-report.html - Match confirmation
nirmaan-setu-match-confirmation.html - Processing screen
nirmaan-setu-ai-processing.html
Planner review
- Planner review
nirmaan-setu-planner-review.html - Delay conflict
nirmaan-setu-delay-conflict.html - Project dashboard
nirmaan-setu-dashboard.html - Audit history
nirmaan-setu-history.html - Sync status
nirmaan-setu-sync.html
App experience
- Landing page
nirmaan-setu-landing.html - Authentication
nirmaan-setu-auth.html - Auth flows
nirmaan-setu-auth-chooser.html - Onboarding
nirmaan-setu-onboarding.html - Settings
nirmaan-setu-settings.html - FAQ
nirmaan-setu-faq.html - Recommendations
recommendation-card.js
Local runtime
- Demo UI controller
ns-demo.js - Demo domain model
ns-demo-core.js - Browser storage
- Offline page cache
ns-sw.js
Other components
- Engineer
- Planner
Connections 22
- Engineer → Site report: writes report
- Site report → Demo UI controller: handles form
- Demo UI controller → Demo domain model: submits report
- Demo domain model → Browser storage: reads and writes
- Demo UI controller → Browser storage: loads demo state
- Demo UI controller → Processing screen: navigates
- Demo UI controller → Match confirmation: navigates
- Match confirmation → Demo UI controller: confirms tasks
- Demo UI controller → Demo domain model: matches and confirms
- Demo UI controller → Planner review: navigates
- Planner → Planner review: reviews queue
- Planner review → Demo UI controller: approves or rejects
- Demo UI controller → Demo domain model: records decision
- Demo UI controller → Project dashboard: renders progress
- Demo UI controller → Audit history: renders audit
- Demo UI controller → Delay conflict: opens conflict detail
- Demo UI controller → Sync status: renders dashboard view
- Demo UI controller → Offline page cache: registers
- Offline page cache → Browser storage: caches shell
- Landing page → Authentication: offers entry
- Authentication → Auth flows: continues auth
- Onboarding → Browser storage: stores preferences