From e1c3a21d05dfdd49c8eff16cf79e97fad576bf83 Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Mon, 9 Nov 2026 15:21:03 +0000 Subject: [PATCH] fix(site): keep agents sidebar PR count color consistent (#31929) --- .../components/ChatsSidebar/ChatsSidebar.stories.tsx | 10 ++++++++++ .../components/ChatsSidebar/tree/ChatNodePRIcon.tsx | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.stories.tsx b/site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.stories.tsx index 7629ce1dcfc..4efe18cd6e1 100644 --- a/site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.stories.tsx +++ b/site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.stories.tsx @@ -1936,6 +1936,16 @@ export const WithMultiplePRs: Story = { }, }; +export const WithMultiplePRsSelected: Story = { + args: WithMultiplePRs.args, + parameters: { + reactRouter: reactRouterParameters({ + location: { path: "/agents/multi-pr" }, + routing: agentsRouting, + }), + }, +}; + // Enough PRs to show the submenu's height limit. export const WithManyPRs: Story = { args: { diff --git a/site/src/pages/AgentsPage/components/ChatsSidebar/tree/ChatNodePRIcon.tsx b/site/src/pages/AgentsPage/components/ChatsSidebar/tree/ChatNodePRIcon.tsx index 077f1eb8d5d..eaa14d19ffd 100644 --- a/site/src/pages/AgentsPage/components/ChatsSidebar/tree/ChatNodePRIcon.tsx +++ b/site/src/pages/AgentsPage/components/ChatsSidebar/tree/ChatNodePRIcon.tsx @@ -36,14 +36,14 @@ export const ChatNodePRIcon: React.FC = ({ );