From 9c34712b2d40210a982eb7902b68b56ae39c1bee Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Thu, 5 Jun 2025 12:47:46 +0100 Subject: [PATCH] partial: remove main renderAlertsTab function from settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed the massive renderAlertsTab function (314 lines) - Removed alerts case from main tab switch - Still need to remove remaining alert references and functions - This is partial cleanup to avoid having duplicate alert management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/public/js/ui/settings.js | 317 ----------------------------------- 1 file changed, 317 deletions(-) diff --git a/src/public/js/ui/settings.js b/src/public/js/ui/settings.js index 47628d53e..471556a3b 100644 --- a/src/public/js/ui/settings.js +++ b/src/public/js/ui/settings.js @@ -173,9 +173,6 @@ PulseApp.ui.settings = (() => { case 'pbs': content = renderPBSTab(pbs, safeConfig); break; - case 'alerts': - content = renderAlertsTab(alerts, safeConfig); - break; case 'system': content = renderSystemTab(advanced, safeConfig); break; @@ -446,320 +443,6 @@ PulseApp.ui.settings = (() => { `; } - function renderAlertsTab(alerts, config) { - const smtp = config.advanced?.smtp || {}; - return ` -
- - -
-

Email Notifications

-

Set up email alerts for critical system events. We'll help you configure this automatically.

- - -
- -
- - - - -
-
- - -
- -
-
- - -
-
- - -

Separate multiple emails with commas

-
-
- -
- - -
- Enter your email password -
-
-
- - - - - -
- - -
- - -
-
- -
-
- - -
-

Webhook Notifications

-

Send alert notifications to Discord, Slack, Teams, or any webhook-compatible service.

- -
-
- - -

Discord, Slack, Teams, or any webhook endpoint

-
-
- -
- - -
- -
-
-
- - - -
-
-

- Popular services:
- • Discord: Server Settings → Integrations → Webhooks
- • Slack: Apps → Incoming Webhooks
- • Teams: Channel → Connectors → Incoming Webhook -

-
-
-
-
- - -
-
-
- - - -
-
-

Custom Per-VM/LXC Thresholds

-

Configure custom alert thresholds for individual VMs/LXCs based on their specific resource requirements and usage patterns.

-
-
-
- -
-
-
-
-

Custom Threshold Configurations

-

VMs and containers with custom alert thresholds

-
- -
-
- -
-
- - - - - Loading threshold configurations... -
-
- - -
- -
-
-

Examples:

-
    -
  • • Storage/NAS VMs: Set memory warning to 95% and critical to 99% (high memory usage from disk caching is normal)
  • -
  • • Application Servers: Set CPU warning to 70% and critical to 85% for better performance monitoring
  • -
  • • Development VMs: Set disk warning to 75% and critical to 90% for early space alerts
  • -
-
-
-
- `; - } function renderSystemTab(advanced, config) { const currentTheme = localStorage.getItem('theme') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');