mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 08:31:19 +00:00
MAESTRO: Remove unused imports and local function (Phase 1 ESLint fixes)
- Remove unused imports from App.tsx: createMergedSession, TAB_SHORTCUTS, DEFAULT_CONTEXT_WINDOWS - Remove unused import RotateCcw from AICommandsPanel.tsx - Remove unused import useCallback from AgentPromptComposerModal.tsx - Remove unused import Image from AutoRunExpandedModal.tsx - Remove unused local function countUncheckedTasks from BatchRunnerModal.tsx - Remove unused import X from DebugPackageModal.tsx - Remove unused imports Copy and FileText from FilePreview.tsx
This commit is contained in:
@@ -106,13 +106,12 @@ import type {
|
||||
import { THEMES } from './constants/themes';
|
||||
import { generateId } from './utils/ids';
|
||||
import { getContextColor } from './utils/theme';
|
||||
import { setActiveTab, createTab, closeTab, reopenClosedTab, getActiveTab, getWriteModeTab, navigateToNextTab, navigateToPrevTab, navigateToTabByIndex, navigateToLastTab, getInitialRenameValue, createMergedSession } from './utils/tabHelpers';
|
||||
import { TAB_SHORTCUTS } from './constants/shortcuts';
|
||||
import { setActiveTab, createTab, closeTab, reopenClosedTab, getActiveTab, getWriteModeTab, navigateToNextTab, navigateToPrevTab, navigateToTabByIndex, navigateToLastTab, getInitialRenameValue } from './utils/tabHelpers';
|
||||
import { shouldOpenExternally, getAllFolderPaths, flattenTree } from './utils/fileExplorer';
|
||||
import type { FileNode } from './types/fileTree';
|
||||
import { substituteTemplateVariables } from './utils/templateVariables';
|
||||
import { validateNewSession } from './utils/sessionValidation';
|
||||
import { estimateContextUsage, DEFAULT_CONTEXT_WINDOWS } from './utils/contextUsage';
|
||||
import { estimateContextUsage } from './utils/contextUsage';
|
||||
|
||||
/**
|
||||
* Known Claude Code tool names - used to detect concatenated tool name patterns
|
||||
@@ -6140,7 +6139,7 @@ export default function MaestroConsole() {
|
||||
if (s.id !== activeSession.id) return s;
|
||||
|
||||
// Add kill log to the appropriate place and clear thinking/tool logs
|
||||
let updatedSession = { ...s };
|
||||
const updatedSession = { ...s };
|
||||
if (currentMode === 'ai') {
|
||||
const tab = getActiveTab(s);
|
||||
if (tab) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useRef } from 'react';
|
||||
import { Plus, Trash2, Edit2, Save, X, Terminal, Lock, ChevronDown, ChevronRight, Variable, RotateCcw } from 'lucide-react';
|
||||
import { Plus, Trash2, Edit2, Save, X, Terminal, Lock, ChevronDown, ChevronRight, Variable } from 'lucide-react';
|
||||
import type { Theme, CustomAICommand } from '../types';
|
||||
import { TEMPLATE_VARIABLES_GENERAL } from '../utils/templateVariables';
|
||||
import { useTemplateAutocomplete } from '../hooks/useTemplateAutocomplete';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { X, FileText, Variable, ChevronDown, ChevronRight } from 'lucide-react';
|
||||
import type { Theme } from '../types';
|
||||
import { useLayerStack } from '../contexts/LayerStackContext';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useRef, useCallback, useState } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { X, Minimize2, Eye, Edit, Play, Square, Loader2, Image, Save, RotateCcw } from 'lucide-react';
|
||||
import { X, Minimize2, Eye, Edit, Play, Square, Loader2, Save, RotateCcw } from 'lucide-react';
|
||||
import type { Theme, BatchRunState, SessionState, Shortcut } from '../types';
|
||||
import { useLayerStack } from '../contexts/LayerStackContext';
|
||||
import { MODAL_PRIORITIES } from '../constants/modalPriorities';
|
||||
|
||||
@@ -41,13 +41,6 @@ interface BatchRunnerModalProps {
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
// Helper function to count unchecked tasks in scratchpad content
|
||||
function countUncheckedTasks(content: string): number {
|
||||
if (!content) return 0;
|
||||
const matches = content.match(/^-\s*\[\s*\]/gm);
|
||||
return matches ? matches.length : 0;
|
||||
}
|
||||
|
||||
// Helper function to format the last modified date
|
||||
function formatLastModified(timestamp: number): string {
|
||||
const date = new Date(timestamp);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
||||
import { Package, Check, X, Loader2, FolderOpen, AlertCircle, Copy } from 'lucide-react';
|
||||
import { Package, Check, Loader2, FolderOpen, AlertCircle, Copy } from 'lucide-react';
|
||||
import type { Theme } from '../types';
|
||||
import { MODAL_PRIORITIES } from '../constants/modalPriorities';
|
||||
import { Modal, ModalFooter } from './ui/Modal';
|
||||
|
||||
@@ -4,7 +4,7 @@ import remarkGfm from 'remark-gfm';
|
||||
import rehypeRaw from 'rehype-raw';
|
||||
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||
import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
||||
import { FileCode, X, Copy, FileText, Eye, ChevronUp, ChevronDown, ChevronLeft, ChevronRight, Clipboard, Loader2, Image, Globe, Save, Edit, FolderOpen, AlertTriangle } from 'lucide-react';
|
||||
import { FileCode, X, Eye, ChevronUp, ChevronDown, ChevronLeft, ChevronRight, Clipboard, Loader2, Image, Globe, Save, Edit, FolderOpen, AlertTriangle } from 'lucide-react';
|
||||
import { visit } from 'unist-util-visit';
|
||||
import { useLayerStack } from '../contexts/LayerStackContext';
|
||||
import { MODAL_PRIORITIES } from '../constants/modalPriorities';
|
||||
|
||||
Reference in New Issue
Block a user