# equipe-rocket-tech/emap-cco-frontend-main architecture

> Architecture diagram of the GitHub repository equipe-rocket-tech/emap-cco-frontend-main, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/equipe-rocket-tech/emap-cco-frontend-main
- Repository: https://github.com/equipe-rocket-tech/emap-cco-frontend-main

## Overview

This is a browser-based COPI/CCO operational dashboard for monitoring terminal vehicle movements, operational berths, alerts, and reports. The user-facing flow begins with the login screen, which stores an operator session and redirects to the dashboard; dashboard behavior is concentrated in the large `script.js` module, including API integration and operational views. The excerpts show only selected parts of that module, so the graph preserves visible interactions and documented login capabilities without inferring unshown subsystem wiring.

Main entry points: [`script.js`](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js) (Operations dashboard), [`login.js`](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/login.js) (Login screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_login["Login screen<br/>[login.js]"]
  node_session[("Browser session storage")]
end

subgraph group_integration["Integration"]
  node_api["API integration<br/>[script.js]"]
  node_backend[("CCO API")]
end

subgraph group_operations["Operations"]
  node_dashboard["Operations dashboard<br/>[script.js]"]
  node_vehicle["Vehicle monitoring<br/>[script.js]"]
  node_berths["Berth monitoring<br/>[script.js]"]
  node_alerts["Alert management<br/>[script.js]"]
end

subgraph group_analysis["Analysis"]
  node_movements["Movement analysis<br/>[script.js]"]
  node_reports["Operational reports<br/>[script.js]"]
end

node_operator(("Operator"))

node_operator -->|"enters credentials"| node_login
node_login -->|"stores session"| node_session
node_login -->|"redirects after login"| node_dashboard
node_dashboard -->|"uses API integration"| node_api
node_api -->|"fetches API"| node_backend
node_dashboard -->|"renders alerts"| node_alerts
node_dashboard -->|"refreshes movements"| node_movements
node_dashboard -->|"filters reports"| node_reports

click node_login "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/login.js"
click node_dashboard "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_api "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_vehicle "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_berths "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_alerts "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_movements "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js"
click node_reports "https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.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_login,node_session toneBlue
class node_api,node_backend toneAmber
class node_dashboard,node_vehicle,node_berths,node_alerts toneMint
class node_movements,node_reports toneRose
class node_operator toneIndigo
```

## Components

### Access

- [Login screen](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/login.js): `login.js`
- **Browser session storage**

### Integration

- [API integration](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`
- **CCO API**

### Operations

- [Operations dashboard](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`
- [Vehicle monitoring](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`
- [Berth monitoring](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`
- [Alert management](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`

### Analysis

- [Movement analysis](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`
- [Operational reports](https://github.com/equipe-rocket-tech/emap-cco-frontend-main/blob/main/script.js): `script.js`

### Other components

- **Operator**

## Connections

- Operator → Login screen: enters credentials (evidence: `login.js`)
- Login screen → Browser session storage: stores session (evidence: `login.js`)
- Login screen → Operations dashboard: redirects after login (evidence: `login.js`)
- Operations dashboard → API integration: uses API integration (evidence: `script.js`)
- API integration → CCO API: fetches API (evidence: `script.js`)
- Operations dashboard → Alert management: renders alerts (evidence: `script.js`)
- Operations dashboard → Movement analysis: refreshes movements (evidence: `script.js`)
- Operations dashboard → Operational reports: filters reports (evidence: `script.js`)
