# weshallnot/updated-ccal-eventui architecture

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

- Interactive diagram: https://gitdiagram.com/weshallnot/updated-ccal-eventui
- Repository: https://github.com/weshallnot/updated-ccal-eventui

## Overview

This is a browser-based event compliance and workflow management application. Users sign in, navigate role-restricted administration and event features, configure categories and workflow stages, manage event instances and related documents, and view reports and notifications. The graph highlights routed product areas and the sampled event-edit, notification, and API-client behavior. Many pages and service implementations are unsampled, so their internal calls are not inferred; dashed links mark only unverified integration points.

Main entry points: [`src/App.js`](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/App.js) (Application routes), [`src/pages/event-instance/EditEventFrom.jsx`](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/EditEventFrom.jsx) (Event editing), [`src/services/base.service.js`](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/base.service.js) (Authenticated HTTP), [`src/services/notification.service.js`](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/notification.service.js) (Notification API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application access"]
  node_app["Application routes<br/>[App.js]"]
  node_guard["Role guard<br/>[auth.guard.js]"]
  node_header["Navigation header<br/>[Header.js]"]
  node_login["Login<br/>[Login.jsx]"]
  node_notifications["Notification panel<br/>[notification.js]"]
end

subgraph group_admin["Administration"]
  node_org["Organization admin<br/>[Organization.jsx]"]
  node_department["Department admin<br/>[Department.jsx]"]
  node_location["Location admin<br/>[Location.jsx]"]
  node_users["User administration<br/>[EditUser.jsx]"]
  node_roles["Role management<br/>[Role.jsx]"]
end

subgraph group_events["Event workflow"]
  node_category["Event categories<br/>[EventCategory.jsx]"]
  node_workflow["Workflow setup<br/>[WorkFlow.jsx]"]
  node_stages["Workflow stages<br/>[WorkFlowStages.jsx]"]
  node_mapping["Category mapping"]
  node_eventedit["Event editing<br/>[EditEventFrom.jsx]"]
  node_eventform["Event creation<br/>[EventForm.jsx]"]
  node_eventview["Event viewing<br/>[ViewEventForm.jsx]"]
end

subgraph group_insights["Documents and reporting"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_docs["Document management<br/>[CreateDocument.jsx]"]
  node_reports["Compliance reports"]
end

subgraph group_platform["Client platform"]
  node_eventapi["Event API client"]
  node_userapi["User API client<br/>[user.service.js]"]
  node_deptapi["Department API client"]
  node_locationapi["Location API client"]
  node_orgapi["Organization API client"]
  node_stageapi["Workflow stage API"]
  node_baseapi["Authenticated HTTP<br/>[base.service.js]"]
  node_store["User state actions<br/>[user.js]"]
  node_notifyapi["Notification API"]
end

node_user(("User"))
node_backend{{"Application services"}}
node_broker["Notification broker"]

node_user -.->|"uses"| node_app
node_app -->|"protects routes"| node_guard
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_org
node_app -->|"routes to"| node_department
node_app -->|"routes to"| node_location
node_app -->|"routes to"| node_users
node_app -->|"routes to"| node_roles
node_app -->|"routes to"| node_category
node_app -->|"routes to"| node_workflow
node_app -->|"routes to"| node_stages
node_app -->|"routes to"| node_mapping
node_app -->|"routes to"| node_eventedit
node_app -->|"routes to"| node_eventform
node_app -->|"routes to"| node_eventview
node_app -->|"routes to"| node_docs
node_app -->|"routes to"| node_reports
node_header -->|"dispatches logout"| node_store
node_guard -->|"reads user state"| node_store
node_eventedit -->|"loads and updates"| node_eventapi
node_eventedit -->|"loads users"| node_userapi
node_eventedit -->|"loads department"| node_deptapi
node_eventedit -->|"loads stages"| node_stageapi
node_eventedit -->|"sends notification"| node_notifyapi
node_notifications -->|"fetches and marks"| node_notifyapi
node_notifyapi -.->|"uses socket"| node_broker
node_eventapi -->|"uses auth headers"| node_baseapi
node_userapi -->|"uses auth headers"| node_baseapi
node_deptapi -->|"uses auth headers"| node_baseapi
node_locationapi -->|"uses auth headers"| node_baseapi
node_orgapi -->|"uses auth headers"| node_baseapi
node_stageapi -->|"uses auth headers"| node_baseapi
node_notifyapi -->|"uses auth headers"| node_baseapi
node_eventapi -->|"HTTP requests"| node_backend
node_userapi -->|"HTTP requests"| node_backend
node_orgapi -->|"HTTP requests"| node_backend
node_notifyapi -->|"notification requests"| node_backend

click node_app "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/App.js"
click node_guard "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/guards/auth.guard.js"
click node_header "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/components/navigation/Header.js"
click node_login "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/login/Login.jsx"
click node_dashboard "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/dashboard/Dashboard.jsx"
click node_org "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/organization/Organization.jsx"
click node_department "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/department/Department.jsx"
click node_location "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/location/Location.jsx"
click node_users "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/registration/EditUser.jsx"
click node_roles "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/role/Role.jsx"
click node_category "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-category/EventCategory.jsx"
click node_workflow "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflow/WorkFlow.jsx"
click node_stages "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflowstages/WorkFlowStages.jsx"
click node_mapping "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflow-mapping/AssingEventCategoryToWorkflow.jsx"
click node_eventedit "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/EditEventFrom.jsx"
click node_eventform "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/EventForm.jsx"
click node_eventview "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/ViewEventForm.jsx"
click node_eventapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/event.instance.service.js"
click node_userapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/user.service.js"
click node_deptapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/department.service.js"
click node_locationapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/location.service.js"
click node_orgapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/organization.service.js"
click node_stageapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/workFlowStages.service.js"
click node_baseapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/base.service.js"
click node_store "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/store/actions/user.js"
click node_notifications "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/components/notification/notification.js"
click node_notifyapi "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/notification.service.js"
click node_docs "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/document/CreateDocument.jsx"
click node_reports "https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/report/ReportCategoryWise.jsx"

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_guard,node_header,node_login,node_notifications,node_user toneBlue
class node_org,node_department,node_location,node_users,node_roles toneAmber
class node_category,node_workflow,node_stages,node_mapping,node_eventedit,node_eventform,node_eventview toneMint
class node_dashboard,node_docs,node_reports toneRose
class node_eventapi,node_userapi,node_deptapi,node_locationapi,node_orgapi,node_stageapi,node_baseapi,node_store,node_notifyapi,node_backend,node_broker toneIndigo
```

## Components

### Application access

- [Application routes](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/App.js): `src/App.js`
- [Role guard](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/guards/auth.guard.js): `src/guards/auth.guard.js`
- [Navigation header](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/components/navigation/Header.js): `src/components/navigation/Header.js`
- [Login](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/login/Login.jsx): `src/pages/login/Login.jsx`
- [Notification panel](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/components/notification/notification.js): `src/components/notification/notification.js`

### Administration

- [Organization admin](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/organization/Organization.jsx): `src/pages/organization/Organization.jsx`
- [Department admin](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/department/Department.jsx): `src/pages/department/Department.jsx`
- [Location admin](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/location/Location.jsx): `src/pages/location/Location.jsx`
- [User administration](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/registration/EditUser.jsx): `src/pages/registration/EditUser.jsx`
- [Role management](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/role/Role.jsx): `src/pages/role/Role.jsx`

### Event workflow

- [Event categories](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-category/EventCategory.jsx): `src/pages/event-category/EventCategory.jsx`
- [Workflow setup](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflow/WorkFlow.jsx): `src/pages/workflow/WorkFlow.jsx`
- [Workflow stages](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflowstages/WorkFlowStages.jsx): `src/pages/workflowstages/WorkFlowStages.jsx`
- [Category mapping](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/workflow-mapping/AssingEventCategoryToWorkflow.jsx): `src/pages/workflow-mapping/AssingEventCategoryToWorkflow.jsx`
- [Event editing](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/EditEventFrom.jsx): `src/pages/event-instance/EditEventFrom.jsx`
- [Event creation](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/EventForm.jsx): `src/pages/event-instance/EventForm.jsx`
- [Event viewing](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/event-instance/ViewEventForm.jsx): `src/pages/event-instance/ViewEventForm.jsx`

### Documents and reporting

- [Dashboard](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/dashboard/Dashboard.jsx): `src/pages/dashboard/Dashboard.jsx`
- [Document management](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/document/CreateDocument.jsx): `src/pages/document/CreateDocument.jsx`
- [Compliance reports](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/pages/report/ReportCategoryWise.jsx): `src/pages/report/ReportCategoryWise.jsx`

### Client platform

- [Event API client](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/event.instance.service.js): `src/services/event.instance.service.js`
- [User API client](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/user.service.js): `src/services/user.service.js`
- [Department API client](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/department.service.js): `src/services/department.service.js`
- [Location API client](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/location.service.js): `src/services/location.service.js`
- [Organization API client](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/organization.service.js): `src/services/organization.service.js`
- [Workflow stage API](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/workFlowStages.service.js): `src/services/workFlowStages.service.js`
- [Authenticated HTTP](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/base.service.js): `src/services/base.service.js`
- [User state actions](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/store/actions/user.js): `src/store/actions/user.js`
- [Notification API](https://github.com/weshallnot/updated-ccal-eventui/blob/main/src/services/notification.service.js): `src/services/notification.service.js`

### Other components

- **User**
- **Application services**
- **Notification broker**

## Connections

- User → Application routes: uses
- Application routes → Role guard: protects routes (evidence: `src/App.js`)
- Application routes → Dashboard: routes to (evidence: `src/App.js`)
- Application routes → Login: routes to (evidence: `src/App.js`)
- Application routes → Organization admin: routes to (evidence: `src/App.js`)
- Application routes → Department admin: routes to (evidence: `src/App.js`)
- Application routes → Location admin: routes to (evidence: `src/App.js`)
- Application routes → User administration: routes to (evidence: `src/App.js`)
- Application routes → Role management: routes to (evidence: `src/App.js`)
- Application routes → Event categories: routes to (evidence: `src/App.js`)
- Application routes → Workflow setup: routes to (evidence: `src/App.js`)
- Application routes → Workflow stages: routes to (evidence: `src/App.js`)
- Application routes → Category mapping: routes to (evidence: `src/App.js`)
- Application routes → Event editing: routes to (evidence: `src/App.js`)
- Application routes → Event creation: routes to (evidence: `src/App.js`)
- Application routes → Event viewing: routes to (evidence: `src/App.js`)
- Application routes → Document management: routes to (evidence: `src/App.js`)
- Application routes → Compliance reports: routes to (evidence: `src/App.js`)
- Navigation header → User state actions: dispatches logout (evidence: `src/components/navigation/Header.js`)
- Role guard → User state actions: reads user state (evidence: `src/guards/auth.guard.js`)
- Event editing → Event API client: loads and updates (evidence: `src/pages/event-instance/EditEventFrom.jsx`)
- Event editing → User API client: loads users (evidence: `src/pages/event-instance/EditEventFrom.jsx`)
- Event editing → Department API client: loads department (evidence: `src/pages/event-instance/EditEventFrom.jsx`)
- Event editing → Workflow stage API: loads stages (evidence: `src/pages/event-instance/EditEventFrom.jsx`)
- Event editing → Notification API: sends notification (evidence: `src/pages/event-instance/EditEventFrom.jsx`)
- Notification panel → Notification API: fetches and marks (evidence: `src/components/notification/notification.js`)
- Notification API → Notification broker: uses socket
- Event API client → Authenticated HTTP: uses auth headers (evidence: `src/services/event.instance.service.js`)
- User API client → Authenticated HTTP: uses auth headers (evidence: `src/services/user.service.js`)
- Department API client → Authenticated HTTP: uses auth headers (evidence: `src/services/department.service.js`)
- Location API client → Authenticated HTTP: uses auth headers (evidence: `src/services/location.service.js`)
- Organization API client → Authenticated HTTP: uses auth headers (evidence: `src/services/organization.service.js`)
- Workflow stage API → Authenticated HTTP: uses auth headers (evidence: `src/services/workFlowStages.service.js`)
- Notification API → Authenticated HTTP: uses auth headers (evidence: `src/services/notification.service.js`)
- Event API client → Application services: HTTP requests (evidence: `src/services/event.instance.service.js`)
- User API client → Application services: HTTP requests (evidence: `src/services/user.service.js`)
- Organization API client → Application services: HTTP requests (evidence: `src/services/organization.service.js`)
- Notification API → Application services: notification requests (evidence: `src/services/notification.service.js`)
