use bootstrap 5 for UI, compact UI

This commit is contained in:
ayurishchev committed 2026-08-23 21:15:31 +03:00
1 parent 37910e410b
commit ee2a29cb36
18 files changed
+284 -161

No files matched your search

+5 -5
View File
@@ -60,7 +60,7 @@ func TestIPsSubmitAddAndForceRecheck(t *testing.T) {
// Empty submission is a client error, surfaced via the banner, not a 500.
body = postForm(t, ts, "POST", "/ips", map[string][]string{"addresses": {""}})
if !strings.Contains(body, "error-banner-client") {
if !strings.Contains(body, "alert-warning") {
t.Fatalf("expected client error banner for empty submission, got:\n%s", body)
}
}
@@ -116,7 +116,7 @@ func TestValidatorsCRUD(t *testing.T) {
// Conflict: creating the same validator_id again.
body = postForm(t, ts, "POST", "/validators", map[string][]string{"validator_id": {"val-1"}, "os_port_id": {"port-x"}})
if !strings.Contains(body, "error-banner-client") {
if !strings.Contains(body, "alert-warning") {
t.Fatalf("expected client error banner on duplicate create, got:\n%s", body)
}
@@ -148,7 +148,7 @@ func TestSitesPutAndConflict(t *testing.T) {
}
body = postForm(t, ts, "PUT", "/sites/2", map[string][]string{"site_id": {"site-1"}})
if !strings.Contains(body, "error-banner-client") {
if !strings.Contains(body, "alert-warning") {
t.Fatalf("expected conflict banner assigning a taken site_id to another slot, got:\n%s", body)
}
}
@@ -169,7 +169,7 @@ func TestTargetsAndCheckTypesRoundTrip(t *testing.T) {
// Can't delete a target group still referenced by a check type.
body = postForm(t, ts, "DELETE", "/targets/web", nil)
if !strings.Contains(body, "error-banner-client") {
if !strings.Contains(body, "alert-warning") {
t.Fatalf("expected conflict banner deleting in-use target group, got:\n%s", body)
}
@@ -190,7 +190,7 @@ func TestControlAPIUnreachable(t *testing.T) {
// transport failure.
ts := newTestServer(t, "http://127.0.0.1:1")
body := get(t, ts, "/overview")
if !strings.Contains(body, "error-banner-server") {
if !strings.Contains(body, "alert-danger") {
t.Fatalf("expected server/transport error banner when control-api is unreachable, got:\n%s", body)
}
}