Expand pipeline panes and select the verified Docker client endpoint

This commit is contained in:
2026-10-10 00:56:55 +01:00
parent 2cc703b8a5
commit 7565693957
13 changed files with 352 additions and 8 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func NtfyLines(s *protocol.SystemStatus) []string {
lines = append(lines, "Login: "+s.NtfyUser, "Use the password set during installation.")
}
if s.Ntfy.Health == "not configured" {
lines = append(lines, "On the server: rerun ./install.sh.")
lines = append(lines, "The connected Pipelines server has no ntfy publishing configuration.", "For Docker: check docker compose port pipelines 8080.", "Connect the TUI to that port; check --url / PIPELINES_URL.", "If this is the intended server: run ./install.sh there.")
} else if s.Ntfy.Health == "unreachable" || s.Ntfy.Health == "unhealthy" {
lines = append(lines, "On the server: docker compose logs ntfy")
}
+10
View File
@@ -1,6 +1,7 @@
package statusview
import (
"git.a-wan.net/alan/pipelines/internal/protocol"
"strings"
"testing"
)
@@ -19,3 +20,12 @@ func TestOfflineStatusIncludesBothServicesAndRedactsURLCredentials(t *testing.T)
}
}
}
func TestUnconfiguredNtfyExplainsConnectedServerAndEndpointMismatch(t *testing.T) {
text := strings.Join(NtfyLines(&protocol.SystemStatus{Ntfy: protocol.ServiceStatus{Health: "not configured"}}), "\n")
for _, want := range []string{"connected Pipelines server", "docker compose port pipelines 8080", "--url / PIPELINES_URL"} {
if !strings.Contains(text, want) {
t.Fatal("missing endpoint diagnosis", want, text)
}
}
}