sidebar ui changes, loading state fixes (#2039)

* tons of sidebar ui cleanup, loading states etc

* lint fix

* fix archive store

* i18n

---------

Co-authored-by: Louis Knight-Webb <louis@bloop.ai>
This commit is contained in:
Theo Browne
2026-01-14 05:14:50 -08:00
committed by GitHub
parent add92d94f4
commit d54a46209b
12 changed files with 328 additions and 116 deletions

View File

@@ -545,9 +545,43 @@ export function SessionChatBoxContainer({
localMessage,
]);
// Don't render if no session and not in new session mode
if (!session && !isNewSessionMode) {
return null;
// Render placeholder state if no session and not in new session mode
// This maintains the visual structure during workspace transitions
const isPlaceholderMode = !session && !isNewSessionMode;
// In placeholder mode, render a disabled version to maintain visual structure
if (isPlaceholderMode) {
return (
<SessionChatBox
status="idle"
workspaceId={workspaceId}
projectId={projectId}
editor={{
value: '',
onChange: () => {},
}}
actions={{
onSend: () => {},
onQueue: () => {},
onCancelQueue: () => {},
onStop: () => {},
onPasteFiles: () => {},
}}
session={{
sessions: [],
selectedSessionId: undefined,
onSelectSession: () => {},
isNewSessionMode: false,
onNewSession: undefined,
}}
stats={{
filesChanged: 0,
linesAdded: 0,
linesRemoved: 0,
onViewCode: undefined,
}}
/>
);
}
return (