phlask-map
phlask-map copied to clipboard
[V2] Update form submission for new data format
Is your feature request related to a problem? Please describe. With the new data format defined, the submission forms need to be updated to match the new schema. For instance, the address is now optional, where the address was required before.
The first part of this task is to define the new schema as a class, just so we can have some structure. Then, the existing fields in the form need to be updated to match this new type. More specifically, the code at AddResourceModalV2.jsx - line 231 is where we take the information from the add resource forms, and then submit it to our firebase DB.
Please talk to @vontell for more context. Note that this does not cover adding new information like lat/lon coordinates - that will be covered in other tickets.