How pranesh2006-doc/cloud-scale works
CloudScale is a React dashboard for exploring simulated cloud infrastructure health and operations. Users enter through the routed dashboard, inspect overview and monitoring data, and use dedicated pages to manage instance state, scaling policies, traffic tests, deployments, and rate limits; preferences and simulated actions are shared through application context. The README describes a future Spring Boot integration, while the sampled traffic tester explicitly sends no real requests. The graph emphasizes documented simulation behavior and source-indexed dependencies; unsampled page internals are not inferred.
Main entry points: AppContext.jsx App state and actions · App.jsx Route application · Monitoring.jsx Metrics and alerts · Overview.jsx Infrastructure overview
Components 22
Dashboard Shell
- Route application
src/App.jsx - Dashboard layout
src/layouts/DashboardLayout.jsx - Navigation and alerts
src/components/Topbar.jsx
Shared Simulation State
- App state and actions
src/context/AppContext.jsx - Simulated cloud data
src/data/mockData.js - Persistent preferences
src/hooks/useLocalStorage.js - Backend-ready API client
src/services/api.js
Infrastructure Operations
- Infrastructure overview
src/pages/Overview.jsx - EC2 fleet management
src/pages/Instances.jsx - Metrics and alerts
src/pages/Monitoring.jsx - Scaling policies
src/pages/ScalingPolicies.jsx - Traffic load testing
src/pages/TrafficTesting.jsx - Rate-limit simulator
src/pages/RateLimiting.jsx - Deployment pipeline
src/pages/Deployments.jsx - Settings and connection
src/pages/Settings.jsx
Shared UI Components
- Chart presentation
src/components/ChartCard.jsx - Sortable data tables
src/components/DataTable.jsx - KPI cards
src/components/StatCard.jsx - Status indicators
src/components/StatusBadge.jsx - Metric formatters
src/utils/formatters.js
Other components
- Dashboard user
- Future Spring Boot backend
Connections 48
- Dashboard user → Route application: opens dashboard
README.md - Route application → App state and actions: provides state
src/App.jsx - Route application → Dashboard layout: routes through
src/App.jsx - Route application → Infrastructure overview: routes to
src/App.jsx - Route application → EC2 fleet management: routes to
src/App.jsx - Route application → Traffic load testing: routes to
src/App.jsx - Route application → Scaling policies: routes to
src/App.jsx - Route application → Metrics and alerts: routes to
src/App.jsx - Route application → Deployment pipeline: routes to
src/App.jsx - Route application → Rate-limit simulator: routes to
src/App.jsx - Route application → Settings and connection: routes to
src/App.jsx - Dashboard layout → Navigation and alerts: renders
src/layouts/DashboardLayout.jsx - Dashboard layout → App state and actions: uses shared state
- Navigation and alerts → App state and actions: reads and updates
src/components/Topbar.jsx - Navigation and alerts → Metrics and alerts: links to alerts
src/components/Topbar.jsx - App state and actions → Simulated cloud data: initializes and generates
src/context/AppContext.jsx - App state and actions → Persistent preferences: persists preferences
src/context/AppContext.jsx - Infrastructure overview → App state and actions: reads dashboard state
src/pages/Overview.jsx - EC2 fleet management → App state and actions: manages fleet state
src/pages/Instances.jsx - Metrics and alerts → App state and actions: reads metrics and alerts
src/pages/Monitoring.jsx - Scaling policies → App state and actions: reads scaling state
src/pages/ScalingPolicies.jsx - Traffic load testing → App state and actions: posts notifications
src/pages/TrafficTesting.jsx - Rate-limit simulator → App state and actions: updates limit config
src/pages/RateLimiting.jsx - Deployment pipeline → App state and actions: uses shared state
src/pages/Deployments.jsx - Settings and connection → App state and actions: updates preferences
src/pages/Settings.jsx - Settings and connection → Backend-ready API client: tests connection
- Backend-ready API client → Simulated cloud data: uses mock fallback
src/services/api.js - Infrastructure overview → Chart presentation: renders charts
src/pages/Overview.jsx - Infrastructure overview → KPI cards: renders KPIs
src/pages/Overview.jsx - Infrastructure overview → Status indicators: renders health status
src/pages/Overview.jsx - Infrastructure overview → Metric formatters: formats metrics
src/pages/Overview.jsx - EC2 fleet management → Sortable data tables: renders fleet table
src/pages/Instances.jsx - EC2 fleet management → KPI cards: renders KPIs
src/pages/Instances.jsx - EC2 fleet management → Status indicators: renders status
src/pages/Instances.jsx - EC2 fleet management → Metric formatters: formats values
src/pages/Instances.jsx - Metrics and alerts → Chart presentation: renders metrics
src/pages/Monitoring.jsx - Metrics and alerts → Sortable data tables: renders alert data
src/pages/Monitoring.jsx - Metrics and alerts → KPI cards: renders KPIs
src/pages/Monitoring.jsx - Metrics and alerts → Status indicators: renders status
src/pages/Monitoring.jsx - Metrics and alerts → Metric formatters: formats metrics
src/pages/Monitoring.jsx - Scaling policies → Sortable data tables: renders event data
src/pages/ScalingPolicies.jsx - Scaling policies → KPI cards: renders KPIs
src/pages/ScalingPolicies.jsx - Scaling policies → Status indicators: renders status
src/pages/ScalingPolicies.jsx - Traffic load testing → Chart presentation: renders RPS history
src/pages/TrafficTesting.jsx - Traffic load testing → KPI cards: renders KPIs
src/pages/TrafficTesting.jsx - Traffic load testing → Metric formatters: formats metrics
src/pages/TrafficTesting.jsx - Rate-limit simulator → Chart presentation: renders visualizations
src/pages/RateLimiting.jsx - Rate-limit simulator → KPI cards: renders KPIs
src/pages/RateLimiting.jsx