From 0a8ff7241398cdf5f5e9c3493fd7ad34fba77ffd Mon Sep 17 00:00:00 2001 From: Samuel Olabode Date: Fri, 7 Aug 2026 17:25:02 -0600 Subject: [PATCH 1/3] refactor(AppShell): update navigation logic to conditionally show "New scan" button for authenticated users and improve accessibility with aria-labels --- frontend/src/views/AppShell.jsx | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/frontend/src/views/AppShell.jsx b/frontend/src/views/AppShell.jsx index f0cf3c8..e6389c6 100644 --- a/frontend/src/views/AppShell.jsx +++ b/frontend/src/views/AppShell.jsx @@ -6,7 +6,10 @@ const BMC = 'https://ko-fi.com/devolabode' /** Top app bar with logo + nav, global footer. Donate lives in the footer. */ export default function AppShell({ children, route, onNav, authed, user, theme, onToggleTheme }) { - const inApp = route === 'results' || route === 'problem' + // Primary “New scan” in the header whenever signed in, except on landing + // (already the scan entry) and auth/connect setup screens. + const showNewScan = + authed && route !== 'landing' && route !== 'signin' && route !== 'connect' const NavLink = ({ to, children }) => ( -