Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix(frontend): extend kiosk mode to Docker and Hosts pages
rcourtman8eabd266fc26
diff --git a/.github/workflows/deploy-demo-server.yml b/.github/workflows/deploy-demo-server.ymlindex bbd405fe5f..7c268bc494 100644--- a/.github/workflows/deploy-demo-server.yml+++ b/.github/workflows/deploy-demo-server.yml@@ -1,9 +1,9 @@name: Deploy Demo Serveron:- push:- branches: [main]workflow_dispatch:+ schedule:+ - cron: '0 0 * * *' # Nightly at midnightjobs:deploy:diff --git a/frontend-modern/src/components/Docker/DockerHosts.tsx b/frontend-modern/src/components/Docker/DockerHosts.tsxindex 5b6e67c673..6890eede52 100644--- a/frontend-modern/src/components/Docker/DockerHosts.tsx+++ b/frontend-modern/src/components/Docker/DockerHosts.tsx@@ -21,6 +21,7 @@ import { STORAGE_KEYS } from '@/utils/localStorage';import { DEGRADED_HEALTH_STATUSES, OFFLINE_HEALTH_STATUSES } from '@/utils/status';import { MonitoringAPI } from '@/api/monitoring';import { showSuccess, showError, showToast } from '@/utils/toast';+import { isKioskMode } from '@/utils/url';type DockerMetadataRecord = Record<string, DockerMetadata>;type DockerHostMetadataRecord = Record<string, DockerHostMetadata>;@@ -96,6 +97,9 @@ export const DockerHosts: Component<DockerHostsProps> = (props) => {// Detect if any Swarm clusters exist (2+ hosts sharing a clusterId)const hasSwarmClustersDetected = createMemo(() => hasSwarmClusters(sortedHosts()));+ // Kiosk mode - hide filter panel for clean dashboard display+ const kioskMode = createMemo(() => isKioskMode());+const clampPercent = (value: number | undefined | null) => {if (value === undefined || value === null || Number.isNaN(value)) return 0;if (!Number.isFinite(value)) return 0;@@ -563,7 +567,7 @@ export const DockerHosts: Component<DockerHostsProps> = (props) => {when={sortedHosts().length > 0}fallback={<>- {renderFilter()}+ <Show when={!kioskMode()}>{renderFilter()}</Show><Card padding="lg"><EmptyStateicon={@@ -605,7 +609,7 @@ export const DockerHosts: Component<DockerHostsProps> = (props) => {/></Show>- {renderFilter()}+ <Show when={!kioskMode()}>{renderFilter()}</Show><Showwhen={groupingMode() === 'cluster'}diff --git a/frontend-modern/src/components/Hosts/HostsOverview.tsx b/frontend-modern/src/components/Hosts/HostsOverview.tsxindex 6e7047d2b7..14570bc18a 100644--- a/frontend-modern/src/components/Hosts/HostsOverview.tsx+++ b/frontend-modern/src/components/Hosts/HostsOverview.tsx@@ -25,6 +25,7 @@ import { HostMetadataAPI, type HostMetadata } from '@/api/hostMetadata';import { UrlEditPopover, createUrlEditState } from '@/components/shared/UrlEditPopover';import { showSuccess, showError } from '@/utils/toast';import { logger } from '@/utils/logger';+import { isKioskMode } from '@/utils/url';// Column definition for hosts tableexport interface HostColumnDef {@@ -650,6 +651,9 @@ export const HostsOverview: Component = () => {const visibleColumnIds = createMemo(() => visibleColumns().map(c => c.id));const isColVisible = (colId: string) => visibleColumnIds().includes(colId);+ // Kiosk mode - hide filter panel for clean dashboard display+ const kioskMode = createMemo(() => isKioskMode());+// Host metadata management (for custom URLs)const [hostMetadata, setHostMetadata] = createSignal<Record<string, HostMetadata>>({});const [hostMetadataVersion, setHostMetadataVersion] = createSignal(0);@@ -914,19 +918,21 @@ export const HostsOverview: Component = () => {when={sortedHosts().length === 0}fallback={<>- {/* Filters with column visibility */}- <HostsFilter- search={search}- setSearch={setSearch}- statusFilter={statusFilter}- setStatusFilter={setStatusFilter}- onReset={() => setSearch('')}- searchInputRef={(el) => (searchInputRef = el)}- availableColumns={columnVisibility.availableToggles()}- isColumnHidden={columnVisibility.isHiddenByUser}- onColumnToggle={columnVisibility.toggle}- onColumnReset={columnVisibility.resetToDefaults}- />+ {/* Filters with column visibility - hidden in kiosk mode */}+ <Show when={!kioskMode()}>+ <HostsFilter+ search={search}+ setSearch={setSearch}+ statusFilter={statusFilter}+ setStatusFilter={setStatusFilter}+ onReset={() => setSearch('')}+ searchInputRef={(el) => (searchInputRef = el)}+ availableColumns={columnVisibility.availableToggles()}+ isColumnHidden={columnVisibility.isHiddenByUser}+ onColumnToggle={columnVisibility.toggle}+ onColumnReset={columnVisibility.resetToDefaults}+ />+ </Show>{/* Host Table */}<Showdiff --git a/internal/notifications/templates_test.go b/internal/notifications/templates_test.goindex 74463e9326..d9ecf7affb 100644--- a/internal/notifications/templates_test.go+++ b/internal/notifications/templates_test.go@@ -3,6 +3,7 @@ package notificationsimport ("strings""testing"+ "text/template")func TestGetEmailProviders(t *testing.T) {@@ -495,7 +496,17 @@ func TestEmailProvider_Fields(t *testing.T) {if !provider.AuthRequired {t.Error("AuthRequired should be true")}- if provider.Instructions != "Test instructions" {- t.Errorf("Instructions = %q, want Test instructions", provider.Instructions)+}++func TestGetWebhookTemplates_TemplatesAreValid(t *testing.T) {+ templates := GetWebhookTemplates()++ for _, tmpl := range templates {+ t.Run(tmpl.Service, func(t *testing.T) {+ _, err := template.New("test").Funcs(templateFuncMap()).Parse(tmpl.PayloadTemplate)+ if err != nil {+ t.Errorf("Template for service %q is invalid: %v", tmpl.Service, err)+ }+ })}}diff --git a/internal/notifications/webhook_templates.go b/internal/notifications/webhook_templates.goindex 23d8070d3f..b17b144c15 100644--- a/internal/notifications/webhook_templates.go+++ b/internal/notifications/webhook_templates.go@@ -312,7 +312,7 @@ View in Pulse: {{.Instance}}`,PayloadTemplate: `{"username": "Pulse Monitoring","icon_url": "https://raw.githubusercontent.com/rcourtman/Pulse/main/frontend-modern/public/android-chrome-192x192.png",- "text": "{{if eq .Level "critical"}}:rotating_light: **CRITICAL ALERT**{{else if eq .Level "warning"}}:warning: **WARNING ALERT**{{else}}:information_source: **INFO**{{end}}\n\n**{{.ResourceName}}** on **{{.Node}}**\n\n{{.Message}}\n\n| Detail | Value |\n|:-------|:------|\n| Resource | {{.ResourceName}} |\n| Node | {{.Node}} |\n| Type | {{.Type | title}} |\n| Current | {{if or (eq .Type \"diskRead\") (eq .Type \"diskWrite\")}}{{printf \"%.1f\" .Value}} MB/s{{else}}{{printf \"%.1f\" .Value}}%{{end}} |\n| Threshold | {{if or (eq .Type \"diskRead\") (eq .Type \"diskWrite\")}}{{printf \"%.0f\" .Threshold}} MB/s{{else}}{{printf \"%.0f\" .Threshold}}%{{end}} |\n| Duration | {{.Duration}} |\n| Alert ID | {{.ID}} |\n\n[View in Pulse]({{.Instance}})"+ "text": "{{if eq .Level "critical"}}:rotating_light: **CRITICAL ALERT**{{else if eq .Level "warning"}}:warning: **WARNING ALERT**{{else}}:information_source: **INFO**{{end}}\n\n**{{.ResourceName}}** on **{{.Node}}**\n\n{{.Message}}\n\n| Detail | Value |\n|:-------|:------|\n| Resource | {{.ResourceName}} |\n| Node | {{.Node}} |\n| Type | {{.Type | title}} |\n| Current | {{if or (eq .Type "diskRead") (eq .Type "diskWrite")}}{{printf "%.1f" .Value}} MB/s{{else}}{{printf "%.1f" .Value}}%{{end}} |\n| Threshold | {{if or (eq .Type "diskRead") (eq .Type "diskWrite")}}{{printf "%.0f" .Threshold}} MB/s{{else}}{{printf "%.0f" .Threshold}}%{{end}} |\n| Duration | {{.Duration}} |\n| Alert ID | {{.ID}} |\n\n[View in Pulse]({{.Instance}})"}`,Instructions: "1. In Mattermost, go to Integrations > Incoming Webhooks\n2. Create a new webhook and select the channel\n3. Copy the webhook URL and paste it here\n\nNote: This template uses Markdown formatting which is fully supported by Mattermost.",},