Devlog 6
Ingredient search API!
After finishing up the core pantry functionality last devlog, I had one more crucial feature to implement: a way to actually search for and add ingredients. For this, I used the OpenNutrition Foods database as it fit my needs best. I then went through and removed duplicates, branded items and more! The next step was setting up Supabase with this dataset so I could call it in the app, which took a while. After setting it up, I created the search feature in the app, styled it, and fixed A LOT of bugs. I ended up adding a category column to the dataset by synthetically generating values with Gemini as well as a popularity score column. The popularity score helps inform which ingredients appear first when searching.
I also implemented the Browse Ingredients mode that allows the user to pick specific ingredients to generate with rather than their whole pantry. I made the search from the pantry into a component and reused it here, just adding to a temporary list of Ingredients rather than to the pantry. Other than those changes, I pretty much worked on bugfixes and implementing small changes like being able to rename the pantry after creation.
Here are some screenshots of the new features!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.