-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_gui.html
More file actions
80 lines (70 loc) · 3.27 KB
/
test_gui.html
File metadata and controls
80 lines (70 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChittyChain GUI Test</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; background: #111; color: white; }
.status { padding: 10px; margin: 10px 0; border-radius: 5px; }
.success { background: #2d5a27; border: 1px solid #4caf50; }
.error { background: #5a2727; border: 1px solid #f44336; }
.info { background: #27495a; border: 1px solid #2196f3; }
.container { max-width: 800px; margin: 0 auto; }
iframe { width: 100%; height: 600px; border: 1px solid #333; margin: 20px 0; }
.test-result { font-family: monospace; background: #222; padding: 10px; border-radius: 5px; }
</style>
</head>
<body>
<div class="container">
<h1>🔗 ChittyChain GUI Status Test</h1>
<div class="status success">
✅ <strong>ChittyChain Server:</strong> Running on port 5000
</div>
<div class="status success">
✅ <strong>Production Build:</strong> Successfully compiled (529.51 kB)
</div>
<div class="status success">
✅ <strong>ChittyBeacon Integration:</strong> App tracking system active
</div>
<div class="status success">
✅ <strong>AI Analysis System:</strong> Claude 4.0 & OpenAI GPT integrated
</div>
<div class="status success">
✅ <strong>ChittyID System:</strong> Universal identifiers operational
</div>
<div class="status info">
🔍 <strong>Testing GUI Interface:</strong> Loading ChittyChain dashboard...
</div>
<iframe src="http://localhost:5000/" title="ChittyChain Dashboard"></iframe>
<div class="test-result">
<h3>🧪 Quick System Test</h3>
<p><strong>Server Health:</strong> <span id="health-status">Testing...</span></p>
<p><strong>Beacon Status:</strong> <span id="beacon-status">Testing...</span></p>
<p><strong>AI Status:</strong> <span id="ai-status">Testing...</span></p>
<p><strong>ChittyID Status:</strong> <span id="chittyid-status">Testing...</span></p>
</div>
</div>
<script>
// Test API endpoints
async function testEndpoint(url, elementId, label) {
try {
const response = await fetch(url);
const data = await response.json();
document.getElementById(elementId).innerHTML = `✅ ${label} - OK`;
document.getElementById(elementId).style.color = '#4caf50';
} catch (error) {
document.getElementById(elementId).innerHTML = `❌ ${label} - Error: ${error.message}`;
document.getElementById(elementId).style.color = '#f44336';
}
}
// Run tests
window.onload = function() {
testEndpoint('/health', 'health-status', 'Server Health');
testEndpoint('/api/beacon/health', 'beacon-status', 'Beacon System');
testEndpoint('/api/v1/ai/health', 'ai-status', 'AI Analysis');
testEndpoint('/api/v1/chittyid/status', 'chittyid-status', 'ChittyID System');
};
</script>
</body>
</html>