cozemble / monorepo

A data and process canvas
https://cozemble.com
Apache License 2.0
13 stars 1 forks source link

Make values in DataRecord a proper type #64

Open mike-hogan opened 1 year ago

mike-hogan commented 1 year ago

Instead of this in DataRecord:

values: { [key: string]: any }

Make the value a proper DataRecordValue type. This will open the door to extension via facets or similar. An example being colour.

Another example is from the docsndata codebase. Formulas could be disabled so a user could override the value. Whether the value was formula derived or user provided was modelled as metadata, but in a weird way because there was no clean way for a value to have metadata.