From f78bb4169ae204b8040904bfa99d12a5666fa86e Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 6 Dec 2025 01:33:35 +0400 Subject: [PATCH] fix: correct indentation causing plans not to display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code had improper indentation in the storage rendering section, causing JavaScript errors and preventing plans from showing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../new-baremetal.html | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/Documents/Vibe Coding Projects/dedicatednodes-redesign/dedicatednodes-bare-metal/new-baremetal.html b/Documents/Vibe Coding Projects/dedicatednodes-redesign/dedicatednodes-bare-metal/new-baremetal.html index 2119fe8..5095537 100644 --- a/Documents/Vibe Coding Projects/dedicatednodes-redesign/dedicatednodes-bare-metal/new-baremetal.html +++ b/Documents/Vibe Coding Projects/dedicatednodes-redesign/dedicatednodes-bare-metal/new-baremetal.html @@ -4645,52 +4645,52 @@ var wpcf7 = { // Render each group groupOrder.forEach((sig, groupIndex) => { const groupOpts = storageGroups[sig]; - const firstOpt = groupOpts[0]; - - const label = document.createElement('div'); - label.className = 'section-label'; - label.style.marginTop = '1.5rem'; - - // Detect Title based on content - const firstLabel = firstOpt.label.toLowerCase(); - // Check values for keywords - const hasGen5 = firstOpt.values.some(v => v.text.toLowerCase().includes('gen5')); - const hasGen4 = firstOpt.values.some(v => v.text.toLowerCase().includes('gen4')); - const hasEnt = firstOpt.values.some(v => v.text.toLowerCase().includes('enterprise') || v.text.toLowerCase().includes('ent')); - - let title = '💿 STORAGE CONFIGURATION'; - if (hasGen5) title = '🚀 GEN5 NVME STORAGE (ENTERPRISE)'; - else if (hasGen4) title = '💿 GEN4 NVME STORAGE (CONSUMER)'; - else if (hasEnt) title = '💾 ENTERPRISE STORAGE'; - - // Append Group Index if multiple groups exist to differentiate - if (groupOrder.length > 1) { - title += ` (Group ${groupIndex + 1})`; - } - - label.textContent = title; - container.appendChild(label); - - // Visualizer for THIS group - const maxSlots = groupOpts.length; - const visualContainer = document.createElement('div'); - visualContainer.className = 'storage-slots-container'; - const uniqueSuffix = (isInstant ? '-instant' : '') + '-g' + groupIndex; - - visualContainer.innerHTML = ` -
- Available Slots: 0/${maxSlots} - Select drives -
-
- ${Array(maxSlots).fill('
').join('')} -
- `; - container.appendChild(visualContainer); - - // Always use pooled grid for these groups as they are by definition identical - container.appendChild(createPooledStorageGrid(groupOpts, isInstant, preselected, groupIndex)); - }); + const firstOpt = groupOpts[0]; + + const label = document.createElement('div'); + label.className = 'section-label'; + label.style.marginTop = '1.5rem'; + + // Detect Title based on content + const firstLabel = firstOpt.label.toLowerCase(); + // Check values for keywords + const hasGen5 = firstOpt.values.some(v => v.text.toLowerCase().includes('gen5')); + const hasGen4 = firstOpt.values.some(v => v.text.toLowerCase().includes('gen4')); + const hasEnt = firstOpt.values.some(v => v.text.toLowerCase().includes('enterprise') || v.text.toLowerCase().includes('ent')); + + let title = '💿 STORAGE CONFIGURATION'; + if (hasGen5) title = '🚀 GEN5 NVME STORAGE (ENTERPRISE)'; + else if (hasGen4) title = '💿 GEN4 NVME STORAGE (CONSUMER)'; + else if (hasEnt) title = '💾 ENTERPRISE STORAGE'; + + // Append Group Index if multiple groups exist to differentiate + if (groupOrder.length > 1) { + title += ` (Group ${groupIndex + 1})`; + } + + label.textContent = title; + container.appendChild(label); + + // Visualizer for THIS group + const maxSlots = groupOpts.length; + const visualContainer = document.createElement('div'); + visualContainer.className = 'storage-slots-container'; + const uniqueSuffix = (isInstant ? '-instant' : '') + '-g' + groupIndex; + + visualContainer.innerHTML = ` +
+ Available Slots: 0/${maxSlots} + Select drives +
+
+ ${Array(maxSlots).fill('
').join('')} +
+ `; + container.appendChild(visualContainer); + + // Always use pooled grid for these groups as they are by definition identical + container.appendChild(createPooledStorageGrid(groupOpts, isInstant, preselected, groupIndex)); + }); } // 3. Network & Other