Move Profile to own page, add Profile menu item in TopBar user menu

This commit is contained in:
Agent Zero
2026-07-21 22:08:32 +02:00
parent a69035eebb
commit 157ff7dfc9
3 changed files with 8 additions and 2 deletions
@@ -159,6 +159,13 @@ export function TopBar() {
<p className="text-sm font-medium text-secondary-900 truncate">{fullName}</p>
<p className="text-xs text-secondary-500 truncate">{user?.email}</p>
</div>
<button
onClick={() => { setUserMenuOpen(false); navigate('/profile'); }}
className="w-full text-left px-3 py-2 text-sm hover:bg-secondary-50 min-h-touch focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"
role="menuitem"
>
{t('topbar.profile')}
</button>
<button
onClick={() => { setUserMenuOpen(false); navigate('/settings'); }}
className="w-full text-left px-3 py-2 text-sm hover:bg-secondary-50 min-h-touch focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500"