# telugujayaprakash/routemin-frontend architecture

> Architecture diagram of the GitHub repository telugujayaprakash/routemin-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/telugujayaprakash/routemin-frontend
- Repository: https://github.com/telugujayaprakash/routemin-frontend

## Overview

This is a React logistics-optimization application: users manage factories and warehouses, configure and run an optimization, then inspect its results and reports. Authentication gates the application; additional branches cover dashboards, history, audit logs, profile, and subscription payments. The graph follows documented routes and source-index references; unsampled pages and integrations are represented only where their relationships are supported, so some internal interactions are omitted.

Main entry points: [`src/App.jsx`](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/App.jsx) (Route application), [`src/api/config.js`](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/api/config.js) (HTTP API client), [`src/Pages/NewOptimization.jsx`](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/NewOptimization.jsx) (Optimization setup), [`src/Pages/Result.jsx`](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Result.jsx) (Optimization result)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Route application<br/>[App.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_api["HTTP API client<br/>[config.js]"]
end

subgraph group_identity["Identity and access"]
  node_authpages["Login and signup<br/>[Login.jsx]"]
  node_authstate["Authentication state<br/>[AuthSlice.js]"]
  node_guard["Protected routes<br/>[ProtectedRoute.jsx]"]
end

subgraph group_operations["Optimization operations"]
  node_factories["Factory management"]
  node_warehouses["Warehouse management"]
  node_factorydata["Factory state<br/>[FactorySlice.js]"]
  node_warehousedata["Warehouse state<br/>[WarehouseSlice.js]"]
  node_newrun["Optimization setup"]
  node_optimization["Optimization state"]
end

subgraph group_insights["Results and insights"]
  node_result["Optimization result<br/>[Result.jsx]"]
  node_visualization["Route visualization"]
  node_history["Optimization history"]
  node_reports["Reports<br/>[Reports.jsx]"]
  node_reportstate["Report state<br/>[ReportSlice.js]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_audit["Audit logs<br/>[AuditLogs.jsx]"]
end

subgraph group_account["Account and billing"]
  node_payments["Subscription pricing<br/>[PricingSection.jsx]"]
  node_paymentstate["Payment state<br/>[PaymentSlice.js]"]
  node_profile["Profile and invoices<br/>[ProfilePage.jsx]"]
end

node_user(("User"))
node_backend["Application backend"]

node_user -.->|"navigates"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_authpages
node_app -->|"protects"| node_guard
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_factories
node_app -->|"routes to"| node_warehouses
node_app -->|"routes to"| node_newrun
node_app -->|"routes to"| node_history
node_app -->|"routes to"| node_reports
node_app -->|"routes to"| node_audit
node_app -->|"routes to"| node_result
node_app -->|"routes to"| node_payments
node_app -->|"routes to"| node_profile
node_authpages -->|"dispatches"| node_authstate
node_authstate -->|"requests"| node_api
node_guard -.->|"checks state"| node_authstate
node_factories -.->|"uses state"| node_factorydata
node_warehouses -.->|"uses state"| node_warehousedata
node_newrun -->|"loads factories"| node_factorydata
node_newrun -->|"loads warehouses"| node_warehousedata
node_newrun -->|"dispatches run"| node_optimization
node_factorydata -->|"requests"| node_api
node_warehousedata -->|"requests"| node_api
node_optimization -->|"requests"| node_api
node_newrun -->|"navigates after run"| node_result
node_result -->|"renders"| node_visualization
node_result -->|"fetches result"| node_optimization
node_result -->|"requests report"| node_reportstate
node_reports -->|"dispatches"| node_reportstate
node_reportstate -->|"requests"| node_api
node_payments -->|"uses state"| node_paymentstate
node_paymentstate -->|"requests"| node_api
node_profile -.->|"loads invoices"| node_paymentstate
node_api -->|"sends HTTP requests"| node_backend
node_dashboard -.->|"separate route"| node_audit

click node_app "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/App.jsx"
click node_landing "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/LandingPages/LandingPage.jsx"
click node_authpages "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Auth/Login.jsx"
click node_authstate "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Auth/AuthSlice.js"
click node_guard "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/ProtectedRoute.jsx"
click node_factories "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/FactoryManagement.jsx"
click node_warehouses "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/WarehouseManagement.jsx"
click node_factorydata "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Factory/FactorySlice.js"
click node_warehousedata "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Warehouse/WarehouseSlice.js"
click node_newrun "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/NewOptimization.jsx"
click node_optimization "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Optimisation/OptimisationSlice.js"
click node_result "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Result.jsx"
click node_visualization "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Components/Result/RouteVisualization.jsx"
click node_history "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/OptimisationHistory.jsx"
click node_reports "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Reports.jsx"
click node_reportstate "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Reports/ReportSlice.js"
click node_dashboard "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Dashboard.jsx"
click node_audit "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/AuditLogs.jsx"
click node_payments "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/PricingSection.jsx"
click node_paymentstate "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Payments/PaymentSlice.js"
click node_profile "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/ProfilePage.jsx"
click node_api "https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/api/config.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_landing,node_api,node_user toneBlue
class node_authpages,node_authstate,node_guard toneAmber
class node_factories,node_warehouses,node_factorydata,node_warehousedata,node_newrun,node_optimization toneMint
class node_result,node_visualization,node_history,node_reports,node_reportstate,node_dashboard,node_audit toneRose
class node_payments,node_paymentstate,node_profile,node_backend toneIndigo
```

## Components

### Application entry

- [Route application](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/App.jsx): `src/App.jsx`
- [Landing page](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/LandingPages/LandingPage.jsx): `src/LandingPages/LandingPage.jsx`
- [HTTP API client](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/api/config.js): `src/api/config.js`

### Identity and access

- [Login and signup](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Auth/Login.jsx): `src/Pages/Auth/Login.jsx`
- [Authentication state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Auth/AuthSlice.js): `src/Redux/Auth/AuthSlice.js`
- [Protected routes](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/ProtectedRoute.jsx): `src/Pages/ProtectedRoute.jsx`

### Optimization operations

- [Factory management](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/FactoryManagement.jsx): `src/Pages/FactoryManagement.jsx`
- [Warehouse management](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/WarehouseManagement.jsx): `src/Pages/WarehouseManagement.jsx`
- [Factory state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Factory/FactorySlice.js): `src/Redux/Factory/FactorySlice.js`
- [Warehouse state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Warehouse/WarehouseSlice.js): `src/Redux/Warehouse/WarehouseSlice.js`
- [Optimization setup](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/NewOptimization.jsx): `src/Pages/NewOptimization.jsx`
- [Optimization state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Optimisation/OptimisationSlice.js): `src/Redux/Optimisation/OptimisationSlice.js`

### Results and insights

- [Optimization result](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Result.jsx): `src/Pages/Result.jsx`
- [Route visualization](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Components/Result/RouteVisualization.jsx): `src/Components/Result/RouteVisualization.jsx`
- [Optimization history](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/OptimisationHistory.jsx): `src/Pages/OptimisationHistory.jsx`
- [Reports](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Reports.jsx): `src/Pages/Reports.jsx`
- [Report state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Reports/ReportSlice.js): `src/Redux/Reports/ReportSlice.js`
- [Dashboard](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/Dashboard.jsx): `src/Pages/Dashboard.jsx`
- [Audit logs](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/AuditLogs.jsx): `src/Pages/AuditLogs.jsx`

### Account and billing

- [Subscription pricing](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/PricingSection.jsx): `src/Pages/PricingSection.jsx`
- [Payment state](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Redux/Payments/PaymentSlice.js): `src/Redux/Payments/PaymentSlice.js`
- [Profile and invoices](https://github.com/telugujayaprakash/routemin-frontend/blob/main/src/Pages/ProfilePage.jsx): `src/Pages/ProfilePage.jsx`

### Other components

- **User**
- **Application backend**

## Connections

- User → Route application: navigates
- Route application → Landing page: routes to (evidence: `src/App.jsx`)
- Route application → Login and signup: routes to (evidence: `src/App.jsx`)
- Route application → Protected routes: protects (evidence: `src/App.jsx`)
- Route application → Dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Factory management: routes to (evidence: `src/App.jsx`)
- Route application → Warehouse management: routes to (evidence: `src/App.jsx`)
- Route application → Optimization setup: routes to (evidence: `src/App.jsx`)
- Route application → Optimization history: routes to (evidence: `src/App.jsx`)
- Route application → Reports: routes to (evidence: `src/App.jsx`)
- Route application → Audit logs: routes to (evidence: `src/App.jsx`)
- Route application → Optimization result: routes to (evidence: `src/App.jsx`)
- Route application → Subscription pricing: routes to (evidence: `src/App.jsx`)
- Route application → Profile and invoices: routes to (evidence: `src/App.jsx`)
- Login and signup → Authentication state: dispatches (evidence: `src/Pages/Auth/Login.jsx`)
- Authentication state → HTTP API client: requests (evidence: `src/Redux/Auth/AuthSlice.js`)
- Protected routes → Authentication state: checks state
- Factory management → Factory state: uses state
- Warehouse management → Warehouse state: uses state
- Optimization setup → Factory state: loads factories (evidence: `src/Pages/NewOptimization.jsx`)
- Optimization setup → Warehouse state: loads warehouses (evidence: `src/Pages/NewOptimization.jsx`)
- Optimization setup → Optimization state: dispatches run (evidence: `src/Pages/NewOptimization.jsx`)
- Factory state → HTTP API client: requests (evidence: `src/Redux/Factory/FactorySlice.js`)
- Warehouse state → HTTP API client: requests (evidence: `src/Redux/Warehouse/WarehouseSlice.js`)
- Optimization state → HTTP API client: requests (evidence: `src/Redux/Optimisation/OptimisationSlice.js`)
- Optimization setup → Optimization result: navigates after run (evidence: `src/Pages/NewOptimization.jsx`)
- Optimization result → Route visualization: renders (evidence: `src/Pages/Result.jsx`)
- Optimization result → Optimization state: fetches result (evidence: `src/Pages/Result.jsx`)
- Optimization result → Report state: requests report (evidence: `src/Pages/Result.jsx`)
- Reports → Report state: dispatches (evidence: `src/Pages/Reports.jsx`)
- Report state → HTTP API client: requests (evidence: `src/Redux/Reports/ReportSlice.js`)
- Subscription pricing → Payment state: uses state (evidence: `src/Pages/PricingSection.jsx`)
- Payment state → HTTP API client: requests (evidence: `src/Redux/Payments/PaymentSlice.js`)
- Profile and invoices → Payment state: loads invoices
- HTTP API client → Application backend: sends HTTP requests (evidence: `src/api/config.js`)
- Dashboard → Audit logs: separate route
