P2R-02: UI rewire against the slim-schedule + source-group model #2

Merged
steve merged 16 commits from p2r-02-ui-rebuild into main 2026-05-03 21:34:02 +01:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit dd7b37a5c1 - Show all commits
+2 -2
View File
@@ -26,7 +26,7 @@ repos:
- id: gofumpt - id: gofumpt
name: gofumpt name: gofumpt
description: Format Go files with gofumpt (stricter superset of gofmt) description: Format Go files with gofumpt (stricter superset of gofmt)
entry: gofumpt -l -w entry: bash -c 'PATH="$(go env GOPATH)/bin:$PATH" exec gofumpt -l -w "$@"' --
language: system language: system
types: [go] types: [go]
pass_filenames: true pass_filenames: true
@@ -42,7 +42,7 @@ repos:
- id: golangci-lint - id: golangci-lint
name: golangci-lint name: golangci-lint
description: Run golangci-lint against the whole module (matches CI) description: Run golangci-lint against the whole module (matches CI)
entry: golangci-lint run ./... entry: bash -c 'PATH="$(go env GOPATH)/bin:$PATH" exec golangci-lint run ./...'
language: system language: system
types: [go] types: [go]
pass_filenames: false pass_filenames: false
+1 -1
View File
@@ -60,7 +60,7 @@ lint: ## Run golangci-lint
setup: hooks ## One-time per-clone setup (Go tools + git hooks) setup: hooks ## One-time per-clone setup (Go tools + git hooks)
@command -v gofumpt >/dev/null 2>&1 || go install mvdan.cc/gofumpt@latest @command -v gofumpt >/dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
@command -v golangci-lint >/dev/null 2>&1 || go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 @command -v golangci-lint >/dev/null 2>&1 || go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0
@echo "==> setup complete: gofumpt, golangci-lint, pre-commit hooks installed" @echo "==> setup complete: gofumpt, golangci-lint, pre-commit hooks installed"
hooks: ## Install the pre-commit hooks defined in .pre-commit-config.yaml hooks: ## Install the pre-commit hooks defined in .pre-commit-config.yaml
+1 -1
View File
@@ -102,7 +102,7 @@ func enrolHostForWS(t *testing.T, srv *Server, st *store.Store, name string) (ho
if err := st.SetHostCredentials(context.Background(), hostID, enc); err != nil { if err := st.SetHostCredentials(context.Background(), hostID, enc); err != nil {
t.Fatalf("set creds: %v", err) t.Fatalf("set creds: %v", err)
} }
return return hostID, token
} }
func sendHello(t *testing.T, c *websocket.Conn, hostname string) { func sendHello(t *testing.T, c *websocket.Conn, hostname string) {
+1 -1
View File
@@ -47,7 +47,7 @@ func setupTestHub(t *testing.T) (url string, token string, hostID string, st *st
t.Fatalf("enroll: %v", err) t.Fatalf("enroll: %v", err)
} }
url = "ws" + strings.TrimPrefix(srv.URL, "http") + "/ws/agent" url = "ws" + strings.TrimPrefix(srv.URL, "http") + "/ws/agent"
return return url, token, hostID, st, hub
} }
func TestWSHelloAndHeartbeat(t *testing.T) { func TestWSHelloAndHeartbeat(t *testing.T) {