Skip to content

About

Official web dashboard for gitmoot: live orchestration DAG (#503)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gitmoot-dashboard

Read-only web backend for the gitmoot dashboard. It serves the embedded dashboard UI and a JSON API over gitmoot's store.

This is a small Go module (stdlib only, no third-party dependencies). The UI lives in web/dist and is embedded into the binary.

Contract

The package exposes a DataSource interface (plus optional extensions such as WorkflowDataSource, OverviewDataSource, TasksDataSource, OrgDataSource and ChangeCursorDataSource) and an HTTP Serve entry point; see datasource.go.

func Serve(ds DataSource) http.Handler

HTTP surface:

Route Returns
GET /api/overview Overview
GET /api/prs []TaskSummary
GET /api/campaigns, GET /api/campaign/{label} []WorkflowIndexEntry, WorkflowView
GET /api/runs, GET /api/run/{id} []JobSummary, Node
GET /api/run/{id}/checks JobChecks
GET /api/reviewers, GET /api/reviewer/{name} []AgentSummary, AgentDetail
GET /api/org, GET /api/org/role/{name} OrgView, OrgRoleView
GET /api/graph?repo= Graph (Galaxy)
GET /api/charts?days= Charts
GET /api/health Health
GET /api/config ConfigSnapshot
GET /api/attention Attention
GET /api/events SSE change pings (event: changed)
other /api/... paths and /events 404
everything else embedded static UI (SPA fallback)

The server is read-only and must never run in the gitmoot daemon path.

Development

Serve the embedded UI against an in-memory fake feed:

go run ./cmd/gitmoot-dashboard-dev   # http://localhost:8099

Gate:

go build ./... && go vet ./... && go test ./...

License

Apache-2.0. See LICENSE.

About

Official web dashboard for gitmoot: live orchestration DAG (#503)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages