From 92e3d755d0c62660ad6438444c0b3f8702bef82d Mon Sep 17 00:00:00 2001 From: curo1305 Date: Fri, 22 May 2026 20:09:16 +0200 Subject: [PATCH] feat(02-05): AppSidebar admin link and user identity footer - Add conditional Admin nav link (v-if authStore.user?.role === 'admin') with shield SVG icon - Add user identity footer: initials avatar (bg-indigo-100), email (truncate flex-1), sign-out icon button (aria-label="Sign out") - Import useAuthStore alongside existing topicsStore; add useRouter for post-logout redirect - All existing nav links, topicsStore reference, and scoped styles preserved unchanged --- frontend/src/components/layout/AppSidebar.vue | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/layout/AppSidebar.vue b/frontend/src/components/layout/AppSidebar.vue index dd71606..167cf64 100644 --- a/frontend/src/components/layout/AppSidebar.vue +++ b/frontend/src/components/layout/AppSidebar.vue @@ -54,8 +54,22 @@ - +
+ + + + + + Admin + + Settings + + +
+
+ {{ authStore.user.email ? authStore.user.email[0].toUpperCase() : '?' }} +
+ {{ authStore.user.email }} + +