-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-spa.html
More file actions
133 lines (125 loc) Β· 5.06 KB
/
test-spa.html
File metadata and controls
133 lines (125 loc) Β· 5.06 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPA Test - Expedition 33 Planner</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: #1a1a1a;
color: #ffffff;
}
.test-section {
margin: 20px 0;
padding: 20px;
border: 1px solid #444;
border-radius: 8px;
background: #2a2a2a;
}
.test-link {
display: inline-block;
margin: 5px;
padding: 10px 15px;
background: #6366F1;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background 0.2s;
}
.test-link:hover {
background: #5855eb;
}
.status {
padding: 10px;
border-radius: 5px;
margin: 10px 0;
}
.success { background: #10B981; }
.error { background: #EF4444; }
.warning { background: #F59E0B; }
iframe {
width: 100%;
height: 600px;
border: 1px solid #444;
border-radius: 8px;
}
</style>
</head>
<body>
<h1>π§ͺ SPA Functionality Test</h1>
<div class="test-section">
<h2>Navigation Test</h2>
<p>Test the new sidebar navigation and routing system:</p>
<a href="index.html#/characters" class="test-link" target="app-frame">Characters</a>
<a href="index.html#/pictos" class="test-link" target="app-frame">Pictos & Lumina</a>
<a href="index.html#/party" class="test-link" target="app-frame">Party Composer</a>
<a href="index.html#/collectibles" class="test-link" target="app-frame">Collectibles</a>
<a href="index.html#/calculator" class="test-link" target="app-frame">Damage Calculator</a>
<a href="index.html#/bosses" class="test-link" target="app-frame">Boss Tracker</a>
<a href="index.html#/comparison" class="test-link" target="app-frame">Build Comparison</a>
<a href="index.html#/guides" class="test-link" target="app-frame">Build Guides</a>
<a href="index.html#/optimizer" class="test-link" target="app-frame">Team Optimizer</a>
<a href="index.html#/achievements" class="test-link" target="app-frame">Achievements</a>
<a href="index.html#/builds" class="test-link" target="app-frame">Saved Builds</a>
</div>
<div class="test-section">
<h2>App Preview</h2>
<iframe name="app-frame" src="index.html"></iframe>
</div>
<div class="test-section">
<h2>β
Expected Improvements</h2>
<div class="status success">
β
Sidebar navigation instead of horizontal tabs<br>
β
Organized categories (Build Tools, Team Management, etc.)<br>
β
URL routing with browser history support<br>
β
Mobile-responsive with hamburger menu<br>
β
All existing features preserved and functional
</div>
</div>
<div class="test-section">
<h2>π§ What to Test</h2>
<ol>
<li><strong>Navigation:</strong> Click the links above to test routing</li>
<li><strong>Sidebar:</strong> Check if the sidebar appears with grouped categories</li>
<li><strong>Mobile:</strong> Resize browser to see hamburger menu</li>
<li><strong>Features:</strong> Try character selection, pictos filtering, etc.</li>
<li><strong>Browser Back/Forward:</strong> Use browser navigation buttons</li>
<li><strong>Direct Links:</strong> Bookmark a specific section and reload</li>
</ol>
</div>
<div class="test-section">
<h2>π Troubleshooting</h2>
<p>If something doesn't work:</p>
<ol>
<li>Open browser DevTools (F12)</li>
<li>Check Console for JavaScript errors</li>
<li>Verify all CSS and JS files are loading</li>
<li>Ensure the sidebar navigation appears</li>
</ol>
</div>
<script>
// Simple test to check if main app is loading
setTimeout(() => {
const frame = document.querySelector('iframe[name="app-frame"]');
if (frame && frame.contentDocument) {
const appElement = frame.contentDocument.getElementById('app');
if (appElement) {
console.log('β
Main app element found');
const sidebar = frame.contentDocument.querySelector('.app-sidebar');
if (sidebar) {
console.log('β
Sidebar navigation found');
} else {
console.warn('β οΈ Sidebar navigation not found');
}
} else {
console.error('β Main app element not found');
}
}
}, 2000);
</script>
</body>
</html>