""" LifeFlow AI - Progress Stepper Component ✅ 顯示用戶當前所在步驟 ✅ 視覺化流程進度 """ import gradio as gr def create_progress_stepper(current_step: int = 1): """ 創建流程進度條 Args: current_step: 當前步驟 (1-4) 1: Analyze 2: Confirm 3: Optimize 4: Review Returns: HTML 組件 """ steps = [ {'num': 1, 'label': 'Analyze', 'icon': '📋', 'desc': 'Extract tasks'}, {'num': 2, 'label': 'Confirm', 'icon': '✅', 'desc': 'Review & modify'}, {'num': 3, 'label': 'Optimize', 'icon': '⚡', 'desc': 'Route planning'}, {'num': 4, 'label': 'Review', 'icon': '🎉', 'desc': 'Check results'} ] html = '