Repository navigation
polytag(): app.mount(el), and collectionPortOf (refs #4) - #42
Merged
Merged
Conversation
…ectionPortOf makes a seed a CollectionPort (refs #4)
…do order, declared profiles only, family and item checks, createItem limits, fieldOf for payload dates)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4. collectionPortOf(seed, { space, profile }) is a collection seed as a CollectionPort, in memory (a copy; toSeed() gives the state back): memberships are the contains edges of one space; a family rule on a parent node limits the tags per item with a message that says what to do (a group may be in several families; the family node is not a tag; a limit below 1 is an error); a declared profile adds its maxParentsPerItem; only records are tagged or deleted; reads are indexed; every write returns an opaque inverse token (revert refuses anything else); fieldOf reads a layout's field from a record's payload first. app.mount(el, { space }) draws the chosen view through renderShell over a view model over that port and returns { model, port, toSeed(), destroy() }; the app's own collection is untouched; a profile the facade only guessed is not enforced. Also fixed here: the redo of a combined undo applied its parts in the wrong order. Independent adversarial review: 13 findings fixed test-first.