# deeparajasabeson/todoapp-dotnet11-angular architecture

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

- Interactive diagram: https://gitdiagram.com/deeparajasabeson/todoapp-dotnet11-angular
- Repository: https://github.com/deeparajasabeson/todoapp-dotnet11-angular

## Overview

This is a task-management app with an Angular UI, ASP.NET Core API, SQL Server persistence, and an optional Azure AI Foundry assistant. Users browse, filter, page, and mutate tasks through the list, or ask the chat panel to read or change them. Both paths converge on TodoService, which applies task rules and queries SQL Server. Chat requests pass through conversation handling and a specialist-agent team; the Guide retrieves answers from a Markdown knowledge corpus. Edges are limited to README statements and relationships shown in the supplied source index or excerpts; unsampled implementation details are not inferred.

Main entry points: [`src/TodoApi/Endpoints/TodoEndpoints.cs`](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Endpoints/TodoEndpoints.cs) (Todo endpoints), [`src/TodoApi/Agents/TodoAgentTeam.cs`](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/TodoAgentTeam.cs) (Agent team), [`src/todo-web/src/app/services/todo-store.ts`](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/services/todo-store.ts) (Todo store), [`src/todo-web/src/app/app.ts`](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/app.ts) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular frontend"]
  node_webapp["App shell<br/>[app.ts]"]
  node_todo_ui["Todo list<br/>[todo-list.ts]"]
  node_todo_store["Todo store<br/>[todo-store.ts]"]
  node_chat_panel["Chat panel<br/>[chat-panel.ts]"]
  node_chat_store["Chat store<br/>[chat-store.ts]"]
  node_todo_models["Todo contracts<br/>[todo.ts]"]
end

subgraph group_api["Task API"]
  node_todo_endpoints["Todo endpoints<br/>[TodoEndpoints.cs]"]
  node_chat_endpoints["Chat endpoints<br/>[ChatEndpoints.cs]"]
  node_todo_service["Todo service<br/>[TodoService.cs]"]
  node_api_contracts["API contracts<br/>[TodoContracts.cs]"]
  node_validation["Request validation"]
end

subgraph group_assistant["AI assistant"]
  node_agent_team["Agent team<br/>[TodoAgentTeam.cs]"]
  node_agent_tools["Task tools<br/>[TodoTools.cs]"]
  node_conversation_store[("Conversation history")]
  node_knowledge_base["Knowledge retrieval<br/>[KnowledgeBase.cs]"]
  node_knowledge_corpus["Guide corpus"]
end

subgraph group_storage["Task storage"]
  node_todo_model["Todo entity<br/>[TodoItem.cs]"]
  node_db_context["EF Core context<br/>[TodoDbContext.cs]"]
end

node_user(("User"))
node_ai_service["Azure AI Foundry"]
node_sql_server[("SQL Server")]

node_user -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_todo_ui
node_webapp -->|"renders"| node_chat_panel
node_todo_ui -->|"uses"| node_todo_store
node_todo_store -->|"uses"| node_todo_models
node_todo_store -->|"calls"| node_todo_endpoints
node_chat_panel -->|"uses"| node_chat_store
node_chat_store -->|"calls"| node_chat_endpoints
node_chat_store -->|"refreshes"| node_todo_store
node_todo_endpoints -->|"calls"| node_todo_service
node_todo_endpoints -->|"validates requests"| node_validation
node_todo_endpoints -->|"accepts and returns"| node_api_contracts
node_chat_endpoints -->|"runs turns"| node_agent_team
node_chat_endpoints -->|"stores history"| node_conversation_store
node_agent_team -->|"delegates task actions"| node_agent_tools
node_agent_team -->|"searches through"| node_knowledge_base
node_agent_team -->|"invokes models"| node_ai_service
node_agent_tools -->|"calls"| node_todo_service
node_knowledge_base -->|"retrieves passages"| node_knowledge_corpus
node_todo_service -->|"queries and updates"| node_db_context
node_db_context -->|"maps"| node_todo_model
node_db_context -->|"persists data"| node_sql_server

