Problems:
Ideas:
register a handler for a message type
crut - crut instance (includes spec for record - has type
and isRoot
/ isUpdate
)
type - the type of the record being changed/created
details - Fields (that match the recordId) filled in with proposed changes
takes submission id, calls back with submission record
for when we want to see what would happen if you applied the edit.
- algorithm
- 1. read the current record state
- 2. "predict" the record state if this submission was applied
- 3. highlight diff (changing fields)
โโโโ- 1. The recordId is null
โโโโ- 2. "predict" what the new thing would look like
โโโโ- 3. Wouldn't highlight diff
Register handler pseudocode
Simple:
RegisterHandler
Expect errors:
Complex: