Stage 3 - AI refactor

This commit is contained in:
alorig
2025-11-09 19:30:22 +05:00
parent 375473308d
commit c04c688aa0
6 changed files with 333 additions and 29 deletions

View File

@@ -42,7 +42,8 @@ import BulkStatusUpdateModal from '../components/common/BulkStatusUpdateModal';
import { CompactPagination } from '../components/ui/pagination';
import SectorSelector from '../components/common/SectorSelector';
import { usePageSizeStore } from '../store/pageSizeStore';
import { useAIRequestLogsStore } from '../store/aiRequestLogsStore';
// DEPRECATED: Frontend debug logging removed - now using backend console logging
// import { useAIRequestLogsStore } from '../store/aiRequestLogsStore';
import ToggleTableRow, { ToggleButton } from '../components/common/ToggleTableRow';
interface ColumnConfig {
@@ -1089,15 +1090,15 @@ export default function TablePageTemplate({
</div>
)}
{/* AI Request Logs Section */}
<AIRequestLogsSection />
{/* AI Request Logs Section - DEPRECATED: Now using backend console logging */}
{/* <AIRequestLogsSection /> */}
</div>
);
}
// AI Request Logs Component
function AIRequestLogsSection() {
const { logs, clearLogs } = useAIRequestLogsStore();
// AI Request Logs Component - DEPRECATED: Now using backend console logging
// function AIRequestLogsSection() {
// const { logs, clearLogs } = useAIRequestLogsStore();
const [isExpanded, setIsExpanded] = useState(false);
if (logs.length === 0) {