click node_webapp "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/app.ts"
click node_todo_ui "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/todos/todo-list.ts"
click node_todo_store "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/services/todo-store.ts"
click node_chat_panel "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/chat/chat-panel.ts"
click node_chat_store "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/services/chat-store.ts"
click node_todo_models "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/models/todo.ts"
click node_todo_endpoints "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Endpoints/TodoEndpoints.cs"
click node_chat_endpoints "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Endpoints/ChatEndpoints.cs"
click node_todo_service "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Services/TodoService.cs"
click node_api_contracts "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Contracts/TodoContracts.cs"
click node_validation "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/tree/main/src/TodoApi/Validators"
click node_agent_team "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/TodoAgentTeam.cs"
click node_agent_tools "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/TodoTools.cs"
click node_conversation_store "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/ConversationStore.cs"
click node_knowledge_base "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/KnowledgeBase.cs"
click node_knowledge_corpus "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/tree/main/src/TodoApi/Knowledge"
click node_todo_model "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Models/TodoItem.cs"
click node_db_context "https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Data/TodoDbContext.cs"

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_webapp,node_todo_ui,node_todo_store,node_chat_panel,node_chat_store,node_todo_models,node_user toneBlue
class node_todo_endpoints,node_chat_endpoints,node_todo_service,node_api_contracts,node_validation,node_sql_server toneAmber
class node_agent_team,node_agent_tools,node_conversation_store,node_knowledge_base,node_knowledge_corpus toneMint
class node_todo_model,node_db_context toneRose
class node_ai_service toneIndigo
```

## Components

### Angular frontend

- [App shell](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/app.ts): `src/todo-web/src/app/app.ts`
- [Todo list](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/todos/todo-list.ts): `src/todo-web/src/app/todos/todo-list.ts`
- [Todo store](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/services/todo-store.ts): `src/todo-web/src/app/services/todo-store.ts`
- [Chat panel](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/chat/chat-panel.ts): `src/todo-web/src/app/chat/chat-panel.ts`
- [Chat store](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/services/chat-store.ts): `src/todo-web/src/app/services/chat-store.ts`
- [Todo contracts](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/todo-web/src/app/models/todo.ts): `src/todo-web/src/app/models/todo.ts`

### Task API

- [Todo endpoints](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Endpoints/TodoEndpoints.cs): `src/TodoApi/Endpoints/TodoEndpoints.cs`
- [Chat endpoints](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Endpoints/ChatEndpoints.cs): `src/TodoApi/Endpoints/ChatEndpoints.cs`
- [Todo service](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Services/TodoService.cs): `src/TodoApi/Services/TodoService.cs`
- [API contracts](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Contracts/TodoContracts.cs): `src/TodoApi/Contracts/TodoContracts.cs`
- [Request validation](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/tree/main/src/TodoApi/Validators): `src/TodoApi/Validators`

### AI assistant

- [Agent team](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/TodoAgentTeam.cs): `src/TodoApi/Agents/TodoAgentTeam.cs`
- [Task tools](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/TodoTools.cs): `src/TodoApi/Agents/TodoTools.cs`
- [Conversation history](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/ConversationStore.cs): `src/TodoApi/Agents/ConversationStore.cs`
- [Knowledge retrieval](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Agents/KnowledgeBase.cs): `src/TodoApi/Agents/KnowledgeBase.cs`
- [Guide corpus](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/tree/main/src/TodoApi/Knowledge): `src/TodoApi/Knowledge`

### Task storage

- [Todo entity](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Models/TodoItem.cs): `src/TodoApi/Models/TodoItem.cs`
- [EF Core context](https://github.com/deeparajasabeson/todoapp-dotnet11-angular/blob/main/src/TodoApi/Data/TodoDbContext.cs): `src/TodoApi/Data/TodoDbContext.cs`

### Other components

- **User**
- **Azure AI Foundry**
- **SQL Server**

## Connections

- User → App shell: uses (evidence: `README.md`)
- App shell → Todo list: routes to
- App shell → Chat panel: renders (evidence: `src/todo-web/src/app/app.ts`)
- Todo list → Todo store: uses (evidence: `src/todo-web/src/app/todos/todo-list.ts`)
- Todo store → Todo contracts: uses (evidence: `src/todo-web/src/app/services/todo-store.ts`)
- Todo store → Todo endpoints: calls (evidence: `README.md`)
- Chat panel → Chat store: uses (evidence: `src/todo-web/src/app/chat/chat-panel.ts`)
- Chat store → Chat endpoints: calls (evidence: `README.md`)
- Chat store → Todo store: refreshes (evidence: `src/todo-web/src/app/services/chat-store.ts`)
- Todo endpoints → Todo service: calls (evidence: `src/TodoApi/Endpoints/TodoEndpoints.cs`)
- Todo endpoints → Request validation: validates requests (evidence: `README.md`)
- Todo endpoints → API contracts: accepts and returns (evidence: `src/TodoApi/Endpoints/TodoEndpoints.cs`)
- Chat endpoints → Agent team: runs turns (evidence: `src/TodoApi/Endpoints/ChatEndpoints.cs`)
- Chat endpoints → Conversation history: stores history (evidence: `README.md`)
- Agent team → Task tools: delegates task actions (evidence: `src/TodoApi/Agents/TodoAgentTeam.cs`)
- Agent team → Knowledge retrieval: searches through (evidence: `src/TodoApi/Agents/TodoAgentTeam.cs`)
- Agent team → Azure AI Foundry: invokes models (evidence: `README.md`)
- Task tools → Todo service: calls (evidence: `src/TodoApi/Agents/TodoTools.cs`)
- Knowledge retrieval → Guide corpus: retrieves passages (evidence: `README.md`)
- Todo service → EF Core context: queries and updates (evidence: `src/TodoApi/Services/TodoService.cs`)
- EF Core context → Todo entity: maps (evidence: `src/TodoApi/Data/TodoDbContext.cs`)
- EF Core context → SQL Server: persists data (evidence: `README.md`)
