Update Category-Icon-System with Kiosk category and re-classification data
+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 Map (main app `static/index.html`)
|
||||||
|
|
||||||
| Category | Icon | Color |
|
| Category | Icon | Color | Assets |
|
||||||
|------------|------|----------|
|
|------------|------|----------|---------|
|
||||||
| Bev | 🥤 | #0a7ab5 |
|
| Bev | 🥤 | #0a7ab5 | 3,725 |
|
||||||
| Snack | 🍿 | #c97d0e |
|
| Snack | 🍿 | #c97d0e | 1,833 |
|
||||||
| Food | 🍔 | #e67e22 |
|
| Kiosk | 🏪 | #7c3aed | 1,100 |
|
||||||
| Equipment | 🔧 | #2c3e50 |
|
| Appliances | 🔌 | #3b82f6 | 692 |
|
||||||
| Appliances | 🔌 | #3b82f6 |
|
| Equipment | 🔧 | #2c3e50 | 188 |
|
||||||
| Other | 📦 | #6b7280 |
|
| Other | 📦 | #6b7280 | 14 |
|
||||||
|
| Food | 🍔 | #e67e22 | 8 |
|
||||||
|
|
||||||
## Fallback Logic (`categoryInfo()`)
|
## Fallback Logic (`categoryInfo()`)
|
||||||
|
|
||||||
@@ -45,10 +46,33 @@ Seed data (both `server.py` and `admin_server.py`):
|
|||||||
```python
|
```python
|
||||||
("Bev", "🥤"), ("Snack", "🍿"),
|
("Bev", "🥤"), ("Snack", "🍿"),
|
||||||
("Food", "🍔"), ("Equipment", "🔧"),
|
("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
|
## 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.
|
- **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.
|
- **Admin d58834b:** Added Category Health dashboard widget.
|
||||||
|
|||||||
Reference in New Issue
Block a user