feat(FN-4610): complete Step 1 — add latest button to rooms thread

Fusion-Task-Id: FN-4610
Fusion-Task-Lineage: 6f2a411d-817d-45e5-bc8f-40ea38920401
This commit is contained in:
Fusion
2026-05-15 08:54:10 -07:00
committed by gsxdsm
parent 550aeb1037
commit 5141cf8b15

View File

@@ -2571,6 +2571,17 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
)}
<div ref={messagesEndRef} />
</div>
{rooms.activeRoom && isUserScrolling && (
<button
type="button"
className="btn btn-sm chat-jump-to-latest"
data-testid="chat-jump-to-latest"
onClick={scrollToBottom}
>
<ChevronDown size={14} />
Latest
</button>
)}
</>
) : (
<div className="chat-room-empty-pane" data-testid="chat-rooms-empty-pane">Select a room or create one</div>