Pulse/frontend-modern/src/utils
rcourtman 886368ec44 feat: add sparklines view mode for metrics visualization
Add comprehensive sparkline chart support as an alternative to progress bars
for CPU, Memory, and Disk metrics across all tables.

Features:
- Toggle between bars/trends view modes (persisted to localStorage)
- 30-second sampling with 2-hour retention window using ring buffer
- Canvas-based rendering with shared requestAnimationFrame for efficiency
- Hover tooltips showing exact values and timestamps
- Threshold reference lines (warning/critical) for context
- localStorage persistence survives page refreshes (12-hour max age)
- Dynamic width adaptation to column size
- Namespaced resource IDs prevent collisions
- Lifecycle cleanup prevents memory leaks

Performance optimizations:
- Decoupled sampling from WebSocket handler (6x reduction in recording)
- O(1) ring buffer insertions (no array cloning)
- Batched canvas rendering (single rAF for all sparklines)
- Debounced localStorage writes
- Automatic pruning of removed resources

UI improvements:
- Consistent radio toggle styling matching other filters
- Fixed column widths prevent layout shift during toggle
- Fixed row heights prevent vertical size changes
- Sparklines fill available column width proportionally
2025-11-09 22:31:35 +00:00
..
alerts.ts Update Pulse install flow and related components 2025-10-21 19:58:53 +00:00
alertsActivation.ts Update Pulse install flow and related components 2025-10-21 19:58:53 +00:00
apiClient.ts Redirect to login when authentication expires 2025-11-05 19:36:01 +00:00
canvasRenderQueue.ts feat: add sparklines view mode for metrics visualization 2025-11-09 22:31:35 +00:00
clipboard.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
format.ts Simplify metric bar labels 2025-10-29 10:37:18 +00:00
localStorage.ts feat: add sparklines view mode for metrics visualization 2025-11-09 22:31:35 +00:00
logger.ts Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
metricsKeys.ts feat: add sparklines view mode for metrics visualization 2025-11-09 22:31:35 +00:00
nodes.ts Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
searchHistory.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
searchQuery.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
status.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
tagColors.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
temperature.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
toast.ts Improve PMG connection testing to validate metrics endpoints 2025-11-05 18:40:39 +00:00
url.ts Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00