Date: 2026-02-20 Issue: Capitalization inconsistencies and "imported" category in browser facets Resolution: All enum values normalized to lowercase, browser data regenerated
Modified behavior:
- All enum values converted to lowercase for facet display
categoryfield: Convert to lowercase and skip "imported" valuesmedium_typefield: Convert to lowercasephysical_statefield: Convert to lowercase
Code changes:
item = {
"category": category.lower() if category else "unknown",
"medium_type": (recipe.get("medium_type", "") or "").lower(),
"physical_state": (recipe.get("physical_state", "") or "").lower(),
}Color scheme updated:
- Changed from uppercase keys (COMPLEX, LIQUID) to lowercase (complex, liquid)
- Added missing categories:
algae,specialized - Added all medium types:
enrichment,differential - Added all physical states:
semisolid,biphasic
Before:
"colors": {
"bacterial": "#3b82f6",
"DEFINED": "#059669",
"COMPLEX": "#dc2626",
"LIQUID": "#06b6d4",
"SOLID_AGAR": "#84cc16"
}After:
"colors": {
"bacterial": "#3b82f6",
"fungal": "#8b5cf6",
"archaea": "#f59e0b",
"algae": "#10b981",
"specialized": "#6366f1",
"defined": "#059669",
"complex": "#dc2626",
"liquid": "#06b6d4",
"solid_agar": "#84cc16",
// ... and more
}Command used:
PYTHONPATH=src python -m culturemech.export.browser_export \
-i data/normalized_yaml \
-o app/data.jsResult: 10,657 recipes exported with lowercase enum values
Category:
imported: 10,353 ❌
ALGAE: 242 ❌
Medium Type:
COMPLEX: 8,203 ❌
DEFINED: 2,150 ❌
complex: 242 ❌
Physical State:
LIQUID: 10,351 ❌
liquid: 242 ❌
SOLID_AGAR: 2 ❌
Categories:
bacterial: 10,134 ✅
algae: 242 ✅
fungal: 119 ✅
specialized: 99 ✅
archaea: 63 ✅
Medium Types:
complex: 8,492 ✅
defined: 2,165 ✅
Physical States:
liquid: 10,619 ✅
solid_agar: 38 ✅
✅ No more "imported" category - All recipes properly categorized ✅ No more "ALGAE" - Now lowercase "algae" ✅ Consistent capitalization - All enum values lowercase ✅ Accurate counts - Bacterial increased from 10,072 to 10,134 (absorbed imported) ✅ Complete color scheme - All categories and types have defined colors
When you deploy the updated files, users will see:
Category Facet:
- bacterial (10,134)
- algae (242)
- fungal (119)
- specialized (99)
- archaea (63)
Medium Type Facet:
- complex (8,492)
- defined (2,165)
Physical State Facet:
- liquid (10,619)
- solid_agar (38)
All values will display with proper colors as defined in the schema.
- ✅
src/culturemech/export/browser_export.py- Convert enums to lowercase - ✅
app/schema.js- Update color scheme to lowercase keys - ✅
app/data.js- Regenerated with 10,657 recipes (lowercase values)
To see these changes on GitHub Pages:
-
Commit the updated files:
git add app/data.js app/schema.js src/culturemech/export/browser_export.py git commit -m "Fix browser facet capitalization and remove 'imported' category" -
Push to GitHub:
git push origin main
-
GitHub Pages will automatically rebuild with the new data
- ✅ 10,657 recipes with consistent lowercase enum values
- ✅ No more "imported" or capitalization inconsistencies
- ✅ All 5 organism categories properly displayed
- ✅ Complete color scheme for all enum values
- ✅ Ready for deployment to GitHub Pages