{# Coffee House App Switcher — Dropdown listing user's accessible apps. Reads from user.apps (JWT payload). Expected context: - user: dict with .apps dict (keys are app names, values have role info) Every entry is shown only to a user whose JWT carries that app. The help center used to be listed for everyone; it was retired on 2026-10-01, which left a user of only Stoply, Cupping or CHGEN with an empty menu, because those three had never been added here. They are listed now, with the same wording as the Auth landing page. #} {% set app_meta = { 'auth': {'label': 'Auth', 'desc': 'Login & Users', 'url': 'https://auth.coffeehouse.tools'}, 'chqr': {'label': 'CHQR', 'desc': 'QR Generator', 'url': 'https://chqr.coffeehouse.tools'}, 'beany': {'label': 'Beany', 'desc': 'Knowledge Base', 'url': 'https://kms.coffeehouse.tools'}, 'digi': {'label': 'Digi', 'desc': 'HR & Operations', 'url': 'https://digi.coffeehouse.tools'}, 'grind': {'label': 'Grind', 'desc': 'Sales Reporting', 'url': 'https://grind.coffeehouse.tools'}, 'stoply': {'label': 'Stoply', 'desc': 'Stop-List Management', 'url': 'https://stoply.coffeehouse.tools'}, 'cupping': {'label': 'Cupping', 'desc': 'QA: Exams & Audits', 'url': 'https://cupping.coffeehouse.tools'}, 'chgen': {'label': 'CHGEN', 'desc': 'Track Number Generator', 'url': 'https://chgen.coffeehouse.tools'}, } %} {% set user_apps = user.apps or {} %}