The dropdown carrot icon is black on android, couldn't figure out how to fix this quickly
Make a rerender happen after form submission fails (the red warning text above the submit button is the response to form validation right before sending to DB. Not apart of the normal form control atm, but this can be fixed)
Testing
Basics have been covered on web and android, can't do ios on my devices
This PR makes a food entry form that is fully integrated with the backend, with error checking (client side).
High level design
types.ts
file has been made after chatting with @abraham-rostampoor , it is used extensively in this PREnterFoodForm
component that renders the UIuseRestaurant
anduseMenus
hooks created to fetch data and showing loading stateglobal.ts
styles have been extended to cover more scenariosFormDropdown
andFormSwitch
components made specifically for this form.db.ts
file to place DB specific functions. I made a newgenerateUid()
method, which will come in handy in the future. It guarantees uniquenessDemo
Please see slack here, file too large for github.
Future Work / Problems
Testing