diff --git a/dashboards/tracker-web/src/app/api/tracker/[...path]/route.ts b/dashboards/tracker-web/src/app/api/tracker/[...path]/route.ts index 7c4a035e..a9cf0d9d 100644 --- a/dashboards/tracker-web/src/app/api/tracker/[...path]/route.ts +++ b/dashboards/tracker-web/src/app/api/tracker/[...path]/route.ts @@ -28,6 +28,10 @@ async function proxy(req: NextRequest, { params }: { params: Promise<{ path: str headers['Authorization'] = `Bearer ${tokenHeader}`; } + // Forward product switcher header so platform-service filters by product + const productId = req.headers.get('x-product-id'); + if (productId) headers['x-product-id'] = productId; + const fetchOptions: RequestInit = { method: req.method, headers, diff --git a/dashboards/tracker-web/src/app/dashboard/layout.tsx b/dashboards/tracker-web/src/app/dashboard/layout.tsx index 7eae1955..ad60edde 100644 --- a/dashboards/tracker-web/src/app/dashboard/layout.tsx +++ b/dashboards/tracker-web/src/app/dashboard/layout.tsx @@ -4,6 +4,7 @@ import { useEffect } from 'react'; import { useRouter } from 'next/navigation'; import Link from 'next/link'; import { useAuth } from '@/lib/auth-context'; +import { ProductSwitcher } from '@/components/product-switcher'; const NAV_ITEMS = [ { href: '/dashboard', label: 'Overview' }, @@ -51,6 +52,7 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
+ {user.email}