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" />
+
+
+
+
+ setReportedSourceUrl(e.target.value)} />
+
+
+
+
+
+
+
+ )}
+
- {/* NEW: Comparison & Strategy */}
{renderCRMComparison()}
{renderStrategyCard()}
@@ -1134,7 +1167,12 @@ export function Inspector({ companyId, initialContactId, onClose, apiBase }: Ins
)}
{activeTab === 'contacts' && (
-
+
)}