Commit Graph
54 Commits
Author SHA1 Message Date
nmemmertandClaude Sonnet 4.6 a6cf6a9762 Add heartbeat monitoring, alert rules, cert badges, webhook templates, and status page visibility
- Heartbeat type: cron jobs POST to /api/heartbeat/:token to stay alive; scheduler marks
  them down if no ping is received within the configured timeout window
- Alert rules: per-resource consecutive_failures_threshold now respected in handleIncident,
  overriding the global setting; GET /api/resources/:id/alert-rules endpoint added
- SSL cert expiry badge: dashboard rows surface days_remaining for TLS monitors, turning
  orange at ≤30 days and red at ≤7 days
- Webhook payload templates: {{name}}/{{status}}/{{url}}/{{type}}/{{message}}/{{timestamp}}
  variables interpolated before POST; Slack-compatible text wrapping as fallback
- Status page visibility: is_public column per resource; GET /api/status-page returns only
  public resources; Status.js updated to use the new endpoint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-31 09:08:15 -04:00
Nate Emmert 0475bf5aa5 Refine dark theme readability and chart visibility across dashboard pages 2026-03-10 14:54:40 -04:00
Nate Emmert b9da742b3d Redesign UI into command center layout 2026-03-10 11:06:17 -04:00
nmemmert db85573986 feat: Add real-time notification center with WebSocket integration
- Add in-app notification system with database storage
- Implement bell icon component with unread count badge in dashboard header
- Add full Notifications page tab with pagination and filtering (All/Unread/Read)
- Implement real-time WebSocket push notifications to all connected clients
- Add notification API endpoints: GET, PUT /read, DELETE, POST /clear
- Fix critical bug in notificationService where 'status' variable was undefined
- Add Notifications route to App.js routing
- Enhanced UI with notification popup in header and dedicated full-page view
- Auto-reconnect WebSocket with 5s timeout on disconnect
- Support rich notification content with resource details and timestamps
2026-01-14 14:51:29 -05:00
nmemmert 7968c9231e Feature: integrate app icon in UI and email alerts 2025-12-16 14:36:42 -05:00
nmemmert 5ff9fd6c99 Chore: Remove debug console.log statements from server and client code 2025-12-16 13:46:55 -05:00
nmemmert 400953dfd7 Feature: Add public status page at /status showing incidents, maintenance, and system health 2025-12-16 13:44:02 -05:00
nmemmert 9dae22d696 Feature: Add incident editing modal for updating descriptions - PATCH /api/incidents/:id endpoint 2025-12-16 13:40:42 -05:00
nmemmert 03147ef772 Feature: Display incident descriptions in incidents timeline with expandable view 2025-12-16 13:38:29 -05:00
nmemmert 6a291e120d Feature: Independent settings section saving - no password re-entry required
- Refactored SettingsWizard to allow saving each section separately (Email, Webhook, Monitoring)
- Each section now has its own Save button
- Removed global Save button - sections save independently
- No longer need to re-enter email passwords when changing other settings
- Added success/error status messages that appear for 3-5 seconds
- Status messages appear as toast notifications in top-right corner
- Updated CSS with save-status styling and slideIn animation
- handleSaveSection() only POSTs the relevant fields for that section
2025-12-16 13:27:53 -05:00
nmemmert 5330c8932f Feature: Auto-create incidents after 10 failed checks with rich descriptions
- Add description and failed_check_count fields to incidents table
- Update handleIncident() to use configurable threshold (default 10 checks)
- Auto-generate incident description with:
  - Number of consecutive failures
  - Last error message/reason
  - First failure timestamp
