Dashboard Refresh Problem Fixed: - Race condition where poll.add() was called before containers existed - Containers were undefined during first poll callback - DOM updates failed silently with no error logging - Fixed by creating containers BEFORE setting up polling Debug Features Added: - Toggle debug mode with button in header - Visual debug panel showing last 20 log entries - Browser console logging with timestamps - Live update indicator (count + time since last update) - Error tracking and counting - Detailed logging of all RPC calls and responses Debug Panel Features: - Timestamps for all events - JSON data preview for API responses - Auto-scroll with newest entries at top - Max 20 entries to prevent memory issues - Hidden by default, shown when debug enabled Update Indicator: - Shows "Updates: N | Last: Xs ago" in header - Updates every second - Visual feedback that polling is working - Easy to spot stalled/broken polling Error Handling: - Try/catch around all poll callbacks - Errors logged to debug panel and console - Error counting for diagnostics - Polling continues even after errors Code Improvements: - Proper container creation order - Better error handling in load() and polling - Debug logging throughout lifecycle - Performance metrics tracking Documentation: - Complete analysis in REFRESH-DEBUG.md - Troubleshooting guide - Debug mode usage instructions - Performance considerations 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| secubox | ||