feminizidmap / feminizid-mapper

🗃️ Main database app
GNU Affero General Public License v3.0
10 stars 1 forks source link

Finishing data entry wizard #53

Open lislis opened 2 years ago

lislis commented 2 years ago

This is the main interface for entering cases to the database. It is a wizard style form that allows jumping through different layers at any point. All changes are recorded locally until the first save. Main missing points are generating form fields from the new settings endpoint and saving to the server using the new internal API

lena-nahrwold commented 2 years ago

missing routes GET /cases, POST /cases

lislis commented 2 years ago

Hey! Most of what's in the frontend code of the wizard (or rather all of cases...) needs updating as the concept of cases does not exist anymore. Cases are now records and pull together information from their entities and their respective fields or attributes.

So I think what needs to happen is this:

Assuming we configured the schema to have an entity called 'Opfer' that has 'Bildungsgrad' and 'Familienstand' and another entity called 'Täter' that has 'Familienstand' and 'Vorstrafen', then going to /wizard we see a sidebar navigation that says:

I hope that makes sense!

That would be a good place to build the rest from! Then the Wizard builds itself from the configured schema! Magic :sparkles:

lislis commented 2 years ago

I'll merge the bugfix to create categories and category_items, too. so you can play with creating data schemas (which is kind of a prerequisite for this :grimacing: )