From e95272c92f9fbef687339ac09620e3eb8d17ca61 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Sun, 22 Mar 2026 19:18:58 -0700 Subject: [PATCH] fix(app): show ui switcher banner in demo mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit render_banner() was incorrectly guarded by 'if not IS_DEMO' — the spec says the banner is open to all demo visitors. render_banner() already handles its own eligibility check internally (_DEMO_MODE or can_use). --- app/app.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/app.py b/app/app.py index 069d465..7bef410 100644 --- a/app/app.py +++ b/app/app.py @@ -203,13 +203,12 @@ if IS_DEMO: from app.components.demo_toolbar import render_demo_toolbar render_demo_toolbar() -# ── UI switcher banner (non-demo, paid tier) ──────────────────────────────── -if not IS_DEMO: - try: - from app.components.ui_switcher import render_banner - render_banner() - except Exception: - pass # never crash the app over the banner +# ── UI switcher banner (paid tier; or all visitors in demo mode) ───────────── +try: + from app.components.ui_switcher import render_banner + render_banner() +except Exception: + pass # never crash the app over the banner pg.run()