problem
The Nutrition Calculator was hard-coded and involved a lot of spreadsheet work to get updated information or new products into the file. It was also very inflexible when it came to introducing new products and portions, and was an involved process that took too much time.
research
I looked into what would make future updates easier. Messing with a bunch of spreadsheets and updating a JavaScript file every time something changes would be a nightmare for anyone, but updating a single row in a database could be done quickly and easily.
process
For each "style" of food, portions can vary – people who get a burrito expect more of each item in it than if they had gotten a taco – so calculating the right portions for each style was the main focus. After getting the code right, the Nutrition Calculator page itself got a slight refresh.