# qablehq/tesbo-test-manager architecture

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

- Interactive diagram: https://gitdiagram.com/qablehq/tesbo-test-manager
- Repository: https://github.com/qablehq/tesbo-test-manager

## Overview

Tesbo is an AI-enabled test-case management product for QA teams. A user signs in, creates or organizes test cases into suites, assembles cases into a cycle, records execution outcomes, and reviews project dashboards and reports. The backend also provides integrations, automation, AI-assisted knowledge retrieval and review, and workspace administration. The README documents the core testing workflow and optional services; sampled backend excerpts confirm selected service calls, while many listed subsystems were not inspected, so their internal links are omitted rather than inferred.

Main entry points: [`Tesbo-Backend-Nest/src/database/database.service.ts`](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/database/database.service.ts) (PostgreSQL and pgvector), [`Tesbo-Frontend/app/(app)/projects/[id]/testcases/page.tsx`](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/testcases/page.tsx) (Tesbo Web App), [`Tesbo-Backend-Nest/src/auth/auth.service.ts`](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/auth/auth.service.ts) (Sign-in and OTP), [`Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts`](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts) (Embedding Ingestion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Workspace"]
  node_web_app["Tesbo Web App<br/>[page.tsx]"]
  node_auth["Sign-in and OTP<br/>[auth.service.ts]"]
  node_database[("PostgreSQL and pgvector")]
end

subgraph group_testing["Test Management"]
  node_test_cases["Cases and Suites<br/>[legacy.service.ts]"]
  node_cycles["Cycles and Results"]
  node_project_views["Project Views<br/>[page.tsx]"]
  node_reports["Reports<br/>[page.tsx]"]
  node_automation["Test Automation API"]
end

subgraph group_intelligence["AI and Review"]
  node_knowledge["Knowledge Base<br/>[page.tsx]"]
  node_rag_ingestion["Embedding Ingestion"]
  node_rag_retrieval["Semantic Retrieval"]
  node_nyra["Nyra Scans"]
  node_review_board["Review Board"]
end

subgraph group_connections["Integrations and Operations"]
  node_integrations["Issue and Document Sync"]
  node_billing["Billing<br/>[billing.service.ts]"]
  node_file_storage["File Storage<br/>[storage.service.ts]"]
  node_external_services{{"Optional External Services"}}
end

node_qa_user(("QA User"))

node_qa_user -->|"uses"| node_web_app
node_qa_user -->|"requests OTP"| node_auth
node_auth -->|"reads and writes"| node_database
node_auth -.->|"sends email"| node_external_services
node_web_app -.->|"manages cases"| node_test_cases
node_web_app -.->|"starts runs"| node_cycles
node_test_cases -->|"selects cases"| node_cycles
node_cycles -->|"updates stats"| node_project_views
node_project_views -.->|"reviews results"| node_reports
node_automation -->|"uses legacy services"| node_test_cases
node_automation -->|"uses storage"| node_file_storage
node_knowledge -.->|"submits content"| node_rag_ingestion
node_rag_ingestion -->|"updates status"| node_database
node_rag_ingestion -.->|"provides embeddings"| node_rag_retrieval
node_rag_retrieval -->|"searches content"| node_database
node_nyra -->|"persists approvals"| node_database
node_review_board -.->|"stores findings"| node_database
node_integrations -.->|"syncs issues"| node_external_services
node_billing -.->|"uses Stripe"| node_external_services
node_file_storage -.->|"supports S3"| node_external_services

click node_web_app "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/testcases/page.tsx"
click node_auth "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/auth/auth.service.ts"
click node_database "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/database/database.service.ts"
click node_test_cases "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/legacy/legacy.service.ts"
click node_cycles "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/legacy/legacy.controller.ts"
click node_project_views "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/dashboard/page.tsx"
click node_reports "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/reports/page.tsx"
click node_automation "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/automation/automation.service.ts"
click node_knowledge "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/knowledge-base/page.tsx"
click node_rag_ingestion "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts"
click node_rag_retrieval "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/rag/rag-retrieval.service.ts"
click node_nyra "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/nyra/nyra-review.service.ts"
click node_review_board "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/review-board/review-board.service.ts"
click node_integrations "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/integration-sync/integration-sync.service.ts"
click node_billing "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/billing/billing.service.ts"
click node_file_storage "https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/storage/storage.service.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_web_app,node_auth,node_database,node_qa_user toneBlue
class node_test_cases,node_cycles,node_project_views,node_reports,node_automation toneAmber
class node_knowledge,node_rag_ingestion,node_rag_retrieval,node_nyra,node_review_board toneMint
class node_integrations,node_billing,node_file_storage,node_external_services toneRose
```

## Components

### Access and Workspace

- [Tesbo Web App](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/testcases/page.tsx): `Tesbo-Frontend/app/(app)/projects/[id]/testcases/page.tsx`
- [Sign-in and OTP](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/auth/auth.service.ts): `Tesbo-Backend-Nest/src/auth/auth.service.ts`
- [PostgreSQL and pgvector](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/database/database.service.ts): `Tesbo-Backend-Nest/src/database/database.service.ts`

### Test Management

- [Cases and Suites](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/legacy/legacy.service.ts): `Tesbo-Backend-Nest/src/legacy/legacy.service.ts`
- [Cycles and Results](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/legacy/legacy.controller.ts): `Tesbo-Backend-Nest/src/legacy/legacy.controller.ts`
- [Project Views](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/dashboard/page.tsx): `Tesbo-Frontend/app/(app)/projects/[id]/dashboard/page.tsx`
- [Reports](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/reports/page.tsx): `Tesbo-Frontend/app/(app)/projects/[id]/reports/page.tsx`
- [Test Automation API](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/automation/automation.service.ts): `Tesbo-Backend-Nest/src/automation/automation.service.ts`

### AI and Review

- [Knowledge Base](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Frontend/app/(app)/projects/%5Bid%5D/knowledge-base/page.tsx): `Tesbo-Frontend/app/(app)/projects/[id]/knowledge-base/page.tsx`
- [Embedding Ingestion](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts): `Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts`
- [Semantic Retrieval](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/rag/rag-retrieval.service.ts): `Tesbo-Backend-Nest/src/rag/rag-retrieval.service.ts`
- [Nyra Scans](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/nyra/nyra-review.service.ts): `Tesbo-Backend-Nest/src/nyra/nyra-review.service.ts`
- [Review Board](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/review-board/review-board.service.ts): `Tesbo-Backend-Nest/src/review-board/review-board.service.ts`

### Integrations and Operations

- [Issue and Document Sync](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/integration-sync/integration-sync.service.ts): `Tesbo-Backend-Nest/src/integration-sync/integration-sync.service.ts`
- [Billing](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/billing/billing.service.ts): `Tesbo-Backend-Nest/src/billing/billing.service.ts`
- [File Storage](https://github.com/qablehq/tesbo-test-manager/blob/main/Tesbo-Backend-Nest/src/storage/storage.service.ts): `Tesbo-Backend-Nest/src/storage/storage.service.ts`
- **Optional External Services**

### Other components

- **QA User**

## Connections

- QA User → Tesbo Web App: uses
- QA User → Sign-in and OTP: requests OTP
- Sign-in and OTP → PostgreSQL and pgvector: reads and writes (evidence: `Tesbo-Backend-Nest/src/auth/auth.service.ts`)
- Sign-in and OTP → Optional External Services: sends email
- Tesbo Web App → Cases and Suites: manages cases
- Tesbo Web App → Cycles and Results: starts runs
- Cases and Suites → Cycles and Results: selects cases (evidence: `Tesbo-Backend-Nest/src/legacy/legacy.controller.ts`)
- Cycles and Results → Project Views: updates stats
- Project Views → Reports: reviews results
- Test Automation API → Cases and Suites: uses legacy services (evidence: `Tesbo-Backend-Nest/src/automation/automation.service.ts`)
- Test Automation API → File Storage: uses storage (evidence: `Tesbo-Backend-Nest/src/automation/automation.service.ts`)
- Knowledge Base → Embedding Ingestion: submits content
- Embedding Ingestion → PostgreSQL and pgvector: updates status (evidence: `Tesbo-Backend-Nest/src/rag/rag-ingestion.service.ts`)
- Embedding Ingestion → Semantic Retrieval: provides embeddings
- Semantic Retrieval → PostgreSQL and pgvector: searches content (evidence: `Tesbo-Backend-Nest/src/rag/rag-retrieval.service.ts`)
- Nyra Scans → PostgreSQL and pgvector: persists approvals (evidence: `Tesbo-Backend-Nest/src/nyra/nyra-review.service.ts`)
- Review Board → PostgreSQL and pgvector: stores findings (evidence: `Tesbo-Backend-Nest/src/review-board/review-board.service.ts`)
- Issue and Document Sync → Optional External Services: syncs issues
- Billing → Optional External Services: uses Stripe
- File Storage → Optional External Services: supports S3 (evidence: `Tesbo-Backend-Nest/src/storage/storage.service.ts`)
