/* ===== Home screen — module entry + recent sessions ===== */ const HomeScreen = ({ onNavigate }) => { const modules = [ { id: 'cartonization', icon: 'carton', name: 'Cartonization', tagline: 'SKUs → cartons', inputs: ['SKU list', 'Excel / CSV upload', 'SKU library'], kpi: { label: 'Avg. cube fill', value: '88%' }, accent: '#E8893C', }, { id: 'palletization', icon: 'pallet', name: 'Palletization', tagline: 'Cartons / SKUs → pallets', inputs: ['Carton list', 'Loose SKUs', 'Mixed manifest'], kpi: { label: 'Avg. density gain', value: '+11%' }, accent: '#F0B830', }, { id: 'containerization', icon: 'container', name: 'Containerization', tagline: 'Pallets / cargo → container', inputs: ['Pallet list', 'Mixed manifest', 'Special cargo'], kpi: { label: 'Avg. utilisation', value: '83%' }, accent: '#C13333', featured: true, }, ]; return (
| Name | Module | Utilisation | Weight | Status | Updated | |
|---|---|---|---|---|---|---|
|
{r.name}
|
{r.module} |
85?'var(--ok)':r.util>70?'var(--warn)':'var(--bad)' }}/>
{r.util}%
|
{r.weight} | {r.status==='ok' && OK} {r.status==='warn' && {r.violations} warn} {r.status==='bad' && {r.violations} blocking} | {r.date} |