diff --git a/apps/web/app/workspace/workspace-content.tsx b/apps/web/app/workspace/workspace-content.tsx index f4ea88280a4..683b81133e3 100644 --- a/apps/web/app/workspace/workspace-content.tsx +++ b/apps/web/app/workspace/workspace-content.tsx @@ -1831,9 +1831,6 @@ function WorkspacePageInner() { // Whether to show the main ChatPanel (no file/content selected) const showMainChat = !activePath || content.kind === "none"; - const showDesktopMainChatSidebar = !isMobile && showMainChat && chatSidebarOpen; - const showDesktopFileChatSidebar = - !isMobile && !showMainChat && fileContext && showChatSidebar && !rightSidebarCollapsed; return ( // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions @@ -1894,66 +1891,68 @@ function WorkspacePageInner() { /> ) ) : ( - <> - {!leftSidebarCollapsed && (
- - setShowHidden((v) => !v)} - width={leftSidebarWidth} - onCollapse={() => setLeftSidebarCollapsed(true)} - activeWorkspace={workspaceName} - onWorkspaceChanged={handleWorkspaceChanged} - chatSessions={sessions} - activeChatSessionId={activeSessionId} - activeChatSessionTitle={activeSessionTitle} - chatStreamingSessionIds={streamingSessionIds} - chatSubagents={subagents} - chatActiveSubagentKey={activeSubagentKey} - chatSessionsLoading={sessionsLoading} - onSelectChatSession={(sessionId) => { - setActiveSessionId(sessionId); - setActiveSubagentKey(null); - void chatRef.current?.loadSession(sessionId); - }} - onNewChatSession={() => { - setActiveSessionId(null); - setActiveSubagentKey(null); - void chatRef.current?.newSession(); - }} - onSelectChatSubagent={handleSelectSubagent} - onDeleteChatSession={handleDeleteSession} - onRenameChatSession={handleRenameSession} - activeTab={sidebarTab} - onTabChange={setSidebarTab} - /> +
+ + setShowHidden((v) => !v)} + width={leftSidebarWidth} + onCollapse={() => setLeftSidebarCollapsed(true)} + activeWorkspace={workspaceName} + onWorkspaceChanged={handleWorkspaceChanged} + chatSessions={sessions} + activeChatSessionId={activeSessionId} + activeChatSessionTitle={activeSessionTitle} + chatStreamingSessionIds={streamingSessionIds} + chatSubagents={subagents} + chatActiveSubagentKey={activeSubagentKey} + chatSessionsLoading={sessionsLoading} + onSelectChatSession={(sessionId) => { + setActiveSessionId(sessionId); + setActiveSubagentKey(null); + void chatRef.current?.loadSession(sessionId); + }} + onNewChatSession={() => { + setActiveSessionId(null); + setActiveSubagentKey(null); + void chatRef.current?.newSession(); + }} + onSelectChatSubagent={handleSelectSubagent} + onDeleteChatSession={handleDeleteSession} + onRenameChatSession={handleRenameSession} + activeTab={sidebarTab} + onTabChange={setSidebarTab} + /> +
- )} - )} @@ -2212,73 +2211,79 @@ function WorkspacePageInner() { - {showDesktopMainChatSidebar && ( + {!isMobile && showMainChat && ( )} - {showDesktopFileChatSidebar && ( + {!isMobile && !showMainChat && fileContext && ( )} @@ -3343,84 +3348,40 @@ function ObjectView({ ], [data.fields]); return ( -
- {/* Object header */} -
+
+ {/* Object header โ€” compact single bar */} +

{data.object.name}

{data.object.description && ( -

{data.object.description} -

+ )} -
- - {totalCount} entries - - - {data.fields.length} fields - - - {hasRelationFields && ( - - {data.fields.filter((f) => f.type === "relation").length} relation{data.fields.filter((f) => f.type === "relation").length !== 1 ? "s" : ""} - - )} - {hasReverseRelations && ( - - {data.reverseRelations!.filter((rr) => Object.keys(rr.entries).length > 0).length} linked from - - )} -
- + + {totalCount} {totalCount === 1 ? "entry" : "entries"} ยท {data.fields.length} fields + +
{displayFieldCandidates.length > 0 && ( -
- +
+ Display field: