From aa05f9e9b41b0bddee013cf32eae84263b5e7ae0 Mon Sep 17 00:00:00 2001 From: Moltbot-Jarvis Date: Wed, 18 Feb 2026 10:37:47 +0000 Subject: [PATCH] fix: Repair Inspector TypeScript errors (props and unused vars) --- .../frontend/src/components/Inspector.tsx | 62 +++++++++++++++---- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/company-explorer/frontend/src/components/Inspector.tsx b/company-explorer/frontend/src/components/Inspector.tsx index a2d74e24..bc2a576a 100644 --- a/company-explorer/frontend/src/components/Inspector.tsx +++ b/company-explorer/frontend/src/components/Inspector.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react' import axios from 'axios' -import { X, ExternalLink, Bot, Briefcase, Calendar, Globe, Users, DollarSign, MapPin, Tag, RefreshCw as RefreshCwIcon, Search as SearchIcon, Pencil, Check, Download, Clock, Lock, Unlock, Calculator, Ruler, Database, Trash2, Flag, AlertTriangle, Scale, Target } from 'lucide-react' +import { X, ExternalLink, Bot, Briefcase, Globe, Users, DollarSign, MapPin, Tag, RefreshCw as RefreshCwIcon, Search as SearchIcon, Pencil, Check, Download, Clock, Lock, Unlock, Calculator, Ruler, Database, Trash2, Flag, AlertTriangle, Scale, Target, Save } from 'lucide-react' import clsx from 'clsx' import { ContactsManager, Contact } from './ContactsManager' @@ -409,7 +409,7 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins const impressum = scrapeData?.impressum const scrapeDate = scrapeEntry?.created_at - // NEW: Strategy Card Renderer + // Strategy Card Renderer const renderStrategyCard = () => { if (!data?.industry_details) return null; const { pains, gains, priority, notes } = data.industry_details; @@ -421,7 +421,6 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
- {/* Priority Badge */}
Status: {priority || "N/A"}
- {/* Pains */} {pains && (
Pain Points
@@ -437,7 +435,6 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
)} - {/* Gains */} {gains && (
Gain Points
@@ -445,7 +442,6 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
)} - {/* Internal Notes */} {notes && (
Internal Notes
@@ -457,9 +453,8 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins ) } - // NEW: CRM Comparison Renderer + // CRM Comparison Renderer const renderCRMComparison = () => { - // Only show if CRM data exists if (!data?.crm_name && !data?.crm_website) return null; return ( @@ -478,7 +473,6 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
- {/* Left: CRM (ReadOnly) */}
SuperOffice (CRM)
@@ -489,7 +483,6 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
- {/* Right: AI (Golden Record) */}
Company Explorer (AI)
@@ -627,6 +620,47 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
)} + {/* Mistake Report Form (Missing in previous version) */} + {isReportingMistake && ( +
+

+ Report a Data Error + +

+
+
+ + setReportedFieldName(e.target.value)} placeholder="e.g. Revenue, Employee Count" /> +
+
+
+ + setReportedWrongValue(e.target.value)} /> +
+
+ + setReportedCorrectedValue(e.target.value)} /> +
+
+
+ + setReportedSourceUrl(e.target.value)} /> +
+
+ +