diff --git a/src/App.jsx b/src/App.jsx index b65f65b..cd166f5 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -40,11 +40,14 @@ import { I18nextProvider, useTranslation } from 'react-i18next'; import i18n from './i18n/config.js'; +// ! Move to a separate file called AppContent.ts // Main App component with routing function AppContent() { const navigate = useNavigate(); const { sessionId } = useParams(); const { t } = useTranslation('common'); + const renderCountRef = useRef(0); + console.log(`AppContent render count: ${renderCountRef.current++}`); const { updateAvailable, latestVersion, currentVersion, releaseInfo } = useVersionCheck('siteboon', 'claudecodeui'); const [showVersionModal, setShowVersionModal] = useState(false); diff --git a/src/components/ChatInterface.jsx b/src/components/ChatInterface.jsx index 3ee5a84..e8ad9a4 100644 --- a/src/components/ChatInterface.jsx +++ b/src/components/ChatInterface.jsx @@ -43,6 +43,8 @@ import { CLAUDE_MODELS, CURSOR_MODELS, CODEX_MODELS } from '../../shared/modelCo import { safeJsonParse } from '../lib/utils.js'; +// ! Move all utility functions to utils/chatUtils.ts + // Helper function to decode HTML entities in text function decodeHtmlEntities(text) { if (!text) return text; @@ -4879,7 +4881,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess }; - +// ! Unused const handleNewSession = () => { setChatMessages([]); setInput(''); diff --git a/src/components/GitPanel.jsx b/src/components/GitPanel.jsx index 3abd4c5..b077b05 100644 --- a/src/components/GitPanel.jsx +++ b/src/components/GitPanel.jsx @@ -960,6 +960,7 @@ function GitPanel({ selectedProject, isMobile, onFileOpen }) { {gitStatus.details && (
{gitStatus.details}
)} + {/* // ! This can be a custom component that can be reused for " Tip: Create a new project..." as well */}
Tip: Run git init in your project directory to initialize git source control.
diff --git a/src/components/MainContent.jsx b/src/components/MainContent.jsx
index 50949a0..21665df 100644
--- a/src/components/MainContent.jsx
+++ b/src/components/MainContent.jsx
@@ -38,7 +38,7 @@ function MainContent({
sendMessage,
messages,
isMobile,
- isPWA,
+ isPWA, // ! Unused
onMenuClick,
isLoading,
onInputFocusChange,