alteryx / Optimization

Alteryx Optimization Tool
GNU General Public License v3.0
0 stars 1 forks source link

Field store #10

Closed cafreeman closed 8 years ago

cafreeman commented 8 years ago

This PR includes fields/bounds UI + persistence behavior. Field types and bound info are now composed in a higher-order FieldListItem component, which is backed by a Field class. Fields are serialized to string form and backed up in the Alteryx Data Item API as a SimpleString. TheFieldStore constructor checks to if the backing data item API is empty or not, and will re-hydrate the store by deserializing the data item if it detects that data is present. Otherwise, it will create an empty instance of the store (assuming this is a new instance of the macro).