noggin

View shapes

The read-side projections verbs return. ItemView is an Item enriched with computed path + sibling position; ViewNode adds children (used by tree views); CurrentTreeView is the mutating-verb return; DeletedItem is the tombstone verbs.delete reports; DeleteResult is the wrapper verbs.delete returns with descendant counts and the updated view.

ItemView

An Item enriched with computed path and 1-based sibling position.

Extends

Extended by

Properties

PropertyTypeInherited from
createdAt?stringItem.createdAt
donebooleanItem.done
keystringItem.key
notesNote[]Item.notes
parentKeystringItem.parentKey
pathstring-
positionnumber-
titlestringItem.title

ViewNode

A node in a CurrentTreeView's recursive tree.

Extends

Properties

PropertyTypeInherited from
children?ViewNode[]-
createdAt?stringItemView.createdAt
donebooleanItemView.done
keystringItemView.key
notesNote[]ItemView.notes
parentKeystringItemView.parentKey
pathstringItemView.path
positionnumberItemView.position
titlestringItemView.title

CurrentTreeView

Shape returned by every mutating verb and by verbs.show.

Properties

PropertyType
activeKeystring
activePathstring
itemsViewNode[]
targetKeystring

DeletedItem

Identifying tombstone for a deleted item.

Properties

PropertyType
keystring
pathstring
titlestring

DeleteResult

Result of verbs.delete.

Properties

PropertyType
deletedDeletedItem
descendantCountnumber
viewCurrentTreeView