Repository navigation
polytag/views: renderShell, the panes of a view (S4 of #3) - #41
Merged
Merged
Conversation
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 #3. renderShell(el, model, { profile }) composes the lens's shell (single, two-pane, three-pane; inspector false drops it): a filter box (IME-safe, follows outside changes), a navigator over the model's scopes (tree, columns, facets, chips; auto follows the profile; counts; aria-current; a click goes to the scope the model gave the button), the layout, and an inspector (how many selected and how many the filter hides; up to 20 items with chips and only the fields the lens lists; one tag button per assignable tag, aria-pressed true/false/mixed, what a press does as its title; a persistent new-tag box). Mod+Z, Mod+A and Escape work from anywhere but a text field. Dependency-free and tag-agnostic; it runs the whole 12-point contract through its real controls with no pending point. Independent adversarial review: 12 findings fixed test-first.