2import { Icon } from '@/contexts/IconContext';
4export default function SupplierDataIssues() {
8 supplierName: "Office Supplies Co",
9 missingFields: ["Phone Number", "Email"],
11 lastOrder: "2024-12-15",
16 supplierName: "Tech Distributors Ltd",
17 missingFields: ["Address", "Contact Person"],
19 lastOrder: "2025-01-05",
24 supplierName: "Paper Products Inc",
25 missingFields: ["Email", "Website"],
27 lastOrder: "2024-11-28",
33 <div className="p-6 min-h-screen bg-bg">
34 {/* Header with back button */}
35 <div className="mb-6">
36 <div className="flex items-center gap-3 mb-2">
38 href="/pages/reports?source=advisor"
39 className="text-muted hover:text-brand transition-colors"
41 <Icon name="arrow_back" size={24} />
43 <h1 className="text-3xl font-bold text-text">Supplier Data Issues</h1>
45 <p className="text-muted ml-9">
46 Suppliers with incomplete or missing contact information
51 <div className="bg-surface rounded-lg shadow-sm border border-border overflow-hidden">
52 <div className="overflow-x-auto">
53 <table className="w-full">
54 <thead className="bg-[var(--brand)] text-surface">
56 <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
59 <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
62 <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
65 <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
68 <th className="px-6 py-3 text-right text-xs font-medium uppercase tracking-wider">
71 <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
76 <tbody className="divide-y divide-border">
77 {data.length === 0 ? (
79 <td colSpan={6} className="px-6 py-12 text-center">
80 <Icon name="check_circle" size={48} className="text-success mx-auto mb-3" />
81 <p className="text-muted font-medium">All supplier information is complete</p>
82 <p className="text-muted-2 text-sm mt-1">No missing data detected</p>
87 <tr key={row.id} className="hover:bg-surface-2 transition-colors">
88 <td className="px-6 py-4 text-sm font-medium text-text">
91 <td className="px-6 py-4 text-sm text-muted">
92 {row.missingFields.join(", ")}
94 <td className="px-6 py-4">
95 <span className={`px-2 py-1 text-xs font-medium rounded ${
96 row.severity === 'high' ? 'bg-error/20 text-error' :
97 row.severity === 'medium' ? 'bg-warning/20 text-warning' :
98 'bg-muted/20 text-muted'
100 {row.severity.toUpperCase()}
103 <td className="px-6 py-4 text-sm text-muted">
106 <td className="px-6 py-4 text-sm text-muted text-right">
109 <td className="px-6 py-4 text-sm space-x-3">
110 <a href={`/pages/suppliers/${row.id}`} className="text-brand hover:text-brand2 transition-colors">
113 <a href={`/pages/suppliers/${row.id}`} className="text-muted hover:text-text transition-colors">