feat: add Pricing & Units tab for Level error monitoring

New tab shows all products with missing UVP/SRP pricing or invalid
container units (40'HC/HQ = 0 or 1, missing Units/Outer). Price
fields are inline-editable with Supabase sync. Columns are detected
dynamically from Excel headers so future SRP countries (e.g. Poland)
appear automatically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Vidal Wolf
2026-04-07 11:23:34 +02:00
co-authored by Claude Sonnet 4.6
parent d48e2cb0ff
commit 38466b3876
3 changed files with 532 additions and 5 deletions
+3 -2
View File
@@ -1,10 +1,10 @@
import React from 'react';
import { FileSpreadsheet, FileText, CheckSquare, Table, Box } from 'lucide-react';
import { FileText, Table, Box, DollarSign } from 'lucide-react';
import { cn } from '../lib/utils';
interface SidebarProps {
activeModule: string;
setActiveModule: (m: 'descriptions' | 'completeness' | 'matrix' | 'dimensions') => void;
setActiveModule: (m: 'descriptions' | 'completeness' | 'matrix' | 'dimensions' | 'pricing') => void;
}
export function Sidebar({ activeModule, setActiveModule }: SidebarProps) {
@@ -12,6 +12,7 @@ export function Sidebar({ activeModule, setActiveModule }: SidebarProps) {
{ id: 'matrix', label: 'Matrix', icon: Table },
{ id: 'descriptions', label: 'Product Descriptions', icon: FileText },
{ id: 'dimensions', label: 'Dimensions', icon: Box },
{ id: 'pricing', label: 'Pricing & Units', icon: DollarSign },
] as const;
return (