- Add API endpoints: GET/POST /api/settings/incident-threshold
- Add UI settings field to configure incident failure threshold
- Server: Get threshold from database settings (persistent across restarts)
- Default threshold: 10 consecutive failed checks per resource
2025-12-16 13:24:20 -05:00
nmemmert 6b00530a89 Fix: Change email input type from email to text to support comma-separated addresses
- Allows users to enter multiple email addresses separated by commas
- Updated both Add Resource and Edit Resource forms
- Improved placeholder text to show example of comma-separated format
2025-12-16 13:08:40 -05:00
nmemmert 923c36e494 Feature: Multi-email alerts and move resource between groups
- notificationService: Parse comma-separated emails from resource.email_to or global config; validate and send to each recipient
- API: Add PATCH /api/resources/:id/group endpoint to move resource between groups with validation and cache invalidation
- UI: Add group selector to edit modal; wire group change to PATCH endpoint; add help text for multi-email format
2025-12-16 13:01:37 -05:00
nmemmert b4860241dd UI: Add Actions dropdown for New Group, Add Resource, Export/Import 2025-12-16 11:12:35 -05:00
nmemmert 16daa5770e Fix trend delta rendering with safe numeric coercion 2025-12-16 08:54:58 -05:00
nmemmert d4e4467c0c Add trends UI, cleanup logs, refresh build 2025-12-16 08:48:48 -05:00
nmemmert 8bd9c6caf7 feat(ui): dashboard maintenance indicator and yellow uptime during maintenance; rebuild 2025-12-15 16:40:57 -05:00
nmemmert 65fca3d3e3 feat(maintenance): add maintenance_mode flag, API support, UI toggle; skip alerts during maintenance; rebuild client 2025-12-15 16:35:52 -05:00
nmemmert 2329362f09 UI: filters/timeline, SLA card, paginated checks/incidents 2025-12-15 16:25:31 -05:00
nmemmert 49cd477991 Fix timezone formatting fallback by normalizing timestamps 2025-12-15 16:14:04 -05:00
nmemmert a93e517d34 Add timezone debugging to client time formatting 2025-12-15 14:55:49 -05:00
nmemmert 91bc41aa5f Fix timezone formatting in client timeUtils 2025-12-15 13:40:51 -05:00
nmemmert 28e3c6a544 Fix timezone display: client uses server timezone from settings, revert SQL offset 2025-12-15 13:36:40 -05:00
nmemmert 0f7d11a197 Client: add ErrorBoundary to avoid blank screen and surface errors; rebuild 2025-12-15 13:04:25 -05:00
nmemmert b7f882f38b SLA: cap by retention in API; SLA UI uses effective days and shows retention notice; rebuild client 2025-12-15 12:59:51 -05:00
nmemmert ecfe725f6f Fix SLA component React hook dependencies 2025-12-15 12:38:41 -05:00
nmemmert e308322e00 Add debug logging for averaged mode 2025-12-15 12:11:54 -05:00
nmemmert 3aafa07e04 Fix: use server-provided status for red/green bars in history graph 2025-12-15 12:07:48 -05:00
nmemmert c5027b339b History graph: show down status in red instead of green 2025-12-15 12:04:15 -05:00
nmemmert 63bdc6c91c Enable Show Averages by default in History view 2025-12-15 12:02:08 -05:00
nmemmert c244ebb26c History: request averaged data from server; rebuild client assets 2025-12-15 11:51:16 -05:00
nmemmert 9446737e5a History: return full time window for accurate averaging (7/14/30 days); rebuild 2025-12-15 11:08:03 -05:00
nmemmert 3b2b00d810 History: scale checks_limit by days and averages; rebuild client 2025-12-15 11:00:44 -05:00
nmemmert a5f741b332 Add comprehensive settings: data retention, incident thresholds, alert retry, scheduling, and dashboard customization 2025-12-15 09:40:21 -05:00
nmemmert 41430d0428 Add timezone configuration to settings UI and backend API 2025-12-15 09:24:06 -05:00
Nate Emmert d775ead7e4 Add timeUtils directory with timezone formatting utilities 2025-12-12 13:39:05 -05:00
nmemmert 63874a7329 Auto-commit built React app 2025-12-11 10:18:50 -05:00
nmemmert e12f8e3f8c Fix browser tab title to show 'SkyWatch' and rebuild app 2025-12-11 10:09:31 -05:00
nmemmert 322f0d2b57 Rebrand app name from 'Resource Monitor' to 'SkyWatch' 2025-12-11 09:59:07 -05:00
nmemmert a4206b9a0f Add pagination UI to History and SLA pages with configurable page size 2025-12-11 09:51:46 -05:00
nmemmert dae36330fb Add full edit modal for all resource settings (name, URL, type, interval, timeout, keywords, headers, quiet hours, cert expiry, SLA, email) 2025-12-11 09:45:34 -05:00
nmemmert 7f6cab827d Add per-resource email targets to resource form 2025-12-11 09:39:07 -05:00
nmemmert cbb08c89be Fix SLA data filtering error 2025-12-11 09:27:15 -05:00
nmemmert 1844bccbd4 Add major features: mobile responsive, alert acknowledgment, quiet hours, HTTP keyword matching, custom headers, certificate expiry warnings, and SLA dashboard 2025-12-11 09:20:52 -05:00
nmemmert 4bb0466f3a Improve History page: better styling, readability, and averaging toggle 2025-12-11 08:43:49 -05:00
nmemmert 29c1bd3b83 Fix ESLint errors: replace ternary with conditional in onClick handlers 2025-12-10 16:11:50 -05:00
nmemmert e54d6dea5e Compact dashboard cards with sparklines and recent check data 2025-12-10 16:04:48 -05:00
nmemmert 9d2dd8e0c1 Restore History graphs and rebuild frontend 2025-12-10 15:43:10 -05:00
nmemmert 3b6d5c2eb5 Simplify History component - remove charts temporarily to debug white page 2025-12-10 15:36:48 -05:00
nmemmert c7ebc5aff3 Fix History component and rebuild client with History page navigation 2025-12-10 15:30:22 -05:00