Add Coffee category () to wiki

2026-05-31 00:53:01 -04:00
parent e2f7ef9a0f
commit a359dc9ef8
+24 -10
@@ -2,17 +2,18 @@
The Canteen Asset Tracker uses a category-based icon system to visually identify asset types at a glance.
## Category Map (main app `static/index.html`)
## Categories
| 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 |
| Category | Icon | Color | Assets |
|------------|------|----------|-------|
| Bev | 🥤 | #0a7ab5 | 3,725 |
| Snack | 🍿 | #c97d0e | 1,833 |
| Kiosk | 🏪 | #7c3aed | 1,100 |
| Appliances | 🔌 | #3b82f6 | 692 |
| Equipment | 🔧 | #2c3e50 | 125 |
| Coffee | | #a16207 | 63 |
| Other | 📦 | #6b7280 | 14 |
| Food | 🍔 | #e67e22 | 8 |
## Fallback Logic (`categoryInfo()`)
@@ -47,6 +48,7 @@ Seed data (both `server.py` and `admin_server.py`):
("Bev", "🥤"), ("Snack", "🍿"),
("Food", "🍔"), ("Equipment", "🔧"),
("Appliances", "🔌"), ("Kiosk", "🏪"),
("Coffee", ""),
("Other", "📦"),
```
@@ -69,10 +71,22 @@ Many assets that were stuck in "Other" were re-classified to proper categories:
| Cafection etc. | 4 | Bev | Coffee/water |
| De Jong Duke etc. | 11 | Equipment | Vending equipment |
> **Note:** In a later update (June 2026), De Jong Duke (63) and Impressions (3) were moved to the new **Coffee** (☕) category with `#a16207` amber color, reducing Equipment to 125.
## Coffee Category
Coffee vending machines and brewers are categorized as **Coffee** (☕, amber `#a16207`). This includes:
| Make | Count | Source |
|------|-------|--------|
| De Jong Duke / DeJong DUKE / de John Duke | 60 | Was Equipment |
| Impressions | 3 | Was Equipment |
**Result:** "Other" dropped from 221 → 14 (only genuinely unknown items remain). Zero unmapped categories.
## History
- **2026-06-01 (fff2b6a):** Added Coffee category (☕). Moved 63 De Jong Duke/Impressions coffee vending machines from Equipment to Coffee.
- **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.