How figuejojo/qualitygatehub works
Quality Gate Dashboard accepts CI workflow results over HTTP, validates and queues them, persists runs and check metadata in SQLite, computes trend verdicts, and streams updates to the browser over SSE. The graph separates HTTP/presentation, application use cases, domain rules, and runtime adapters. Relationships are grounded in the excerpts and README; frontend internals and several adapter details were not sampled, so those links are limited to documented behavior.
Main entry points: http_server.py HTTP API · bootstrap.py Application assembly · sqlite_store.py SQLite repositories · simulation_service.py Demo simulation
Components 17
HTTP and browser
- HTTP API
src/backend/interfaces/http_server.py - Response presenters
src/backend/interfaces/presenters.py - Dashboard page
src/frontend/index.html
Application services
- Ingest service
src/backend/application/ingest_service.py - Demo simulation
src/backend/application/simulation_service.py - Check management
src/backend/application/check_service.py - Dashboard queries
src/backend/application/dashboard_service.py - Run worker
src/backend/application/worker.py
Domain rules
- Run and check models
src/backend/domain/models.py - Payload validation
src/backend/domain/validators.py - Status and trend rules
src/backend/domain/policies.py
Runtime adapters
- Application assembly
src/backend/bootstrap.py - Run queue
src/backend/infrastructure/memory_queue.py - SSE event hub
src/backend/infrastructure/event_hub.py - SQLite repositories
src/backend/infrastructure/sqlite_store.py
Other components
- CI pipeline
- Browser
Connections 33
- CI pipeline → HTTP API: posts results
README.md - HTTP API → Ingest service: routes ingest
src/backend/interfaces/http_server.py - HTTP API → Demo simulation: routes simulation
src/backend/interfaces/http_server.py - HTTP API → Check management: updates checks
src/backend/interfaces/http_server.py - HTTP API → Dashboard queries: queries dashboard
src/backend/interfaces/http_server.py - HTTP API → Dashboard page: serves page
src/backend/interfaces/http_server.py - HTTP API → Response presenters: formats responses
src/backend/interfaces/http_server.py - HTTP API → SSE event hub: streams events
src/backend/interfaces/http_server.py - Ingest service → Payload validation: validates payload
src/backend/application/ingest_service.py - Ingest service → SQLite repositories: reads check kinds
src/backend/application/ingest_service.py - Ingest service → Run queue: enqueues command
src/backend/application/ingest_service.py - Demo simulation → SQLite repositories: reads prior values
src/backend/application/simulation_service.py - Demo simulation → SQLite repositories: reads check kinds
src/backend/application/simulation_service.py - Demo simulation → Payload validation: validates payload
src/backend/application/simulation_service.py - Demo simulation → Run queue: enqueues command
src/backend/application/simulation_service.py - Check management → SQLite repositories: persists definitions
src/backend/application/check_service.py - Dashboard queries → SQLite repositories: reads dashboard
src/backend/application/dashboard_service.py - Run worker → Run queue: consumes commands
src/backend/application/worker.py - Run worker → SQLite repositories: persists runs
src/backend/application/worker.py - Run worker → SSE event hub: publishes updates
src/backend/application/worker.py - Payload validation → Run and check models: creates command
src/backend/domain/validators.py - Payload validation → Status and trend rules: normalizes status
src/backend/domain/validators.py - SQLite repositories → Status and trend rules: judges trends
src/backend/infrastructure/sqlite_store.py - Application assembly → Ingest service: assembles
src/backend/bootstrap.py - Application assembly → Demo simulation: assembles
src/backend/bootstrap.py - Application assembly → Check management: assembles
src/backend/bootstrap.py - Application assembly → Dashboard queries: assembles
src/backend/bootstrap.py - Application assembly → Run worker: starts worker
src/backend/bootstrap.py - Application assembly → SQLite repositories: configures store
src/backend/bootstrap.py - Application assembly → Run queue: configures queue
src/backend/bootstrap.py - Application assembly → SSE event hub: configures events
src/backend/bootstrap.py - Browser → HTTP API: requests dashboard
README.md - SSE event hub → Browser: pushes SSE updates
README.md