hexus / pragma

Declarative form builder
3 stars 1 forks source link

Duplication #1

Closed hexus closed 5 years ago

hexus commented 5 years ago

There's a lot of duplicated markup and some amounts of duplicated JavaScript.

hexus commented 5 years ago

Via imports would be cleaner for re-use.

hexus commented 5 years ago

The "one source of truth" should be the model class design and lists for copying from sheet to model and vice versa. They would be very much like a complete version of the propagation map, except each could likely be a flat list of paths.

To serve multiple purposes, there could even be a dictionary of properties, keyed by paths with details about each one: name/description, min/max, derivation, etc. It would be like some kind of JSON schema.

A propagation map could even be derived from such a dictionary.

hexus commented 5 years ago

See #2. Would all of those maps potentially make this character sheet potentially logicless?!

hexus commented 5 years ago

This is being mitigated by pivoting the solution to dynamic form building. See #2 for a rough description.