From 46fb2f59767ac8bc3f4565127463bc28888d2ae9 Mon Sep 17 00:00:00 2001 From: Aherobo Ovie Victor Date: Fri, 11 Jul 2025 22:32:49 +0100 Subject: [PATCH] Remove Test No Memory Scenario button --- static/script.js | 47 -------------------------------------------- templates/index.html | 4 +--- 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/static/script.js b/static/script.js index 030a50e..18d2d1b 100644 --- a/static/script.js +++ b/static/script.js @@ -483,51 +483,4 @@ function hideLoading() { document.getElementById('loadingOverlay').style.display = 'none'; } -async function testNoMemoryScenario() { - showLoading('Testing no memory scenario...'); - const testResults = []; - // Test 1: API Health - try { - const response = await fetch(`${API_BASE_URL}/health`); - const result = await response.json(); - testResults.push({ - name: 'API Health Check', - success: response.ok && result.status === 'healthy', - message: response.ok ? 'API is healthy' : 'API health check failed' - }); - } catch (error) { - testResults.push({ - name: 'API Health Check', - success: false, - message: `Error: ${error.message}` - }); - } - - // Test 2: Simulate No Memory Detection (for demo purposes) - testResults.push({ - name: 'Image with Memory Modules', - success: true, - message: '❌ No memory modules' - }); - - // Test 3: API Information - try { - const response = await fetch(`${API_BASE_URL}/api`); - const result = await response.json(); - testResults.push({ - name: 'API Information', - success: response.ok && result.message, - message: response.ok ? 'API info loaded successfully' : 'Failed to load API info' - }); - } catch (error) { - testResults.push({ - name: 'API Information', - success: false, - message: `Error: ${error.message}` - }); - } - - hideLoading(); - displayTestResults(testResults); -} diff --git a/templates/index.html b/templates/index.html index 4d8857e..b3ccb0d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,9 +34,7 @@ - +