diff --git a/internal/handlers/settingshealthchecks.go b/internal/handlers/settingshealthchecks.go index 6093336..affbaf9 100644 --- a/internal/handlers/settingshealthchecks.go +++ b/internal/handlers/settingshealthchecks.go @@ -90,7 +90,7 @@ func (h *BaseHandler) SettingsHealthchecksCreatePOST(c echo.Context) error { Name: c.FormValue("name"), Slug: slug.Make(c.FormValue("name")), Schedule: c.FormValue("schedule"), - WorkerGroups: strings.Split(c.FormValue("workergroups"), ","), + WorkerGroups: strings.Split(c.FormValue("workergroups"), " "), Script: c.FormValue("script"), } diff --git a/web/static/css/main.css b/web/static/css/main.css index 15ca8d6..1a2a4aa 100644 --- a/web/static/css/main.css +++ b/web/static/css/main.css @@ -12,6 +12,11 @@ @tailwind components; @tailwind utilities; +.link, +p > a { + @apply font-medium text-blue-700 hover:underline; +} + .navbar { @apply justify-center flex flex-wrap space-x-2 gap-2 mt-10; } diff --git a/web/static/css/tailwind.css b/web/static/css/tailwind.css index 6be16cc..716c3b8 100644 --- a/web/static/css/tailwind.css +++ b/web/static/css/tailwind.css @@ -852,6 +852,11 @@ video { border-color: rgb(209 213 219 / var(--tw-border-opacity)); } +.bg-blue-100 { + --tw-bg-opacity: 1; + background-color: rgb(219 234 254 / var(--tw-bg-opacity)); +} + .bg-blue-700 { --tw-bg-opacity: 1; background-color: rgb(29 78 216 / var(--tw-bg-opacity)); @@ -1059,9 +1064,9 @@ video { color: rgb(37 99 235 / var(--tw-text-opacity)); } -.text-blue-700 { +.text-blue-800 { --tw-text-opacity: 1; - color: rgb(29 78 216 / var(--tw-text-opacity)); + color: rgb(30 64 175 / var(--tw-text-opacity)); } .text-gray-400 { @@ -1140,6 +1145,18 @@ video { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); } +.link, +p > a { + font-weight: 500; + --tw-text-opacity: 1; + color: rgb(29 78 216 / var(--tw-text-opacity)); +} + +.link:hover, +p > a:hover { + text-decoration-line: underline; +} + .navbar { margin-top: 2.5rem; display: flex; diff --git a/web/templates/pages/settings_healthchecks.tmpl b/web/templates/pages/settings_healthchecks.tmpl index f3f24d5..b8403a2 100644 --- a/web/templates/pages/settings_healthchecks.tmpl +++ b/web/templates/pages/settings_healthchecks.tmpl @@ -59,17 +59,27 @@ {{range .WorkerGroups}} + {{ . }} + {{end}} - OK + + SUCCESS + + + FAILURE + + + UNKNOWN + {{.Schedule}} - Details + Details diff --git a/web/templates/pages/settings_healthchecks_create.tmpl b/web/templates/pages/settings_healthchecks_create.tmpl index 15e3f35..2ab0833 100644 --- a/web/templates/pages/settings_healthchecks_create.tmpl +++ b/web/templates/pages/settings_healthchecks_create.tmpl @@ -15,7 +15,7 @@

Script is what determines the status of a service. - You can read more about it on k6 documentation. + You can read more about it on k6 documentation.

diff --git a/web/templates/pages/settings_healthchecks_describe.tmpl b/web/templates/pages/settings_healthchecks_describe.tmpl index 1f880b8..d23687f 100644 --- a/web/templates/pages/settings_healthchecks_describe.tmpl +++ b/web/templates/pages/settings_healthchecks_describe.tmpl @@ -15,7 +15,7 @@

Script is what determines the status of a service. - You can read more about it on k6 documentation. + You can read more about it on k6 documentation.

diff --git a/web/templates/pages/settings_workers.tmpl b/web/templates/pages/settings_workers.tmpl index 9361a6f..dc722bf 100644 --- a/web/templates/pages/settings_workers.tmpl +++ b/web/templates/pages/settings_workers.tmpl @@ -55,13 +55,23 @@ {{.Name}} - {{.Group}} + + {{.Group}} + - OK + + SUCCESS + + + FAILURE + + + UNKNOWN + - Details + Details