From a7e2cfc089ff4ebfc074aa13fddee96044509b2d Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Tue, 14 Oct 2025 19:31:22 -0700 Subject: [PATCH] Fix duplicate demo count in dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove legacy JavaScript loops that were adding UI demos twice (60 duplicates). The generate_index.py script already populates all demos from filesystem, making the manual loops unnecessary. This fixes the incorrect count of 202 demos, now correctly showing 142 demos. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- index.html | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/index.html b/index.html index bd03a4d..dd16eb5 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + @@ -2169,29 +2170,6 @@ ] }; - // Generate UI Single File demos (src/ and src_infinite/) - for (let i = 1; i <= 35; i++) { - demos.uiSingle.push({ - number: i, - title: `UI Hybrid ${i}`, - description: 'Themed hybrid UI component combining multiple interface elements', - path: `src/ui_hybrid_${i}.html`, - type: 'Single File', - techniques: ['Themed Design', 'Hybrid Components'] - }); - } - - for (let i = 1; i <= 25; i++) { - demos.uiSingle.push({ - number: i + 35, - title: `UI Hybrid ${i} (Infinite)`, - description: 'Infinite mode generated themed component', - path: `src_infinite/ui_hybrid_${i}.html`, - type: 'Single File (Infinite)', - techniques: ['Infinite Generation', 'Progressive Complexity'] - }); - } - // Render demos function renderDemoCard(demo, category) { const screenshotPath = `screenshots/${demo.path.replace(/\//g, '_').replace('.html', '.png')}`;