#!/usr/bin/env python3
"""
Simple test script to verify UI functionality
"""

import sys
import os

# Add the current directory to the path
sys.path.insert(0, os.path.dirname(__file__))

from PyQt5.QtWidgets import QApplication
from UI import DashboardLogin

def main():
    app = QApplication(sys.argv)
    
    # Create and show the dashboard
    dashboard = DashboardLogin()
    dashboard.show()
    
    print("✅ UI Application Started Successfully!")
    print("📋 Available buttons on main screen:")
    print("   1. 🚀 Create New Pipeline")  
    print("   2. 📁 Open Existing Pipeline")
    print("   3. ⚙️ Configure Stages & Deploy")
    print()
    print("🎯 Click the third button 'Configure Stages & Deploy' to test the new workflow!")
    print("   This will open the Stage Configuration dialog with:")
    print("   • Dongle allocation controls")
    print("   • Performance estimation")
    print("   • Save & Deploy functionality")
    print()
    print("Press Ctrl+C or close the window to exit")
    
    # Run the application
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()