Description
Clicking the avatar in the TopBar does nothing. The TopBar fires onNavigate('profile-me') on avatar click, but AppShell has no destination mapped for that route id — only my-projects and matches are handled.
Root cause (two files):
frontend/components/shared/TopBar.tsx — avatar onClick calls onNavigate?.('profile-me')
frontend/app/profile/_AppShell.tsx — handleNavigate destinations map is missing 'profile-me'
Fix: Add userId as a prop to AppShell, then add 'profile-me': /profile/${userId}`` to the destinations map in `handleNavigate`. Both `app/profile/layout.tsx` and `app/projects/layout.tsx` already fetch `currentUser` and can pass `currentUser.id` down.
Tasks
Description
Clicking the avatar in the TopBar does nothing. The TopBar fires
onNavigate('profile-me')on avatar click, butAppShellhas no destination mapped for that route id — onlymy-projectsandmatchesare handled.Root cause (two files):
frontend/components/shared/TopBar.tsx— avataronClickcallsonNavigate?.('profile-me')frontend/app/profile/_AppShell.tsx—handleNavigatedestinations map is missing'profile-me'Fix: Add
userIdas a prop toAppShell, then add'profile-me':/profile/${userId}`` to thedestinationsmap in `handleNavigate`. Both `app/profile/layout.tsx` and `app/projects/layout.tsx` already fetch `currentUser` and can pass `currentUser.id` down.Tasks
userId: stringprop toAppShellinfrontend/app/profile/_AppShell.tsx'profile-me': \/profile/${userId}`to thedestinationsmap insidehandleNavigate`currentUser.idto<AppShell>infrontend/app/profile/layout.tsxcurrentUser.idto<AppShell>infrontend/app/projects/layout.tsx