How ggingggang/dashboard works
IDP Dashboard is a Windows desktop operations view that connects to existing CI/CD and observability services using read-only requests. Developers configure connections and targets, then view collected build, queue, deployment, and metric status or run on-demand metric, log, trace, and JSON queries. Results can be arranged into a persistent personal dashboard; build history is stored locally. Frontend-to-frontend edges follow indexed references or excerpts. Backend relationships and the native bridge are shown as unverified where the excerpts do not establish the call path.
Main entry points: main.ts Page navigation · collector.go Snapshot collection · dashboard.ts Personal dashboard · service.go Application service
Components 24
Desktop interface
- Page navigation
frontend/src/main.ts - Native bridge
frontend/src/bridge/index.ts
Operations views
- Personal dashboard
frontend/src/components/dashboard.ts - Widget data
frontend/src/components/dashboard-data.ts - Dashboard layout
frontend/src/components/dashboard-layout.ts - Metric charts
frontend/src/components/chart.ts - Metric, log, trace explorer
frontend/src/components/explorer.ts - JSON API query
frontend/src/components/api-query.ts - JSON query validation
frontend/src/shared/json-query.ts
Application services
- Desktop API
app.go - Application service
internal/application/service.go - Snapshot collection
internal/collector/collector.go - Build history collection
internal/collector/collect_builds.go - Queue collection
internal/collector/collect_queue.go - Deployment collection
internal/collector/collect_deployments.go - Metric collection
internal/collector/collect_metrics.go
Provider adapters
- Jenkins adapter
internal/providers/jenkins/jenkins.go - Argo CD adapter
internal/providers/argocd/argocd.go - Prometheus adapter
internal/providers/prometheus/prometheus.go - Loki adapter
internal/providers/loki/loki.go - Tempo adapter
internal/providers/tempo/tempo.go
Local state
- SQLite history
internal/storage/sqlite.go - Provider registry
internal/platform/registry.go
Other components
- Developer
Connections 32
- Developer → Page navigation: uses
- Page navigation → Personal dashboard: opens
frontend/src/main.ts - Page navigation → JSON API query: mounts
frontend/src/main.ts - Page navigation → Metric, log, trace explorer: renders
frontend/src/main.ts - Page navigation → Metric charts: renders
frontend/src/main.ts - Personal dashboard → Widget data: updates
frontend/src/components/dashboard.ts - Personal dashboard → Dashboard layout: validates layout
frontend/src/components/dashboard.ts - Personal dashboard → Native bridge: loads preferences
frontend/src/components/dashboard.ts - Widget data → Native bridge: queries data
frontend/src/components/dashboard-data.ts - Widget data → Metric charts: shows metrics
- JSON API query → Native bridge: reads JSON
frontend/src/components/api-query.ts - JSON API query → JSON query validation: validates request
frontend/src/components/api-query.ts - Native bridge → Desktop API: invokes native API
- Desktop API → Application service: delegates
- Application service → Snapshot collection: coordinates collection
- Snapshot collection → Build history collection: collects builds
- Snapshot collection → Queue collection: collects queue
- Snapshot collection → Deployment collection: collects deployments
- Snapshot collection → Metric collection: collects metrics
- Build history collection → Jenkins adapter: fetches builds
- Queue collection → Jenkins adapter: fetches queue
- Deployment collection → Argo CD adapter: fetches applications
- Metric collection → Prometheus adapter: runs queries
- Metric, log, trace explorer → Loki adapter: searches logs
- Metric, log, trace explorer → Tempo adapter: searches traces
- Application service → SQLite history: persists history
- Application service → Provider registry: resolves providers
- Jenkins adapter → Developer: reads upstream
- Argo CD adapter → Developer: reads upstream
- Prometheus adapter → Developer: reads upstream
- Loki adapter → Developer: reads upstream
- Tempo adapter → Developer: reads upstream