earth-genome / foodtwin-global-app

Repository for our work on the global foodtwin application.
MIT License
1 stars 0 forks source link

Food group slugs contain special characters #83

Open oliverroick opened 1 month ago

oliverroick commented 1 month ago

The slugs for food groups contain special characters so they can't be used in CSS classes in the frontend.

           name           |           slug           
--------------------------+--------------------------
 Vegetable Oils           | vegetable_oils
 Meat                     | meat
 Spices                   | spices
 Pulses                   | pulses
 Fruits - Excluding Wine  | fruits_-_excluding_wine
 Fish, Seafood            | fish,_seafood
 Sweetners                | sweetners
 Starchy Roots            | starchy_roots
 Alcoholic Beverages      | alcoholic_beverages
 Animal Fats              | animal_fats
 Stimulants               | stimulants
 Treenuts                 | treenuts
 Milk - Excluding Butter  | milk_-_excluding_butter
 Vegetables               | vegetables
 Offals                   | offals
 Eggs                     | eggs
 Cereals - Excluding Beer | cereals_-_excluding_beer
 Oilcrops                 | oilcrops
 Sugar Crops              | sugar_crops
 Fruits, other            | fruits,_other

To make the slugs compatible with CSS naming conventions, I suggest to:

For example: