# vikram220704/ai-persona-based-ux-testing-agent architecture

> Architecture diagram of the GitHub repository vikram220704/ai-persona-based-ux-testing-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vikram220704/ai-persona-based-ux-testing-agent
- Repository: https://github.com/vikram220704/ai-persona-based-ux-testing-agent

## Overview

WhoClicks runs configurable AI personas through a target website, turns their sessions into reviewed usability findings, and presents results for human review and fix-impact analysis. The dashboard starts or replays runs, receives live events, and exposes reports, baseline comparison, review decisions, and exports. The README documents several runtime capabilities whose implementation details are not fully sampled; edges are limited to shown calls, imports, and documented interactions.

Main entry points: [`backend/main.py`](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/main.py) (Run API and event stream), [`dashboard/src/App.tsx`](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/App.tsx) (Dashboard application), [`agent/run.py`](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py) (Persona session runner), [`dashboard/src/Feed.tsx`](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Feed.tsx) (Live session feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Persona execution"]
  node_persona_library["Persona definitions<br/>[personas.py]"]
  node_browser_helpers["Browser interaction helpers<br/>[repl_helpers.py]"]
  node_persona_runner["Persona session runner<br/>[run.py]"]
end

subgraph group_analysis["Finding analysis"]
  node_finding_extraction["Finding extraction<br/>[run.py]"]
  node_report_synthesis["Report synthesis<br/>[run.py]"]
  node_design_review["AI design review<br/>[run.py]"]
  node_fix_projection["Fix impact projection<br/>[run.py]"]
end

subgraph group_service["Run service"]
  node_api_service["Run API and event stream<br/>[main.py]"]
  node_run_storage[("Run records and screenshots<br/>[main.py]")]
  node_api_checker["API checker<br/>[check_api.py]"]
end

subgraph group_dashboard["Review dashboard"]
  node_dashboard_app["Dashboard application<br/>[App.tsx]"]
  node_run_setup["Run setup<br/>[Home.tsx]"]
  node_live_feed["Live session feed<br/>[Feed.tsx]"]
  node_step_screenshots["Step screenshots<br/>[Shot.tsx]"]
  node_report_view["Report and consensus<br/>[Report.tsx]"]
  node_baseline_view["Baseline comparison<br/>[Baseline.tsx]"]
  node_finding_review["Finding review<br/>[Findings.tsx]"]
  node_impact_view["Fix impact view<br/>[FixImpact.tsx]"]
  node_sample_run["Synthetic sample run<br/>[sample.ts]"]
end

subgraph group_integrations["External systems"]
  node_browser_use["Browser-use runtime"]
  node_llm["Azure OpenAI"]
end

node_reviewer(("Human reviewer"))
node_target_site(("Target website"))

node_dashboard_app -->|"renders"| node_run_setup
node_dashboard_app -->|"renders"| node_live_feed
node_dashboard_app -->|"renders"| node_report_view
node_dashboard_app -->|"renders"| node_baseline_view
node_dashboard_app -->|"renders"| node_finding_review
node_dashboard_app -->|"renders"| node_impact_view
node_live_feed -->|"renders"| node_step_screenshots
node_dashboard_app -->|"streams events"| node_api_service
node_run_setup -->|"starts runs"| node_api_service
node_api_service -->|"starts run"| node_persona_runner
node_persona_runner -->|"uses profiles"| node_persona_library
node_persona_runner -->|"uses helpers"| node_browser_helpers
node_persona_runner -->|"drives browser"| node_browser_use
node_browser_use -->|"interacts with"| node_target_site
node_persona_runner -->|"extracts findings"| node_finding_extraction
node_finding_extraction -->|"requests analysis"| node_llm
node_persona_runner -->|"builds report"| node_report_synthesis
node_report_synthesis -->|"requests synthesis"| node_llm
node_report_synthesis -->|"passes findings"| node_design_review
node_design_review -->|"requests review"| node_llm
node_api_service -->|"reads and writes"| node_run_storage
node_api_service -->|"projects accepted fixes"| node_fix_projection
node_fix_projection -->|"requests projections"| node_llm
node_finding_review -->|"saves decisions"| node_api_service
node_api_checker -->|"checks endpoints"| node_api_service
node_dashboard_app -->|"loads sample"| node_sample_run
node_reviewer -->|"accepts or rejects"| node_finding_review
node_api_service -->|"streams run events"| node_live_feed
node_api_service -->|"serves reports"| node_report_view

click node_persona_library "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/personas.py"
click node_browser_helpers "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/repl_helpers.py"
click node_persona_runner "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py"
click node_finding_extraction "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py"
click node_report_synthesis "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py"
click node_design_review "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py"
click node_fix_projection "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py"
click node_api_service "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/main.py"
click node_run_storage "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/main.py"
click node_api_checker "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/check_api.py"
click node_dashboard_app "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/App.tsx"
click node_run_setup "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Home.tsx"
click node_live_feed "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Feed.tsx"
click node_step_screenshots "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Shot.tsx"
click node_report_view "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Report.tsx"
click node_baseline_view "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Baseline.tsx"
click node_finding_review "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Findings.tsx"
click node_impact_view "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/FixImpact.tsx"
click node_sample_run "https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/dev/sample.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_persona_library,node_browser_helpers,node_persona_runner,node_reviewer toneBlue
class node_finding_extraction,node_report_synthesis,node_design_review,node_fix_projection toneAmber
class node_api_service,node_run_storage,node_api_checker toneMint
class node_dashboard_app,node_run_setup,node_live_feed,node_step_screenshots,node_report_view,node_baseline_view,node_finding_review,node_impact_view,node_sample_run toneRose
class node_browser_use,node_llm,node_target_site toneIndigo
```

## Components

### Persona execution

- [Persona definitions](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/personas.py): `agent/personas.py`
- [Browser interaction helpers](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/repl_helpers.py): `agent/repl_helpers.py`
- [Persona session runner](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py): `agent/run.py`

### Finding analysis

- [Finding extraction](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py): `agent/run.py`
- [Report synthesis](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py): `agent/run.py`
- [AI design review](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py): `agent/run.py`
- [Fix impact projection](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/agent/run.py): `agent/run.py`

### Run service

- [Run API and event stream](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/main.py): `backend/main.py`
- [Run records and screenshots](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/main.py): `backend/main.py`
- [API checker](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/backend/check_api.py): `backend/check_api.py`

### Review dashboard

- [Dashboard application](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/App.tsx): `dashboard/src/App.tsx`
- [Run setup](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Home.tsx): `dashboard/src/Home.tsx`
- [Live session feed](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Feed.tsx): `dashboard/src/Feed.tsx`
- [Step screenshots](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Shot.tsx): `dashboard/src/Shot.tsx`
- [Report and consensus](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Report.tsx): `dashboard/src/Report.tsx`
- [Baseline comparison](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Baseline.tsx): `dashboard/src/Baseline.tsx`
- [Finding review](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/Findings.tsx): `dashboard/src/Findings.tsx`
- [Fix impact view](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/FixImpact.tsx): `dashboard/src/FixImpact.tsx`
- [Synthetic sample run](https://github.com/vikram220704/ai-persona-based-ux-testing-agent/blob/main/dashboard/src/dev/sample.ts): `dashboard/src/dev/sample.ts`

### External systems

- **Browser-use runtime**
- **Azure OpenAI**

### Other components

- **Human reviewer**
- **Target website**

## Connections

- Dashboard application → Run setup: renders (evidence: `dashboard/src/App.tsx`)
- Dashboard application → Live session feed: renders (evidence: `dashboard/src/App.tsx`)
- Dashboard application → Report and consensus: renders (evidence: `dashboard/src/App.tsx`)
- Dashboard application → Baseline comparison: renders (evidence: `dashboard/src/App.tsx`)
- Dashboard application → Finding review: renders (evidence: `dashboard/src/App.tsx`)
- Dashboard application → Fix impact view: renders (evidence: `dashboard/src/App.tsx`)
- Live session feed → Step screenshots: renders (evidence: `dashboard/src/Feed.tsx`)
- Dashboard application → Run API and event stream: streams events (evidence: `dashboard/src/App.tsx`)
- Run setup → Run API and event stream: starts runs (evidence: `readme.md`)
- Run API and event stream → Persona session runner: starts run (evidence: `backend/main.py`)
- Persona session runner → Persona definitions: uses profiles (evidence: `agent/run.py`)
- Persona session runner → Browser interaction helpers: uses helpers (evidence: `readme.md`)
- Persona session runner → Browser-use runtime: drives browser (evidence: `readme.md`)
- Browser-use runtime → Target website: interacts with (evidence: `readme.md`)
- Persona session runner → Finding extraction: extracts findings (evidence: `agent/run.py`)
- Finding extraction → Azure OpenAI: requests analysis (evidence: `agent/run.py`)
- Persona session runner → Report synthesis: builds report (evidence: `agent/run.py`)
- Report synthesis → Azure OpenAI: requests synthesis (evidence: `readme.md`)
- Report synthesis → AI design review: passes findings (evidence: `agent/run.py`)
- AI design review → Azure OpenAI: requests review (evidence: `readme.md`)
- Run API and event stream → Run records and screenshots: reads and writes (evidence: `backend/main.py`)
- Run API and event stream → Fix impact projection: projects accepted fixes (evidence: `backend/main.py`)
- Fix impact projection → Azure OpenAI: requests projections (evidence: `readme.md`)
- Finding review → Run API and event stream: saves decisions (evidence: `readme.md`)
- API checker → Run API and event stream: checks endpoints (evidence: `backend/check_api.py`)
- Dashboard application → Synthetic sample run: loads sample (evidence: `dashboard/src/App.tsx`)
- Human reviewer → Finding review: accepts or rejects (evidence: `readme.md`)
- Run API and event stream → Live session feed: streams run events (evidence: `readme.md`)
- Run API and event stream → Report and consensus: serves reports (evidence: `readme.md`)
