mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:45:24 +02:00
fix: Issues column shows only NW > GW weight errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2c08a6593a
commit
db25ea793d
@@ -1244,19 +1244,18 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit,
|
||||
</td>
|
||||
))}
|
||||
|
||||
{/* Issues column */}
|
||||
{/* Issues column (weight only) */}
|
||||
<td className="px-3 py-2 overflow-hidden">
|
||||
{unitErrors.length > 0 ? (
|
||||
<div className="flex flex-col gap-1">
|
||||
{unitErrors.map((err, i) => (
|
||||
<span key={i} className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold bg-red-500/15 text-red-400 border border-red-500/30 whitespace-nowrap">
|
||||
<AlertCircle className="w-3 h-3 shrink-0" />{err}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<span className="text-slate-600 text-xs">—</span>
|
||||
)}
|
||||
{(() => {
|
||||
const weightError = unitErrors.find(e => e.startsWith('NW'));
|
||||
return weightError ? (
|
||||
<span className="inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold bg-red-500/15 text-red-400 border border-red-500/30 whitespace-nowrap">
|
||||
<AlertCircle className="w-3 h-3 shrink-0" />{weightError}
|
||||
</span>
|
||||
) : (
|
||||
<span className="text-slate-600 text-xs">—</span>
|
||||
);
|
||||
})()}
|
||||
</td>
|
||||
|
||||
{/* Check Column (Validated + Note) */}
|
||||
|
||||
Reference in New Issue
Block a user