How anassk-cell/sih_solution_1 works
TrackSync is a Mumbai suburban railway maintenance-block planning dashboard. Control-room or maintenance users configure a block, inspect a suggested safe window and its train/passenger impact, then review or approve the plan; the UI also exposes presets, reports, and settings. The sampled code shows a client-side React application with local sample data, not a demonstrated backend, external optimizer, or passenger-notification integration. Arrows reflect the documented app composition and explicit component data references; unsampled modules are represented only where the source index supports their role.
Main entry points: App.tsx Dashboard State · mumbaiRailwayData.ts Railway Sample Data · BottomSummary.tsx Weekly and Block Summary · MaintenancePlanner.tsx Maintenance Planner
Components 20
Application Shell
- React Entry
src/main.tsx - Dashboard State
src/App.tsx - Header and Alerts
src/components/Header.tsx - Navigation
src/components/Sidebar.tsx - Optimizer Settings
src/components/tabs/SettingsTab.tsx
Block Planning
- Maintenance Planner
src/components/MaintenancePlanner.tsx - Scenario Presets
src/components/ScenarioPresetsModal.tsx - Time Customization
src/components/CustomizeTimeModal.tsx - Plan Approval
src/components/ConfirmPanel.tsx
Operations Views
- Corridor Timeline
src/components/TimelineView.tsx - Block Details
src/components/BlockDetailsModal.tsx - Weekly and Block Summary
src/components/BottomSummary.tsx - Operational Metrics
src/components/MetricCards.tsx - Progress Indicator
src/components/CircularProgress.tsx
Impact and Reporting
- Passenger Forecast
src/components/PassengerForecast.tsx - Passenger Alert
src/components/PassengerAlertModal.tsx - Execution Reports
src/components/tabs/ReportsTab.tsx
Railway Reference Data
- Railway Sample Data
src/data/mumbaiRailwayData.ts - Domain Types
src/types.ts
Other components
- Railway User
Connections 27
- Railway User → React Entry: opens dashboard
src/main.tsx - React Entry → Dashboard State: renders
src/main.tsx - Dashboard State → Header and Alerts: renders
src/App.tsx - Dashboard State → Navigation: renders
src/App.tsx - Dashboard State → Maintenance Planner: renders
src/App.tsx - Dashboard State → Scenario Presets: renders
src/App.tsx - Dashboard State → Time Customization: renders
src/App.tsx - Dashboard State → Passenger Alert: renders
src/App.tsx - Dashboard State → Corridor Timeline: renders
src/App.tsx - Dashboard State → Plan Approval: renders
src/App.tsx - Dashboard State → Weekly and Block Summary: renders
src/App.tsx - Dashboard State → Execution Reports: renders
src/App.tsx - Dashboard State → Optimizer Settings: renders
src/App.tsx - Dashboard State → Block Details: renders
src/App.tsx - Dashboard State → Operational Metrics: renders
src/App.tsx - Dashboard State → Passenger Forecast: renders
src/App.tsx - Dashboard State → Railway Sample Data: initializes plan from
src/App.tsx - Maintenance Planner → Dashboard State: submits plan changes
src/App.tsx - Scenario Presets → Dashboard State: selects scenario
src/App.tsx - Plan Approval → Dashboard State: submits approval
src/App.tsx - Weekly and Block Summary → Dashboard State: selects block
src/App.tsx - Corridor Timeline → Railway Sample Data: reads timeline slots
src/components/TimelineView.tsx - Weekly and Block Summary → Railway Sample Data: reads sample blocks
src/components/BottomSummary.tsx - Execution Reports → Railway Sample Data: reads report data
src/components/tabs/ReportsTab.tsx - Maintenance Planner → Railway Sample Data: uses railway data
src/components/MaintenancePlanner.tsx - Operational Metrics → Progress Indicator: renders
src/components/MetricCards.tsx - Weekly and Block Summary → Progress Indicator: renders
src/components/BottomSummary.tsx