From a359dc9ef8e292f7d695fba8f641511e3be8d923 Mon Sep 17 00:00:00 2001 From: Shawn Date: Sun, 31 May 2026 00:53:01 -0400 Subject: [PATCH] =?UTF-8?q?Add=20Coffee=20category=20(=E2=98=95)=20to=20wi?= =?UTF-8?q?ki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Category-Icon-System.md | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/Category-Icon-System.md b/Category-Icon-System.md index 4a2b82e..2c2e133 100644 --- a/Category-Icon-System.md +++ b/Category-Icon-System.md @@ -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.