How raunitkumar30/governscale works
GovernScale is a client-side governance productivity app: administrators create and cascade missions through five administrative tiers, frontline staff submit deliverables and evidence, and supervisors verify work. Scores and roll-ups support tier dashboards, reports, analytics, and decision support. The graph preserves those documented capabilities while distinguishing route/auth, domain data, and scoring layers. Some feature pages were not sampled; their presence and mission cascade are documented in the README, so those relationships are cited there rather than presented as inspected implementation calls.
Main entry points: App.jsx Application routes · government Government tier · department Department tier · team Team tier
Components 18
Access and navigation
- Application routes
client/src/App.jsx - Login
client/src/pages/auth/Login.jsx - Authentication context
client/src/pages/auth/AuthContext.jsx - Role route guard
client/src/components/auth/ProtectedRoute.jsx - Dashboard shell
client/src/components/layout/DashboardLayout.jsx
Governance structure
- Government tier
client/src/pages/government - Department tier
client/src/pages/department - Organization tier
client/src/pages/organization - Organization hierarchy
client/src/data/hierarchy.js
Work execution
- Team tier
client/src/pages/team - Employee tasks
client/src/pages/employee/EmployeeTasks.jsx
Performance insights
- Tier analytics
client/src/pages/government/GovernmentAnalytics.jsx - Tier reports
client/src/pages/department/DepartmentReports.jsx - Decision support
client/src/pages/government/DecisionSupport.jsx - Audit trail
client/src/pages/government/AuditLog.jsx
Client data and logic
- Local data store
client/src/utils/localStorage.js - Scoring engine
client/src/utils/scoringEngine.js
Other components
- Government users
Connections 26
- Government users → Application routes: opens app
client/src/App.jsx - Application routes → Login: routes login
client/src/App.jsx - Login → Authentication context: authenticates
client/src/pages/auth/Login.jsx - Application routes → Role route guard: protects routes
client/src/App.jsx - Role route guard → Authentication context: checks identity
client/src/components/auth/ProtectedRoute.jsx - Application routes → Government tier: routes tier pages
client/src/App.jsx - Application routes → Department tier: routes tier pages
client/src/App.jsx - Application routes → Organization tier: routes tier pages
client/src/App.jsx - Application routes → Team tier: routes tier pages
client/src/App.jsx - Application routes → Employee tasks: routes task page
client/src/App.jsx - Government tier → Department tier: cascades missions
README.md - Department tier → Organization tier: cascades directives
README.md - Organization tier → Team tier: allocates work
README.md - Team tier → Employee tasks: assigns tasks
README.md - Government tier → Organization hierarchy: manages structure
client/src/pages/government/OrganizationHierarchy.jsx - Government tier → Local data store: reads and writes
client/src/pages/government/GovernmentDashboard.jsx - Department tier → Local data store: reads and writes
client/src/pages/department/DepartmentDashboard.jsx - Employee tasks → Local data store: updates task data
README.md - Team tier → Local data store: persists work
client/src/pages/team/TeamDashboard.jsx - Government tier → Scoring engine: calculates scores
client/src/pages/government/GovernmentDashboard.jsx - Department tier → Scoring engine: calculates scores
client/src/pages/department/DepartmentDashboard.jsx - Employee tasks → Scoring engine: evaluates performance
client/src/pages/employee/EmployeeTasks.jsx - Government tier → Tier analytics: presents metrics
README.md - Department tier → Tier reports: presents reports
client/src/pages/department/DepartmentReports.jsx - Government tier → Decision support: reviews bottlenecks
README.md - Government tier → Audit trail: reviews activity
README.md