From cd6e5befb8d4299add6b8b3a93ca1d49f7a93744 Mon Sep 17 00:00:00 2001 From: simos Date: Tue, 12 Aug 2025 13:25:32 +0300 Subject: [PATCH] feat: Add provider logos for session indication in MainContent --- src/components/MainContent.jsx | 67 ++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/src/components/MainContent.jsx b/src/components/MainContent.jsx index 645e84d..09a210a 100644 --- a/src/components/MainContent.jsx +++ b/src/components/MainContent.jsx @@ -18,6 +18,8 @@ import CodeEditor from './CodeEditor'; import Shell from './Shell'; import GitPanel from './GitPanel'; import ErrorBoundary from './ErrorBoundary'; +import ClaudeLogo from './ClaudeLogo'; +import CursorLogo from './CursorLogo'; function MainContent({ selectedProject, @@ -153,35 +155,46 @@ function MainContent({ )} -
- {activeTab === 'chat' && selectedSession ? ( -
-

- {selectedSession.__provider === 'cursor' ? (selectedSession.name || 'Untitled Session') : (selectedSession.summary || 'New Session')} -

-
- {selectedProject.displayName} • {selectedSession.id} -
-
- ) : activeTab === 'chat' && !selectedSession ? ( -
-

- New Session -

-
- {selectedProject.displayName} -
-
- ) : ( -
-

- {activeTab === 'files' ? 'Project Files' : activeTab === 'git' ? 'Source Control' : 'Project'} -

-
- {selectedProject.displayName} -
+
+ {activeTab === 'chat' && selectedSession && ( +
+ {selectedSession.__provider === 'cursor' ? ( + + ) : ( + + )}
)} +
+ {activeTab === 'chat' && selectedSession ? ( +
+

+ {selectedSession.__provider === 'cursor' ? (selectedSession.name || 'Untitled Session') : (selectedSession.summary || 'New Session')} +

+
+ {selectedProject.displayName} • {selectedSession.id} +
+
+ ) : activeTab === 'chat' && !selectedSession ? ( +
+

+ New Session +

+
+ {selectedProject.displayName} +
+
+ ) : ( +
+

+ {activeTab === 'files' ? 'Project Files' : activeTab === 'git' ? 'Source Control' : 'Project'} +

+
+ {selectedProject.displayName} +
+
+ )} +