diff --git a/assets.db.backup-pre-migration b/assets.db.backup-pre-migration new file mode 100644 index 0000000..3ea31bf Binary files /dev/null and b/assets.db.backup-pre-migration differ diff --git a/assets.db.pre-import b/assets.db.pre-import deleted file mode 100644 index a0a819d..0000000 Binary files a/assets.db.pre-import and /dev/null differ diff --git a/static/index.html b/static/index.html index 01f0927..11dc25c 100644 --- a/static/index.html +++ b/static/index.html @@ -714,16 +714,6 @@ .import-results .ir-err { color: var(--red); } .import-results .ir-warn { color: var(--amber); } - /* ═══════════════════════════════════════════════════════════════════════ - CATEGORY ICON COLORS (v2) - ═══════════════════════════════════════════════════════════════════════ */ - .asset-item .ai-icon.cat-Coffee { background: #2e1a0a; } - .asset-item .ai-icon.cat-Cold-Beverage { background: #0a1a2e; } - .asset-item .ai-icon.cat-Snacks { background: #2a2010; } - .asset-item .ai-icon.cat-Cold-Food { background: #1a2e1a; } - .asset-item .ai-icon.cat-Market { background: #2e1a2e; } - .asset-item .ai-icon.cat-Smart-Cooler { background: #1a2e2e; } - /* ═══════════════════════════════════════════════════════════════════════ MAP STYLES ═══════════════════════════════════════════════════════════════════════ */ @@ -2999,19 +2989,17 @@ // ── Category config ─────────────────────────────────────────────────── const CATEGORY_MAP = { - 'Coffee': { icon: '☕', color: '#2e1a0a' }, - 'Cold Beverage': { icon: '🥤', color: '#0a1a2e' }, - 'Snacks': { icon: '🍿', color: '#2a2010' }, - 'Cold Food': { icon: '🥪', color: '#1a2e1a' }, - 'Market': { icon: '🏪', color: '#2e1a2e' }, - 'Smart Cooler': { icon: '🧊', color: '#1a2e2e' }, + 'Bev': { icon: '🥤', color: '#0a7ab5' }, + 'Snack': { icon: '🍿', color: '#c97d0e' }, + 'Gf bev': { icon: '🧃', color: '#0a9e5a' }, + 'Gf food': { icon: '🥪', color: '#8a5c2a' }, + 'Other': { icon: '📦', color: '#6b7280' }, + 'Snack/bev': { icon: '🍱', color: '#9b59b6' }, + 'Snack/food': { icon: '🍱', color: '#9b59b6' }, + 'Food': { icon: '🍔', color: '#d35400' }, + 'Equipment': { icon: '🔧', color: '#2c3e50' }, + 'Furniture': { icon: '🪑', color: '#8e44ad' }, }; - function catIcon(cat) { - const entry = CATEGORY_MAP[cat]; - if (entry) return entry.icon; - if (cat) return cat.charAt(0).toUpperCase(); - return '📦'; - } const PARK_ICONS = {'magic-kingdom':'🏰','epcot':'🌍','hollywood-studios':'🎬','animal-kingdom':'🌿','disney-springs':'🛍️','resort':'🏨','office':'🏢','other':'📍'}; const PARK_NAMES = {'magic-kingdom':'Magic Kingdom','epcot':'Epcot','hollywood-studios':'Hollywood Studios','animal-kingdom':'Animal Kingdom','disney-springs':'Disney Springs','resort':'Resort','office':'Office','other':'Other'}; @@ -3086,11 +3074,12 @@ return; } el.innerHTML = assets.map(a => { - const icon = catIcon(a.category); - const catClass = a.category ? 'cat-' + a.category.replace(/[^a-zA-Z0-9]/g, '-') : ''; + const catEntry = CATEGORY_MAP[a.category]; + const icon = catEntry ? catEntry.icon : (a.category ? a.category.charAt(0).toUpperCase() : '📦'); + const catColor = catEntry ? catEntry.color : '#1a1b26'; return `