# mohansai001/devops_agent_maf-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/mohansai001/devops_agent_maf-frontend
- Repository: https://github.com/mohansai001/devops_agent_maf-frontend

## Overview

VIDA Cortex is a frontend for monitoring and operating agent-driven CI/CD workflows. Users enter through the routed application, then inspect pipeline and approval activity, build or manage workflows, and view repository, build, deployment, and failure status. The code also exposes API service functions and a browser-local workflow store. The excerpts establish routing, several page-to-data dependencies, and service calls; they do not establish a complete end-to-end backend workflow, so those links are omitted.

Main entry points: [`vida-cortex/src/App.tsx`](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/App.tsx) (VIDA Cortex app), [`vida-cortex/src/data/mockData.ts`](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/mockData.ts) (Demo pipeline data), [`vida-cortex/src/data/workflowStore.ts`](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/workflowStore.ts) (Workflow state), [`vida-cortex/src/layouts/AppLayout.tsx`](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/layouts/AppLayout.tsx) (App layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["VIDA Cortex app<br/>[App.tsx]"]
  node_routes["Route metadata<br/>[routes.ts]"]
  node_layout["App layout<br/>[AppLayout.tsx]"]
  node_sidebar["Navigation sidebar<br/>[Sidebar.tsx]"]
  node_theme["Theme mode<br/>[useThemeMode.tsx]"]
  node_themeconfig["Theme configuration<br/>[theme.ts]"]
end

subgraph group_operations["CI/CD operations"]
  node_login["Login<br/>[Login.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_approvals["Approvals queue<br/>[Approvals.tsx]"]
  node_repos["Repositories<br/>[Repositories.tsx]"]
  node_onboarding["Onboarding<br/>[Onboarding.tsx]"]
  node_builds["Builds<br/>[Builds.tsx]"]
  node_deployments["Deployments<br/>[Deployments.tsx]"]
  node_failures["Failed pipelines"]
end

subgraph group_agents["Agent workflows"]
  node_agentonboard["Agent onboarding"]
  node_builder["Agent builder<br/>[AgentBuilder.tsx]"]
  node_workflows["Workflow manager<br/>[Workflows.tsx]"]
end

subgraph group_data["Data and integrations"]
  node_workflowstore[("Workflow state<br/>[workflowStore.ts]")]
  node_mockdata[("Demo pipeline data<br/>[mockData.ts]")]
  node_pipelineapi["Pipeline API service<br/>[pipelineService.ts]"]
  node_api["API client<br/>[api.ts]"]
end

node_user(("User"))
node_backend{{"Backend services"}}

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_approvals
node_app -->|"routes to"| node_repos
node_app -->|"routes to"| node_onboarding
node_app -->|"routes to"| node_agentonboard
node_app -->|"routes to"| node_builder
node_app -->|"routes to"| node_workflows
node_app -->|"routes to"| node_builds
node_app -->|"routes to"| node_deployments
node_app -->|"routes to"| node_failures
node_app -->|"wraps pages"| node_layout
node_app -->|"provides mode"| node_theme
node_app -->|"creates theme"| node_themeconfig
node_layout -->|"renders"| node_sidebar
node_layout -->|"uses metadata"| node_routes
node_sidebar -->|"reads mode"| node_theme
node_sidebar -->|"reads navigation"| node_routes
node_login -->|"uses paths"| node_routes
node_dashboard -->|"reads data"| node_mockdata
node_approvals -->|"reads data"| node_mockdata
node_approvals -->|"uses state"| node_workflowstore
node_repos -->|"reads data"| node_mockdata
node_onboarding -->|"reads data"| node_mockdata
node_builds -->|"reads data"| node_mockdata
node_deployments -->|"reads data"| node_mockdata
node_failures -->|"reads data"| node_mockdata
node_builder -->|"uses state"| node_workflowstore
node_workflows -->|"uses state"| node_workflowstore
node_pipelineapi -->|"calls"| node_api
node_pipelineapi -.->|"requests data"| node_backend
node_workflowstore -->|"fetches workflows"| node_backend

click node_app "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/App.tsx"
click node_routes "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/routes.ts"
click node_layout "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/layouts/AppLayout.tsx"
click node_sidebar "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/layouts/Sidebar.tsx"
click node_theme "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/hooks/useThemeMode.tsx"
click node_themeconfig "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/theme.ts"
click node_login "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Login.tsx"
click node_dashboard "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Dashboard.tsx"
click node_approvals "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Approvals.tsx"
click node_repos "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Repositories.tsx"
click node_onboarding "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Onboarding.tsx"
click node_builds "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Builds.tsx"
click node_deployments "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Deployments.tsx"
click node_failures "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/FailedPipelines.tsx"
click node_agentonboard "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/AgentOnboarding.tsx"
click node_builder "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/AgentBuilder.tsx"
click node_workflows "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Workflows.tsx"
click node_workflowstore "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/workflowStore.ts"
click node_mockdata "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/mockData.ts"
click node_pipelineapi "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/services/pipelineService.ts"
click node_api "https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/services/api.ts"

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_routes,node_layout,node_sidebar,node_theme,node_themeconfig,node_user toneBlue
class node_login,node_dashboard,node_approvals,node_repos,node_onboarding,node_builds,node_deployments,node_failures toneAmber
class node_agentonboard,node_builder,node_workflows toneMint
class node_workflowstore,node_mockdata,node_pipelineapi,node_api toneRose
class node_backend toneIndigo
```

## Components

### Application shell

- [VIDA Cortex app](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/App.tsx): `vida-cortex/src/App.tsx`
- [Route metadata](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/routes.ts): `vida-cortex/src/routes.ts`
- [App layout](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/layouts/AppLayout.tsx): `vida-cortex/src/layouts/AppLayout.tsx`
- [Navigation sidebar](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/layouts/Sidebar.tsx): `vida-cortex/src/layouts/Sidebar.tsx`
- [Theme mode](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/hooks/useThemeMode.tsx): `vida-cortex/src/hooks/useThemeMode.tsx`
- [Theme configuration](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/theme.ts): `vida-cortex/src/data/theme.ts`

### CI/CD operations

- [Login](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Login.tsx): `vida-cortex/src/pages/Login.tsx`
- [Dashboard](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Dashboard.tsx): `vida-cortex/src/pages/Dashboard.tsx`
- [Approvals queue](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Approvals.tsx): `vida-cortex/src/pages/Approvals.tsx`
- [Repositories](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Repositories.tsx): `vida-cortex/src/pages/Repositories.tsx`
- [Onboarding](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Onboarding.tsx): `vida-cortex/src/pages/Onboarding.tsx`
- [Builds](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Builds.tsx): `vida-cortex/src/pages/Builds.tsx`
- [Deployments](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Deployments.tsx): `vida-cortex/src/pages/Deployments.tsx`
- [Failed pipelines](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/FailedPipelines.tsx): `vida-cortex/src/pages/FailedPipelines.tsx`

### Agent workflows

- [Agent onboarding](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/AgentOnboarding.tsx): `vida-cortex/src/pages/AgentOnboarding.tsx`
- [Agent builder](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/AgentBuilder.tsx): `vida-cortex/src/pages/AgentBuilder.tsx`
- [Workflow manager](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/pages/Workflows.tsx): `vida-cortex/src/pages/Workflows.tsx`

### Data and integrations

- [Workflow state](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/workflowStore.ts): `vida-cortex/src/data/workflowStore.ts`
- [Demo pipeline data](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/data/mockData.ts): `vida-cortex/src/data/mockData.ts`
- [Pipeline API service](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/services/pipelineService.ts): `vida-cortex/src/services/pipelineService.ts`
- [API client](https://github.com/mohansai001/devops_agent_maf-frontend/blob/main/vida-cortex/src/services/api.ts): `vida-cortex/src/services/api.ts`

### Other components

- **User**
- **Backend services**

## Connections

- User → VIDA Cortex app: uses (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Login: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Dashboard: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Approvals queue: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Repositories: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Onboarding: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Agent onboarding: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Agent builder: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Workflow manager: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Builds: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Deployments: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Failed pipelines: routes to (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → App layout: wraps pages (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Theme mode: provides mode (evidence: `vida-cortex/src/App.tsx`)
- VIDA Cortex app → Theme configuration: creates theme (evidence: `vida-cortex/src/App.tsx`)
- App layout → Navigation sidebar: renders (evidence: `vida-cortex/src/layouts/AppLayout.tsx`)
- App layout → Route metadata: uses metadata (evidence: `vida-cortex/src/layouts/AppLayout.tsx`)
- Navigation sidebar → Theme mode: reads mode (evidence: `vida-cortex/src/layouts/Sidebar.tsx`)
- Navigation sidebar → Route metadata: reads navigation (evidence: `vida-cortex/src/layouts/Sidebar.tsx`)
- Login → Route metadata: uses paths (evidence: `vida-cortex/src/pages/Login.tsx`)
- Dashboard → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Dashboard.tsx`)
- Approvals queue → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Approvals.tsx`)
- Approvals queue → Workflow state: uses state (evidence: `vida-cortex/src/pages/Approvals.tsx`)
- Repositories → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Repositories.tsx`)
- Onboarding → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Onboarding.tsx`)
- Builds → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Builds.tsx`)
- Deployments → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/Deployments.tsx`)
- Failed pipelines → Demo pipeline data: reads data (evidence: `vida-cortex/src/pages/FailedPipelines.tsx`)
- Agent builder → Workflow state: uses state (evidence: `vida-cortex/src/pages/AgentBuilder.tsx`)
- Workflow manager → Workflow state: uses state (evidence: `vida-cortex/src/pages/Workflows.tsx`)
- Pipeline API service → API client: calls (evidence: `vida-cortex/src/services/pipelineService.ts`)
- Pipeline API service → Backend services: requests data
- Workflow state → Backend services: fetches workflows (evidence: `vida-cortex/src/data/workflowStore.ts`)
