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.
This commit is contained in:
TJ authored and GitHub committed 2026-11-18 15:16:59 -08:00
1 parent 6e02a6a39d
commit b413bc7f4f
1 file changed
+1 -1
@@ -166,8 +166,8 @@ export const ProjectChatRow: React.FC<ProjectChatRowProps> = ({
/>
<span className="min-w-0 max-w-104 flex-1 truncate">{chat.title}</span>
<span className="ml-auto flex shrink-0 items-center gap-3">
{showCost && <ProjectChatCost chat={chat} />}
<ChatPRStateIcon chat={chat} />
{showCost && <ProjectChatCost chat={chat} />}
</span>
</Link>
<div className="grid size-7 shrink-0 place-items-center *:[grid-area:1/1]">