From 1fbab15ce288cd0e7487eb34cdbae5e7c75d2373 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 23 Jun 2026 13:24:11 +0200 Subject: [PATCH 1/2] fix(sidebar): highlight conversations tab on nested conversation/transcript pages --- .../features/sidebar/views/project/ProjectHomeView.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/echo/frontend/src/features/sidebar/views/project/ProjectHomeView.tsx b/echo/frontend/src/features/sidebar/views/project/ProjectHomeView.tsx index e66af76c..2c258cb1 100644 --- a/echo/frontend/src/features/sidebar/views/project/ProjectHomeView.tsx +++ b/echo/frontend/src/features/sidebar/views/project/ProjectHomeView.tsx @@ -12,7 +12,7 @@ import { PaintBrushIcon, UsersThreeIcon, } from "@phosphor-icons/react"; -import { useParams } from "react-router"; +import { useLocation, useParams } from "react-router"; import { useProjectChatsCountQuery } from "@/components/chat/hooks"; import { useConversationsCountByProjectId } from "@/components/conversation/hooks"; import { useProjectById } from "@/components/project/hooks"; @@ -38,10 +38,15 @@ export const ProjectHomeView = () => { hasMessages: true, }); const project = projectQuery.data; + const { pathname } = useLocation(); if (!workspaceId || !projectId) return null; const base = `/w/${workspaceId}/projects/${projectId}`; + const isConversationsActive = + pathname.includes(`/projects/${projectId}/conversations`) || + pathname.includes(`/projects/${projectId}/conversation`); + return (