# thiganth-k/hireflow-qa-lab architecture

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

- Interactive diagram: https://gitdiagram.com/thiganth-k/hireflow-qa-lab
- Repository: https://github.com/thiganth-k/hireflow-qa-lab

## Overview

HireFlow QA Lab is a job-discovery and application portal designed for reliable, testable submissions. Applicants browse and filter seeded roles, open a role, complete a validated application, and submit it through an API that checks the job, prevents duplicates, and persists records. The README also documents a standalone QA visualizer and code-graph viewer. The graph follows excerpts and README statements; storage internals and dashboard implementation are not fully sampled, so their internal relationships are not expanded.

Main entry points: [`src/app/api/applications/route.ts`](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/api/applications/route.ts) (Applications API), [`src/app/jobs/[id]/page.tsx`](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/jobs/%5Bid%5D/page.tsx) (Job Detail Route), [`src/components/ApplicationForm.tsx`](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/ApplicationForm.tsx) (Application Form), [`src/lib/applications/repository.ts`](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/repository.ts) (Application Repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Job Discovery"]
  node_catalog["Job Catalog<br/>[page.tsx]"]
  node_jobdata["Seeded Jobs<br/>[jobs-data.ts]"]
  node_jobservice["Job Lookup<br/>[service.ts]"]
  node_detailroute["Job Detail Route<br/>[page.tsx]"]
  node_jobdetail["Job Detail UI"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
end

subgraph group_submission["Application Submission"]
  node_form["Application Form"]
  node_validation["Input Validation<br/>[validation.ts]"]
  node_api["Applications API<br/>[route.ts]"]
  node_applicationtypes["Application Types<br/>[types.ts]"]
end

subgraph group_persistence["Application Persistence"]
  node_repository[("Application Repository<br/>[repository.ts]")]
  node_testreset["Test Data Reset<br/>[route.ts]"]
end

subgraph group_qa["QA Visualizers"]
  node_qaguide["QA Feature Visualizer<br/>[index.html]"]
  node_graphviewer["Code Graph Viewer<br/>[graph.html]"]
end

node_applicant(("Applicant"))
node_browseruser(("Dashboard Viewer"))

node_applicant -->|"browses"| node_catalog
node_catalog -->|"filters jobs"| node_jobdata
node_catalog -->|"renders"| node_navbar
node_applicant -->|"opens role"| node_detailroute
node_detailroute -->|"looks up role"| node_jobservice
node_jobservice -->|"searches"| node_jobdata
node_detailroute -->|"renders"| node_jobdetail
node_detailroute -->|"renders"| node_navbar
node_jobdetail -->|"renders"| node_form
node_applicant -->|"completes"| node_form
node_form -->|"validates input"| node_validation
node_form -->|"submits application"| node_api
node_api -->|"checks role"| node_jobservice
node_api -->|"validates input"| node_validation
node_api -->|"checks and saves"| node_repository
node_api -->|"lists records"| node_repository
node_repository -->|"normalizes email"| node_validation
node_testreset -->|"resets records"| node_repository
node_browseruser -->|"opens dashboard"| node_qaguide
node_browseruser -->|"opens graph"| node_graphviewer

click node_catalog "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/page.tsx"
click node_jobdata "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/jobs/jobs-data.ts"
click node_jobservice "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/jobs/service.ts"
click node_detailroute "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/jobs/%5Bid%5D/page.tsx"
click node_jobdetail "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/JobDetailInteractive.tsx"
click node_navbar "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/Navbar.tsx"
click node_form "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/ApplicationForm.tsx"
click node_validation "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/validation.ts"
click node_api "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/api/applications/route.ts"
click node_applicationtypes "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/types.ts"
click node_repository "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/repository.ts"
click node_testreset "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/api/test-support/reset/route.ts"
click node_qaguide "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/qa-guide/index.html"
click node_graphviewer "https://github.com/thiganth-k/hireflow-qa-lab/blob/main/graphify-out/graph.html"

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_catalog,node_jobdata,node_jobservice,node_detailroute,node_jobdetail,node_navbar,node_browseruser toneBlue
class node_form,node_validation,node_api,node_applicationtypes toneAmber
class node_repository,node_testreset toneMint
class node_qaguide,node_graphviewer toneRose
class node_applicant toneIndigo
```

## Components

### Job Discovery

- [Job Catalog](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Seeded Jobs](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/jobs/jobs-data.ts): `src/lib/jobs/jobs-data.ts`
- [Job Lookup](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/jobs/service.ts): `src/lib/jobs/service.ts`
- [Job Detail Route](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/jobs/%5Bid%5D/page.tsx): `src/app/jobs/[id]/page.tsx`
- [Job Detail UI](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/JobDetailInteractive.tsx): `src/components/JobDetailInteractive.tsx`
- [Navigation](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`

### Application Submission

- [Application Form](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/components/ApplicationForm.tsx): `src/components/ApplicationForm.tsx`
- [Input Validation](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/validation.ts): `src/lib/applications/validation.ts`
- [Applications API](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/api/applications/route.ts): `src/app/api/applications/route.ts`
- [Application Types](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/types.ts): `src/lib/applications/types.ts`

### Application Persistence

- [Application Repository](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/lib/applications/repository.ts): `src/lib/applications/repository.ts`
- [Test Data Reset](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/src/app/api/test-support/reset/route.ts): `src/app/api/test-support/reset/route.ts`

### QA Visualizers

- [QA Feature Visualizer](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/qa-guide/index.html): `qa-guide/index.html`
- [Code Graph Viewer](https://github.com/thiganth-k/hireflow-qa-lab/blob/main/graphify-out/graph.html): `graphify-out/graph.html`

### Other components

- **Applicant**
- **Dashboard Viewer**

## Connections

- Applicant → Job Catalog: browses (evidence: `README.md`)
- Job Catalog → Seeded Jobs: filters jobs (evidence: `src/app/page.tsx`)
- Job Catalog → Navigation: renders (evidence: `src/app/page.tsx`)
- Applicant → Job Detail Route: opens role (evidence: `README.md`)
- Job Detail Route → Job Lookup: looks up role (evidence: `src/app/jobs/[id]/page.tsx`)
- Job Lookup → Seeded Jobs: searches (evidence: `src/lib/jobs/service.ts`)
- Job Detail Route → Job Detail UI: renders (evidence: `src/app/jobs/[id]/page.tsx`)
- Job Detail Route → Navigation: renders (evidence: `src/app/jobs/[id]/page.tsx`)
- Job Detail UI → Application Form: renders (evidence: `src/components/JobDetailInteractive.tsx`)
- Applicant → Application Form: completes (evidence: `README.md`)
- Application Form → Input Validation: validates input (evidence: `src/components/ApplicationForm.tsx`)
- Application Form → Applications API: submits application (evidence: `src/components/ApplicationForm.tsx`)
- Applications API → Job Lookup: checks role (evidence: `src/app/api/applications/route.ts`)
- Applications API → Input Validation: validates input (evidence: `src/app/api/applications/route.ts`)
- Applications API → Application Repository: checks and saves (evidence: `src/app/api/applications/route.ts`)
- Applications API → Application Repository: lists records (evidence: `src/app/api/applications/route.ts`)
- Application Repository → Input Validation: normalizes email (evidence: `src/lib/applications/repository.ts`)
- Test Data Reset → Application Repository: resets records (evidence: `src/app/api/test-support/reset/route.ts`)
- Dashboard Viewer → QA Feature Visualizer: opens dashboard (evidence: `README.md`)
- Dashboard Viewer → Code Graph Viewer: opens graph (evidence: `README.md`)
