# kalvaharshith/org-front-end architecture

> Architecture diagram of the GitHub repository kalvaharshith/org-front-end, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kalvaharshith/org-front-end
- Repository: https://github.com/kalvaharshith/org-front-end

## Overview

Nexus Org Brain is a React dashboard prototype for organizational knowledge: users can explore knowledge, ask questions, ingest documents, and navigate project, decision, expert-review, health, and architecture views. The sampled code shows route selection and mock data, not a connected ingestion, retrieval, or persistence backend; the ingestion pipeline and RAG systems described in screen copy are not evidenced as runtime services. Links to unsampled views therefore show only App’s documented rendering/navigation boundary.

Main entry points: [`src/App.tsx`](https://github.com/kalvaharshith/org-front-end/blob/main/src/App.tsx) (App router), [`src/components/CommandPalette.tsx`](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/CommandPalette.tsx) (Command palette), [`src/data/mockData.ts`](https://github.com/kalvaharshith/org-front-end/blob/main/src/data/mockData.ts) (Sample domain data), [`src/views/KnowledgeIngest.tsx`](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/KnowledgeIngest.tsx) (Knowledge ingest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["App router<br/>[App.tsx]"]
  node_sidebar["Sidebar navigation<br/>[Sidebar.tsx]"]
  node_header["Header actions<br/>[Header.tsx]"]
  node_palette["Command palette<br/>[CommandPalette.tsx]"]
  node_toast["Toast feedback<br/>[Toast.tsx]"]
end

subgraph group_knowledge["Knowledge workflow"]
  node_brain["Brain overview<br/>[BrainOverview.tsx]"]
  node_ask["Ask Brain<br/>[AskBrain.tsx]"]
  node_explorer["Knowledge explorer"]
  node_ingest["Knowledge ingest"]
  node_projects["Projects<br/>[ProjectsView.tsx]"]
  node_data["Sample domain data<br/>[mockData.ts]"]
  node_types["Domain types<br/>[index.ts]"]
end

subgraph group_governance["Governance"]
  node_decisions["Decisions<br/>[DecisionsView.tsx]"]
  node_experts["Experts<br/>[ExpertsView.tsx]"]
  node_review["Expert review<br/>[ExpertReview.tsx]"]
  node_correction["Correction modal"]
  node_consult["Expert consult modal"]
end

subgraph group_operations["System operations"]
  node_health["System health<br/>[SystemHealth.tsx]"]
  node_architecture["Architecture schemas"]
end

node_user(("Workspace user"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_header
node_app -->|"renders"| node_palette
node_app -->|"renders"| node_toast
node_app -->|"routes to"| node_brain
node_app -->|"routes to"| node_ask
node_app -->|"routes to"| node_explorer
node_app -->|"routes to"| node_ingest
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_decisions
node_app -->|"routes to"| node_experts
node_app -->|"routes to"| node_review
node_app -->|"routes to"| node_health
node_app -->|"routes to"| node_architecture
node_palette -->|"filters"| node_data
node_palette -->|"navigates to"| node_ask
node_review -->|"initializes from"| node_data
node_ingest -->|"reads avatars"| node_data
node_app -->|"controls"| node_correction
node_app -->|"controls"| node_consult

click node_app "https://github.com/kalvaharshith/org-front-end/blob/main/src/App.tsx"
click node_sidebar "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Sidebar.tsx"
click node_header "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Header.tsx"
click node_palette "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/CommandPalette.tsx"
click node_toast "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Toast.tsx"
click node_brain "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/BrainOverview.tsx"
click node_ask "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/AskBrain.tsx"
click node_explorer "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/KnowledgeExplorer.tsx"
click node_ingest "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/KnowledgeIngest.tsx"
click node_projects "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ProjectsView.tsx"
click node_decisions "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/DecisionsView.tsx"
click node_experts "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ExpertsView.tsx"
click node_review "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ExpertReview.tsx"
click node_correction "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/CorrectionModal.tsx"
click node_consult "https://github.com/kalvaharshith/org-front-end/blob/main/src/components/ConsultExpertModal.tsx"
click node_health "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/SystemHealth.tsx"
click node_architecture "https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ArchitectureView.tsx"
click node_data "https://github.com/kalvaharshith/org-front-end/blob/main/src/data/mockData.ts"
click node_types "https://github.com/kalvaharshith/org-front-end/blob/main/src/types/index.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_sidebar,node_header,node_palette,node_toast,node_user toneBlue
class node_brain,node_ask,node_explorer,node_ingest,node_projects,node_data,node_types toneAmber
class node_decisions,node_experts,node_review,node_correction,node_consult toneMint
class node_health,node_architecture toneRose
```

## Components

### App shell

- [App router](https://github.com/kalvaharshith/org-front-end/blob/main/src/App.tsx): `src/App.tsx`
- [Sidebar navigation](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Header actions](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Command palette](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/CommandPalette.tsx): `src/components/CommandPalette.tsx`
- [Toast feedback](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/Toast.tsx): `src/components/Toast.tsx`

### Knowledge workflow

- [Brain overview](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/BrainOverview.tsx): `src/views/BrainOverview.tsx`
- [Ask Brain](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/AskBrain.tsx): `src/views/AskBrain.tsx`
- [Knowledge explorer](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/KnowledgeExplorer.tsx): `src/views/KnowledgeExplorer.tsx`
- [Knowledge ingest](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/KnowledgeIngest.tsx): `src/views/KnowledgeIngest.tsx`
- [Projects](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ProjectsView.tsx): `src/views/ProjectsView.tsx`
- [Sample domain data](https://github.com/kalvaharshith/org-front-end/blob/main/src/data/mockData.ts): `src/data/mockData.ts`
- [Domain types](https://github.com/kalvaharshith/org-front-end/blob/main/src/types/index.ts): `src/types/index.ts`

### Governance

- [Decisions](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/DecisionsView.tsx): `src/views/DecisionsView.tsx`
- [Experts](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ExpertsView.tsx): `src/views/ExpertsView.tsx`
- [Expert review](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ExpertReview.tsx): `src/views/ExpertReview.tsx`
- [Correction modal](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/CorrectionModal.tsx): `src/components/CorrectionModal.tsx`
- [Expert consult modal](https://github.com/kalvaharshith/org-front-end/blob/main/src/components/ConsultExpertModal.tsx): `src/components/ConsultExpertModal.tsx`

### System operations

- [System health](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/SystemHealth.tsx): `src/views/SystemHealth.tsx`
- [Architecture schemas](https://github.com/kalvaharshith/org-front-end/blob/main/src/views/ArchitectureView.tsx): `src/views/ArchitectureView.tsx`

### Other components

- **Workspace user**

## Connections

- Workspace user → App router: uses
- App router → Sidebar navigation: renders
- App router → Header actions: renders
- App router → Command palette: renders
- App router → Toast feedback: renders
- App router → Brain overview: routes to
- App router → Ask Brain: routes to
- App router → Knowledge explorer: routes to
- App router → Knowledge ingest: routes to
- App router → Projects: routes to
- App router → Decisions: routes to
- App router → Experts: routes to
- App router → Expert review: routes to
- App router → System health: routes to
- App router → Architecture schemas: routes to
- Command palette → Sample domain data: filters
- Command palette → Ask Brain: navigates to
- Expert review → Sample domain data: initializes from
- Knowledge ingest → Sample domain data: reads avatars
- App router → Correction modal: controls
- App router → Expert consult modal: controls
