How sarfarajmulla-data/designevos works
EVOS is a role-based EV depot operations prototype. Managers and drivers enter through the browser workspace: route selection opens operational views, shared state combines browser-local assumptions with deterministic simulation, and service calls can request live parameters from the Node API. The product then exposes scheduling and readiness, energy and sustainability trade-offs, battery estimates, alerts, scenarios, experiments, data import, and rationale; a driver view focuses on one vehicle. Backend connectors optionally enrich parameters from public sources. Evidence is strongest for the documented runtime and indexed imports; unsampled page implementations and backend internals are represented only at subsystem level.
Main entry points: store.tsx Operational state · AppRoutes.tsx Page routing · server.mjs HTTP API · App.tsx App entry
Components 24
User experience
- Public site
src/site/Site.tsx - App entry
src/App.tsx - Hash routing
src/lib/router.tsx - Page routing
src/app/AppRoutes.tsx - Workspace shell
src/app/Shell.tsx
Fleet operations
- Manager views
src/app/pages1.tsx - Energy and battery
src/app/pages2.tsx - Scenarios and alerts
src/app/pages3.tsx - Dataset management
src/app/pages4.tsx - Experiments and maintenance
src/app/pages5.tsx - Driver view
src/app/driver.tsx
Simulation and data
- Operational state
src/lib/store.tsx - Deterministic model
src/lib/sim.ts - Data services
src/services/index.ts - Contracts and catalog
src/data/contracts.ts - Local data importer
src/lib/importer.ts
Backend and sources
- HTTP API
backend/server.mjs - Backend engine
backend/core/engine.mjs - Demo data
backend/core/demo-data.mjs - Source connectors
backend/connectors/sources.mjs - TTL cache
backend/core/cache.mjs
Other components
- Manager or driver
- Public data APIs
- sessionStorage
Connections 32
- Manager or driver → Public site: browses
README.md - Manager or driver → App entry: uses workspace
README.md - Public site → Hash routing: links to app
src/site/Site.tsx - App entry → Hash routing: reads route
src/App.tsx - App entry → Public site: renders
src/App.tsx - Hash routing → Page routing: selects route
src/app/AppRoutes.tsx - Page routing → Workspace shell: wraps pages
src/app/AppRoutes.tsx - Page routing → Manager views: renders
src/app/AppRoutes.tsx - Page routing → Energy and battery: renders
src/app/AppRoutes.tsx - Page routing → Scenarios and alerts: renders
src/app/AppRoutes.tsx - Page routing → Dataset management: renders
src/app/AppRoutes.tsx - Page routing → Experiments and maintenance: renders
src/app/AppRoutes.tsx - Page routing → Driver view: renders
src/app/AppRoutes.tsx - Workspace shell → Operational state: reads state
src/app/Shell.tsx - Manager views → Operational state: reads state
src/app/pages1.tsx - Energy and battery → Operational state: reads state
src/app/pages2.tsx - Scenarios and alerts → Operational state: reads state
src/app/pages3.tsx - Dataset management → Local data importer: imports data
src/app/pages4.tsx - Dataset management → Contracts and catalog: uses definitions
src/app/pages4.tsx - Experiments and maintenance → Operational state: reads state
src/app/pages5.tsx - Driver view → Operational state: reads state
src/app/driver.tsx - Operational state → Deterministic model: derives outputs
src/lib/store.tsx - Operational state → Data services: fetches parameters
src/lib/store.tsx - Operational state → sessionStorage: persists assumptions
src/lib/store.tsx - Data services → Deterministic model: calculates locally
src/services/index.ts - Data services → HTTP API: requests live parameters
src/services/index.ts - Local data importer → Contracts and catalog: validates against
src/lib/importer.ts - HTTP API → Backend engine: delegates calculations
backend/server.mjs - HTTP API → Demo data: loads fallback data
backend/server.mjs - HTTP API → Source connectors: requests source data
backend/server.mjs - HTTP API → TTL cache: uses cache
backend/server.mjs - Source connectors → Public data APIs: queries sources
README.md