from database import redis_client
def generate_ui(results_html: str = "", error_msg: str = "", prev_name: str = "", prev_size: str = "", prev_mode: str = "balanced", prev_gender: str = "unisex") -> str:
error_html = f'
{error_msg}
' if error_msg else ''
status_text = "Real-Time Pricing Intelligence & Value Verification" if redis_client else "Security Protection Active | Core Memory Tracking"
status_color = "var(--accent-green)" if redis_client else "#f59e0b"
return f"""
Tarz Price Scout
Tarz Price Scout
{error_html}
Run On-Demand Scan
💡 Append an asterisk to force an engine refresh (e.g. nike shorts *)
{results_html}
"""