mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Simplify console message handling and reduce code complexity
- Remove unused useErrorDetection.ts hook (154 lines) - Remove separate console.ts type file, consolidate into ReadConsoleMessagesTool - Simplify console message state management in PreviewPane - Remove redundant console clearing logic in ProjectView - Streamline copy functionality in console UI - Clean up imports and formatting Preserves all functionality while reducing code complexity and maintenance burden.
This commit is contained in:
1 parent
6296fc4366
commit
7ab30af944
6 files changed
+19
-201
No files matched your search
@@ -79,14 +79,7 @@ export function ProjectView() {
|
||||
}
|
||||
}, [isPreviewable, mobileView, activeTab]);
|
||||
|
||||
// Clear console messages when projectId changes or component unmounts
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
if (projectId) {
|
||||
clearConsoleMessages();
|
||||
}
|
||||
};
|
||||
}, [projectId]);
|
||||
|
||||
|
||||
const handleNewChat = () => {
|
||||
// Reset to chat view on mobile when starting new chat
|
||||
|
||||
Reference in new issue
Block a user