diff --git a/frontend/src/views/AppShell.jsx b/frontend/src/views/AppShell.jsx index f0cf3c8..ac1ae21 100644 --- a/frontend/src/views/AppShell.jsx +++ b/frontend/src/views/AppShell.jsx @@ -6,7 +6,13 @@ 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' + // Show New scan when signed in (stable header order), and also on results / + // problem for guests or signed-in users who have not connected storage yet — + // App passes authed={authed && storageReady}, and those routes have no guard. + const showNewScan = + (authed || route === 'results' || route === 'problem') && + route !== 'signin' && + route !== 'connect' const NavLink = ({ to, children }) => ( -