secubox-openwrt/package/secubox
CyberMind-FR 5d847319e9 feat: Add comprehensive debug mode and fix refresh race condition
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>
2026-01-06 18:27:34 +01:00
..
.appstore release: bump secubox hub to 0.6.1-0 2025-12-30 14:42:45 +01:00
luci-app-auth-guardian feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-bandwidth-manager feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-cdn-cache feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-client-guardian feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-crowdsec-dashboard fix: CrowdSec RPC process detection 2026-01-06 16:25:59 +01:00
luci-app-ksm-manager feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-magicmirror feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-media-flow feat: CrowdSec 1.7.4 Build Success + Netifyd 5.2.1 Confirmed (v0.9.2) 2026-01-06 14:18:59 +01:00
luci-app-mqtt-bridge feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-netdata-dashboard feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-network-modes feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-network-tweaks feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-secubox-admin feat: Admin Control Center with State Management (v0.9.0) 2026-01-05 10:05:32 +01:00
luci-app-secubox-bonus feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-secubox-netifyd feat: Add comprehensive debug mode and fix refresh race condition 2026-01-06 18:27:34 +01:00
luci-app-system-hub feat: v0.8.3 - Complete theming, responsive & dynamic features 2026-01-05 08:43:26 +01:00
luci-app-traffic-shaper feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-vhost-manager feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-wireguard-dashboard feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
luci-app-zigbee2mqtt feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app feat: Netifyd Integration & Build System Improvements (v0.9.1) 2026-01-05 17:35:11 +01:00
secubox-app-adguardhome feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-crowdsec fix: CrowdSec defaults - disable CAPI & improve setup robustness 2026-01-06 16:49:45 +01:00
secubox-app-domoticz feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-lyrion feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-magicmirror feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-mailinabox fix(secubox-app-mailinabox): make Docker dependencies optional to allow installation 2026-01-04 09:44:33 +01:00
secubox-app-netifyd feat: CrowdSec 1.7.4 Build Success + Netifyd 5.2.1 Confirmed (v0.9.2) 2026-01-06 14:18:59 +01:00
secubox-app-nextcloud feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-nodogsplash feat: Release v0.8.2 - Admin Control Center, Documentation Mirror & Docker Automation 2026-01-04 08:29:31 +01:00
secubox-app-zigbee2mqtt feat: CrowdSec 1.7.4 Build Success + Netifyd 5.2.1 Confirmed (v0.9.2) 2026-01-06 14:18:59 +01:00
secubox-core feat: Netifyd Integration & Build System Improvements (v0.9.1) 2026-01-05 17:35:11 +01:00