From 519b93e8ecf5f5a4a906d60299016e7bd4bf596a Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Tue, 12 Aug 2025 16:19:02 +0000 Subject: [PATCH] feat: make node names in summary cards clickable - Node names in the summary cards at the top now link to Proxmox web interface - Matches the behavior of node names in the table rows below - Uses same hover effect (blue color) for consistency --- .../src/components/Dashboard/NodeCard.tsx | 10 ++- .../src/components/Alerts/WebhookConfig.tsx | 4 +- .../src/components/Settings/Settings.tsx | 86 +------------------ 3 files changed, 14 insertions(+), 86 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/NodeCard.tsx b/frontend-modern/src/components/Dashboard/NodeCard.tsx index 3c5fb3a2b..d99353918 100644 --- a/frontend-modern/src/components/Dashboard/NodeCard.tsx +++ b/frontend-modern/src/components/Dashboard/NodeCard.tsx @@ -114,7 +114,15 @@ const NodeCard: Component = (props) => { {/* Header */}

- {props.node.name} + + {props.node.name} +
diff --git a/internal/api/frontend-modern/src/components/Alerts/WebhookConfig.tsx b/internal/api/frontend-modern/src/components/Alerts/WebhookConfig.tsx index bfc3f277a..b2b6a8f6b 100644 --- a/internal/api/frontend-modern/src/components/Alerts/WebhookConfig.tsx +++ b/internal/api/frontend-modern/src/components/Alerts/WebhookConfig.tsx @@ -122,6 +122,7 @@ export function WebhookConfig(props: WebhookConfigProps) { generic: 'Generic', discord: 'Discord', slack: 'Slack', + telegram: 'Telegram', teams: 'Microsoft Teams', 'teams-adaptive': 'Teams (Adaptive)', pagerduty: 'PagerDuty' @@ -206,7 +207,7 @@ export function WebhookConfig(props: WebhookConfigProps) {
- + {(service) => ( - -
-
-

- } - > -
-
- - - -
-

API Protection Not Configured

-

- Your Pulse instance is currently running without API authentication. - All configuration endpoints are accessible without credentials. -

-
-
-
- - - -
-

Configure API Token

-

- Setting an API token will require authentication for all configuration changes and exports. -

- -
-
-

For systemd service:

-
-sudo systemctl edit pulse
-# Add these lines:
-[Service]
-Environment="API_TOKEN=your-secure-token-here"
-
-# Then restart:
-sudo systemctl restart pulse
-
- -
-

For Docker:

-
-docker run -d \
-  -e API_TOKEN=your-secure-token \
-  -p 7655:7655 \
-  -v pulse-data:/data \
-  rcourtman/pulse:latest
-
-
- -
-

- Security Note: Choose a strong, random token. You can generate one with: openssl rand -hex 32 -

-
-
+