Modifying entity properties
thomasboyt opened this issue · comments
UI thoughts:
- Primitives need to be turned into inputs
- Number:
<input type="number" />
- String:
<input type="text" />
- Bool:
<select><option value="true">True</option><option value="false">False</option></select>
null
: This is super tricky because it's totally unknown what they're supposed to be. I'm thinking they could just be an<input type="text" />
and autocast based on whether it's a number or string? Obviously that's not great but seems better than not letting you change it at all.
- Number:
- It should be possible to set a property to
undefined
ornull
, no matter the type.
Agent thoughts:
- Message should be some sort of path. I'm thinking:
{
name: "modify",
data: {
entityId: "<uuid>",
path: "foo.bar.baz",
value: "<value>"
}
}