From c5a4eef285558488dbf51a0fa6b7824a29b35daa Mon Sep 17 00:00:00 2001 From: gabrielMalonso Date: Sun, 15 Mar 2026 18:59:42 -0300 Subject: [PATCH] refactor: move tab bar below action header Reorder the UI so the action bar (Add action, Open, Sync branch) appears above the tab bar instead of below it. This is done by passing the tab bar as a prop to ChatView and rendering it after the header element. --- apps/web/src/components/ChatView.tsx | 5 ++++- apps/web/src/routes/_chat.$threadId.$subThreadId.tsx | 6 ++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index d75143528..a8da60411 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -207,9 +207,10 @@ const extendReplacementRangeForTrailingSpace = ( interface ChatViewProps { threadId: ThreadId; + tabBar?: React.ReactNode; } -export default function ChatView({ threadId }: ChatViewProps) { +export default function ChatView({ threadId, tabBar }: ChatViewProps) { const threads = useStore((store) => store.threads); const projects = useStore((store) => store.projects); const markThreadVisited = useStore((store) => store.markThreadVisited); @@ -3625,6 +3626,8 @@ export default function ChatView({ threadId }: ChatViewProps) { /> + {tabBar} + {/* Error banner */} - {tabBar} - + - {tabBar} - + {shouldRenderDiffContent ? : null}