From b413bc7f4f7f06db8bb0e754cf4bec2c1d00da7b Mon Sep 17 00:00:00 2001 From: TJ Date: Wed, 18 Nov 2026 15:16:59 -0800 Subject: [PATCH] fix(site/src/pages/AgentsPage/components/ProjectPage): put project chat cost beside the avatar (#32414) Fixes DES-22270. On the project page, each chat row ended with the cost badge followed by the PR state icon. Chats without a PR render no icon, so their cost badge shifted right and the list read as a misaligned table. The row now shows the PR icon first and the cost beside the owner avatar, so cost badges line up against the avatar column on every row. | Before | After | |---|---| | ![before](https://github.com/coder/coder/blob/990c157659148acff17232cc0084c95e79497b14/before.png?raw=true) | ![after](https://github.com/coder/coder/blob/990c157659148acff17232cc0084c95e79497b14/after.png?raw=true) | Verified in the `ProjectChatsListView/Populated` story: before, cost badges ended at x=954 on rows with a PR and x=980 on rows without; after, all end at x=980 beside the avatar, with the PR icon to their left. > Generated by Coder Agents on behalf of @tracyjohnsonux. --- .../pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx b/site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx index b4965aaf11e..6267cebaafb 100644 --- a/site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx +++ b/site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx @@ -166,8 +166,8 @@ export const ProjectChatRow: React.FC = ({ /> {chat.title} - {showCost && } + {showCost && }