From 8dbdf53ca77c2a8edc701c3c27c86e76817c399c Mon Sep 17 00:00:00 2001 From: TheFlow Date: Mon, 20 Oct 2025 08:16:02 +1300 Subject: [PATCH] debug(pressure-chart): add render() logging to diagnose invisible HTML MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SUMMARY: Added logging at start of render() and after innerHTML to see if HTML is being generated but not displayed. CHANGES: - Log when render() is called with container reference - Log innerHTML length after setting - Log first 100 chars of innerHTML - Bump version to v20251019174000 ISSUE: User cannot see 'Simulate Pressure Increase' button despite initialization succeeding. Need to verify if HTML is being generated at all. 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude --- public/architecture.html | 2 +- public/js/components/pressure-chart.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/architecture.html b/public/architecture.html index 8fe7a01c..8a58360f 100644 --- a/public/architecture.html +++ b/public/architecture.html @@ -549,7 +549,7 @@ - + diff --git a/public/js/components/pressure-chart.js b/public/js/components/pressure-chart.js index a36ff144..cdf8cde1 100644 --- a/public/js/components/pressure-chart.js +++ b/public/js/components/pressure-chart.js @@ -35,6 +35,7 @@ class PressureChart { } render() { + console.log('[PressureChart] render() called, container:', this.container); this.container.innerHTML = `
@@ -102,6 +103,10 @@ class PressureChart { resetBtn: document.getElementById('pressure-reset-btn') }; + // Verify innerHTML was set + console.log('[PressureChart] innerHTML length:', this.container.innerHTML.length); + console.log('[PressureChart] First 100 chars:', this.container.innerHTML.substring(0, 100)); + // Verify elements were found console.log('[PressureChart] Elements found:', { gaugeFill: !!this.elements.gaugeFill,