# cityofsandy/calix-csr-console architecture

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

- Interactive diagram: https://gitdiagram.com/cityofsandy/calix-csr-console
- Repository: https://github.com/cityofsandy/calix-csr-console

## Overview

The Calix CSR Console is a browser-based tool for looking up and troubleshooting CPEs across Calix Cloud, SMx, and CMS, with additional alarm and management-system configuration views. A CSR enters through the routed UI; CPE search uses configured system connections and presents returned records, while other views expose alarms or manage those connections. The README also documents a proxy role for forwarding Cloud authentication headers. Edges reflect the excerpts and README; some subsystem implementations were not sampled, so their internal relationships are omitted.

Main entry points: [`src/components/cpe/cpeSearch.jsx`](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeSearch.jsx) (CPE search), [`src/index.jsx`](https://github.com/cityofsandy/calix-csr-console/blob/master/src/index.jsx) (Application router), [`src/components/homepage/homepageAlarms.jsx`](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/homepage/homepageAlarms.jsx) (Alarm view), [`src/components/systems/systemsMgmt.jsx`](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/systems/systemsMgmt.jsx) (System management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["CSR interface"]
  node_router["Application router<br/>[index.jsx]"]
  node_navigation["Navigation<br/>[nav.jsx]"]
  node_home["Homepage<br/>[homepageApp.jsx]"]
  node_cpeapp["CPE view<br/>[cpeApp.jsx]"]
  node_systemsapp["Systems view<br/>[systemsApp.jsx]"]
end

subgraph group_domain["Troubleshooting"]
  node_alarms["Alarm view<br/>[homepageAlarms.jsx]"]
  node_search["CPE search<br/>[cpeSearch.jsx]"]
  node_results["CPE results<br/>[cpeShow.jsx]"]
  node_management["System management<br/>[systemsMgmt.jsx]"]
  node_provider["Provider alarms"]
end

subgraph group_connectors["Calix connections"]
  node_cloud["Cloud client<br/>[index.js]"]
  node_smx["SMx client<br/>[index.js]"]
  node_cms["CMS client<br/>[index.js]"]
  node_proxy["Request proxy<br/>[index.js]"]
end

subgraph group_support["Shared support"]
  node_systems[("Configured systems<br/>[common.jsx]")]
  node_alerts["Alert display<br/>[alerts.jsx]"]
  node_errors["Error pages"]
end

node_csr(("CSR"))

node_csr -->|"opens"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_cpeapp
node_router -->|"routes to"| node_systemsapp
node_router -->|"routes to"| node_errors
node_home -->|"renders"| node_alarms
node_cpeapp -->|"renders"| node_search
node_search -->|"reads"| node_systems
node_management -->|"reads and writes"| node_systems
node_search -->|"queries"| node_cloud
node_search -->|"queries"| node_smx
node_search -->|"queries"| node_cms
node_search -->|"renders"| node_results
node_home -->|"renders"| node_alarms
node_alarms -->|"fetches alarms"| node_smx
node_alarms -->|"fetches alarms"| node_cms
node_provider -->|"reads"| node_systems
node_provider -->|"loads client"| node_smx
node_provider -->|"loads client"| node_cms
node_management -->|"tests connection"| node_cloud
node_management -->|"tests connection"| node_smx
node_management -.->|"tests connection"| node_cms
node_alarms -->|"renders"| node_alerts
node_provider -->|"renders"| node_alerts
node_search -.->|"uses proxy"| node_proxy
node_cloud -.->|"forwards requests"| node_proxy

click node_router "https://github.com/cityofsandy/calix-csr-console/blob/master/src/index.jsx"
click node_navigation "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/navigation/nav.jsx"
click node_home "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/homepage/homepageApp.jsx"
click node_alarms "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/homepage/homepageAlarms.jsx"
click node_cpeapp "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeApp.jsx"
click node_search "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeSearch.jsx"
click node_results "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeShow.jsx"
click node_systemsapp "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/systems/systemsApp.jsx"
click node_management "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/systems/systemsMgmt.jsx"
click node_provider "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/serviceProvider/serviceProvider.jsx"
click node_cloud "https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/cloud/index.js"
click node_smx "https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/smx/index.js"
click node_cms "https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/cms/index.js"
click node_proxy "https://github.com/cityofsandy/calix-csr-console/blob/master/src/proxy/index.js"
click node_systems "https://github.com/cityofsandy/calix-csr-console/blob/master/src/js/common.jsx"
click node_alerts "https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/common/alerts.jsx"
click node_errors "https://github.com/cityofsandy/calix-csr-console/tree/master/src/components/errorMessages"

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_router,node_navigation,node_home,node_cpeapp,node_systemsapp toneBlue
class node_alarms,node_search,node_results,node_management,node_provider toneAmber
class node_cloud,node_smx,node_cms,node_proxy toneMint
class node_systems,node_alerts,node_errors toneRose
class node_csr toneIndigo
```

## Components

### CSR interface

- [Application router](https://github.com/cityofsandy/calix-csr-console/blob/master/src/index.jsx): `src/index.jsx`
- [Navigation](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/navigation/nav.jsx): `src/components/navigation/nav.jsx`
- [Homepage](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/homepage/homepageApp.jsx): `src/components/homepage/homepageApp.jsx`
- [CPE view](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeApp.jsx): `src/components/cpe/cpeApp.jsx`
- [Systems view](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/systems/systemsApp.jsx): `src/components/systems/systemsApp.jsx`

### Troubleshooting

- [Alarm view](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/homepage/homepageAlarms.jsx): `src/components/homepage/homepageAlarms.jsx`
- [CPE search](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeSearch.jsx): `src/components/cpe/cpeSearch.jsx`
- [CPE results](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/cpe/cpeShow.jsx): `src/components/cpe/cpeShow.jsx`
- [System management](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/systems/systemsMgmt.jsx): `src/components/systems/systemsMgmt.jsx`
- [Provider alarms](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/serviceProvider/serviceProvider.jsx): `src/components/serviceProvider/serviceProvider.jsx`

### Calix connections

- [Cloud client](https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/cloud/index.js): `src/calix/cloud/index.js`
- [SMx client](https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/smx/index.js): `src/calix/smx/index.js`
- [CMS client](https://github.com/cityofsandy/calix-csr-console/blob/master/src/calix/cms/index.js): `src/calix/cms/index.js`
- [Request proxy](https://github.com/cityofsandy/calix-csr-console/blob/master/src/proxy/index.js): `src/proxy/index.js`

### Shared support

- [Configured systems](https://github.com/cityofsandy/calix-csr-console/blob/master/src/js/common.jsx): `src/js/common.jsx`
- [Alert display](https://github.com/cityofsandy/calix-csr-console/blob/master/src/components/common/alerts.jsx): `src/components/common/alerts.jsx`
- [Error pages](https://github.com/cityofsandy/calix-csr-console/tree/master/src/components/errorMessages): `src/components/errorMessages`

### Other components

- **CSR**

## Connections

- CSR → Application router: opens (evidence: `src/index.jsx`)
- Application router → Homepage: routes to (evidence: `src/index.jsx`)
- Application router → CPE view: routes to (evidence: `src/index.jsx`)
- Application router → Systems view: routes to (evidence: `src/index.jsx`)
- Application router → Error pages: routes to (evidence: `src/index.jsx`)
- Homepage → Alarm view: renders (evidence: `src/components/homepage/homepageApp.jsx`)
- CPE view → CPE search: renders (evidence: `src/components/cpe/cpeApp.jsx`)
- CPE search → Configured systems: reads (evidence: `src/components/cpe/cpeSearch.jsx`)
- System management → Configured systems: reads and writes (evidence: `src/components/systems/systemsMgmt.jsx`)
- CPE search → Cloud client: queries (evidence: `src/components/cpe/cpeSearch.jsx`)
- CPE search → SMx client: queries (evidence: `src/components/cpe/cpeSearch.jsx`)
- CPE search → CMS client: queries (evidence: `src/components/cpe/cpeSearch.jsx`)
- CPE search → CPE results: renders (evidence: `src/components/cpe/cpeSearch.jsx`)
- Homepage → Alarm view: renders (evidence: `src/components/homepage/homepageApp.jsx`)
- Alarm view → SMx client: fetches alarms (evidence: `src/components/homepage/homepageAlarms.jsx`)
- Alarm view → CMS client: fetches alarms (evidence: `src/components/homepage/homepageAlarms.jsx`)
- Provider alarms → Configured systems: reads (evidence: `src/components/serviceProvider/serviceProvider.jsx`)
- Provider alarms → SMx client: loads client (evidence: `src/components/serviceProvider/serviceProvider.jsx`)
- Provider alarms → CMS client: loads client (evidence: `src/components/serviceProvider/serviceProvider.jsx`)
- System management → Cloud client: tests connection (evidence: `src/components/systems/systemsMgmt.jsx`)
- System management → SMx client: tests connection (evidence: `src/components/systems/systemsMgmt.jsx`)
- System management → CMS client: tests connection (evidence: `src/components/systems/systemsMgmt.jsx`)
- Alarm view → Alert display: renders (evidence: `src/components/homepage/homepageAlarms.jsx`)
- Provider alarms → Alert display: renders (evidence: `src/components/serviceProvider/serviceProvider.jsx`)
- CPE search → Request proxy: uses proxy (evidence: `README.md`)
- Cloud client → Request proxy: forwards requests (evidence: `README.md`)
