From 3f1c573a6710e2c2ef15fdf4c94e746b777b5867 Mon Sep 17 00:00:00 2001 From: Joshua Ryder Date: Fri, 7 Nov 2025 09:40:42 -0500 Subject: [PATCH] feat: Make menu context-aware and hide current page links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement intelligent menu filtering that hides self-referencing links and shows all applicable pages based on user role and authentication state. Changes: - Menu component now uses currentPath to filter out the current page link - Added computed properties to detect which page user is on - Fixed profile, admin, and users pages to dynamically detect admin status from API - Added menu to forgot-password page for consistent navigation - All pages now pass correct authentication state to Menu component This ensures menus always show relevant navigation options while avoiding redundant links to the current page. Admin users now see all admin options (Manage Sermons, Manage Users) regardless of which page they're on, except the current one. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/Menu.vue | 21 ++++++++++++++++++++- pages/admin.vue | 9 +++++++-- pages/forgot-password.vue | 24 +++++++++++++++++++++++- pages/profile.vue | 9 +++++++-- pages/users.vue | 6 ++++-- 5 files changed, 61 insertions(+), 8 deletions(-) diff --git a/components/Menu.vue b/components/Menu.vue index e74daa1..e17f02b 100644 --- a/components/Menu.vue +++ b/components/Menu.vue @@ -41,7 +41,7 @@