Update Category-Icon-System with Kiosk category and re-classification data

2026-05-31 00:41:53 -04:00
parent c4580b6fd1
commit e2f7ef9a0f
+33 -9
@@ -4,14 +4,15 @@ The Canteen Asset Tracker uses a category-based icon system to visually identify
## Category Map (main app `static/index.html`)
| Category | Icon | Color |
|------------|------|----------|
| Bev | 🥤 | #0a7ab5 |
| Snack | 🍿 | #c97d0e |
| Food | 🍔 | #e67e22 |
| Equipment | 🔧 | #2c3e50 |
| Appliances | 🔌 | #3b82f6 |
| Other | 📦 | #6b7280 |
| Category | Icon | Color | Assets |
|------------|------|----------|---------|
| Bev | 🥤 | #0a7ab5 | 3,725 |
| Snack | 🍿 | #c97d0e | 1,833 |
| Kiosk | 🏪 | #7c3aed | 1,100 |
| Appliances | 🔌 | #3b82f6 | 692 |
| Equipment | 🔧 | #2c3e50 | 188 |
| Other | 📦 | #6b7280 | 14 |
| Food | 🍔 | #e67e22 | 8 |
## Fallback Logic (`categoryInfo()`)
@@ -45,10 +46,33 @@ Seed data (both `server.py` and `admin_server.py`):
```python
("Bev", "🥤"), ("Snack", "🍿"),
("Food", "🍔"), ("Equipment", "🔧"),
("Appliances", "🔌"), ("Other", "📦"),
("Appliances", "🔌"), ("Kiosk", "🏪"),
("Other", "📦"),
```
## Kiosk Category
Assets from **365 Retail Markets**, **Panoptyc**, **Intuitivo**, **Smart Market**, and **Micro-Market** are categorized as **Kiosk** (🏪, purple `#7c3aed`). These are unattended retail kiosks and micro-markets — distinct from general Equipment.
## Re-classification from "Other"
Many assets that were stuck in "Other" were re-classified to proper categories:
| Make | Count | New Category | Reason |
|-------------------|-------|-------------|--------------------------------|
| CRANE / Crane | 114 | Equipment | Vending machines |
| Vendo | 19 | Bev | Beverage vending |
| Royal | 18 | Bev | Beverage vending |
| DN (Dixie Narco) | 12 | Bev | Beverage vending |
| USI | 2 | Snack | Snack vending |
| Cold Snap etc. | 3 | Appliances | Cooling/refrigeration |
| Cafection etc. | 4 | Bev | Coffee/water |
| De Jong Duke etc. | 11 | Equipment | Vending equipment |
**Result:** "Other" dropped from 221 → 14 (only genuinely unknown items remain). Zero unmapped categories.
## History
- **2026-06-01 (955e489):** Added Kiosk category (🏪). Re-classified 207 assets from "Other" to proper categories. Category Health now perfectly clean.
- **2026-05-29 (f1a3bb9):** Cleaned CATEGORY_MAP (removed dead entries, fixed duplicates). Added `categoryInfo()` helper with proper unmapped fallback. Added detail view icons. Synced DB categories with real asset data.
- **Admin d58834b:** Added Category Health dashboard widget.