From 3f4be27bd974a0854d0955e00aa6f8891ab7fa10 Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Sun, 24 May 2026 16:45:11 +0200 Subject: [PATCH] feat(operator): avatar dropdown context menu in topbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New UserMenu component owns its own trigger + dropdown + dismissal so the topbar stays simple. Menu contents: identity row (name + email), theme toggle (reuses useTweaks so the floating panel and menu stay in sync), link to /settings, Sign out (calls useOidcAuth().logout). Dismissal: outside click via a transparent Teleport scrim, Escape, and route change (watch on route.path → close). Drops the now-unused useOidcAuth import from OpTopbar. --- apps/operator/components/OpTopbar.vue | 3 +- apps/operator/components/UserMenu.vue | 163 ++++++++++++++++++++++++++ 2 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 apps/operator/components/UserMenu.vue diff --git a/apps/operator/components/OpTopbar.vue b/apps/operator/components/OpTopbar.vue index 06d6082..dffc900 100644 --- a/apps/operator/components/OpTopbar.vue +++ b/apps/operator/components/OpTopbar.vue @@ -1,7 +1,6 @@ + + + +