191 lines
7.8 KiB
HTML
191 lines
7.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Column Control Test</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
.container {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
.success { color: #22c55e; font-weight: bold; }
|
|
.error { color: #ef4444; font-weight: bold; }
|
|
.info { color: #3b82f6; font-weight: bold; }
|
|
.step {
|
|
margin: 20px 0;
|
|
padding: 15px;
|
|
border-left: 4px solid #3b82f6;
|
|
background-color: #f8fafc;
|
|
}
|
|
.highlight {
|
|
background-color: #fef3c7;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
.feature-list {
|
|
background-color: #f0f9ff;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin: 20px 0;
|
|
}
|
|
.feature-list ul {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
}
|
|
.feature-list li {
|
|
margin: 8px 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>🎛️ Column Control & Badge Width Test</h1>
|
|
|
|
<div class="step">
|
|
<h2>✨ New Features Implemented</h2>
|
|
<div class="feature-list">
|
|
<h3>1. Consistent Task Status Badge Width</h3>
|
|
<ul>
|
|
<li>All task status badges now have a fixed width of <span class="highlight">120px</span></li>
|
|
<li>Provides uniform column alignment and better visual consistency</li>
|
|
<li>Prevents layout shifts when status text changes</li>
|
|
</ul>
|
|
|
|
<h3>2. Column Visibility Control</h3>
|
|
<ul>
|
|
<li>Replaced simple checkbox with comprehensive <span class="highlight">Columns dropdown</span></li>
|
|
<li>Individual control over each column (Name, Category, Status, etc.)</li>
|
|
<li>Separate controls for task status columns (Modeling, Surfacing, Rigging)</li>
|
|
<li>Settings persist in session storage</li>
|
|
</ul>
|
|
|
|
<h3>3. Removed Task Status Checkbox</h3>
|
|
<ul>
|
|
<li>Eliminated the simple "Show Task Status" toggle</li>
|
|
<li>Replaced with granular column control</li>
|
|
<li>Users can now show/hide individual task columns</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h2>🧪 Testing Instructions</h2>
|
|
<ol>
|
|
<li><strong>Open the Application:</strong>
|
|
<ul>
|
|
<li>Navigate to <span class="highlight">http://localhost:5174</span></li>
|
|
<li>Login with <span class="highlight">admin@vfx.com / admin123</span></li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><strong>Go to Assets:</strong>
|
|
<ul>
|
|
<li>Select a project from the dashboard</li>
|
|
<li>Click on the <span class="highlight">Assets</span> tab</li>
|
|
<li>Ensure you're in <span class="highlight">List View</span> (table view)</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><strong>Test Column Control:</strong>
|
|
<ul>
|
|
<li>Look for the <span class="highlight">"Columns"</span> dropdown button</li>
|
|
<li>Click it to see all available column options</li>
|
|
<li>Toggle different columns on/off</li>
|
|
<li>Verify the table updates immediately</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><strong>Test Badge Consistency:</strong>
|
|
<ul>
|
|
<li>Observe the task status badges (Modeling, Surfacing, Rigging)</li>
|
|
<li>All badges should have the same width</li>
|
|
<li>Try changing status values - width should remain consistent</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li><strong>Test Persistence:</strong>
|
|
<ul>
|
|
<li>Change column visibility settings</li>
|
|
<li>Refresh the page</li>
|
|
<li>Settings should be remembered</li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h2>✅ Expected Behavior</h2>
|
|
<div class="feature-list">
|
|
<h3>Column Control Dropdown Should Show:</h3>
|
|
<ul>
|
|
<li>✅ <strong>Basic Columns:</strong> Name, Category, Status, Task Count</li>
|
|
<li>✅ <strong>Task Status Columns:</strong> Modeling, Surfacing, Rigging</li>
|
|
<li>✅ <strong>Other Columns:</strong> Description, Updated</li>
|
|
<li>✅ <strong>Checkboxes:</strong> Each column can be toggled independently</li>
|
|
</ul>
|
|
|
|
<h3>Task Status Badges Should:</h3>
|
|
<ul>
|
|
<li>✅ <strong>Consistent Width:</strong> All badges are exactly 120px wide</li>
|
|
<li>✅ <strong>Proper Alignment:</strong> Columns line up perfectly</li>
|
|
<li>✅ <strong>Clickable:</strong> Status can still be changed by clicking</li>
|
|
<li>✅ <strong>Color Coded:</strong> Different colors for different statuses</li>
|
|
</ul>
|
|
|
|
<h3>Smart Column Display:</h3>
|
|
<ul>
|
|
<li>✅ <strong>Rigging Column:</strong> Only shows when there are Characters/Vehicles</li>
|
|
<li>✅ <strong>Rigging Tasks:</strong> Shows "—" for Props/Sets, actual status for Characters/Vehicles</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h2>🎯 Key Improvements</h2>
|
|
<ul>
|
|
<li><strong>Better UX:</strong> More granular control over what users see</li>
|
|
<li><strong>Consistent Layout:</strong> Fixed-width badges prevent layout shifts</li>
|
|
<li><strong>Flexible Display:</strong> Users can customize their view</li>
|
|
<li><strong>Persistent Preferences:</strong> Settings remembered across sessions</li>
|
|
<li><strong>Professional Appearance:</strong> Uniform column widths and alignment</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="status" class="step">
|
|
<h2>🔍 System Status</h2>
|
|
<p id="status-text">Checking system status...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
async function checkStatus() {
|
|
const statusText = document.getElementById('status-text');
|
|
|
|
try {
|
|
// Test backend connection
|
|
const response = await fetch('http://localhost:8000/health');
|
|
if (response.ok) {
|
|
statusText.innerHTML = '<span class="success">✅ Backend is running - Ready to test!</span>';
|
|
} else {
|
|
statusText.innerHTML = '<span class="error">❌ Backend error: ' + response.status + '</span>';
|
|
}
|
|
} catch (error) {
|
|
statusText.innerHTML = '<span class="error">❌ Backend not accessible. Start with: cd backend && python main.py</span>';
|
|
}
|
|
}
|
|
|
|
checkStatus();
|
|
</script>
|
|
</body>
|
|
</html> |