Repository navigation
Conversation
commit: |
cowboyd
force-pushed
the
tree-layout
branch
2 times, most recently
from
August 11, 2026 04:27
17c0b7b to
d0b7b1b
Compare
cowboyd
force-pushed
the
tree-layout
branch
2 times, most recently
from
August 23, 2026 17:28
a0be5b8 to
e57af45
Compare
cowboyd
force-pushed
the
tree-layout
branch
from
September 24, 2026 14:00
e57af45 to
8d6a999
Compare
Contributor
Author
|
closing out in favor of a DOM based substrate. See #37 |
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.
The Host describes what the UI contains, but it should not dictate how every element becomes terminal output. Treating layout as a middleware-extensible function allows each element type to interpret its own properties and yield
@bomb.sh/ttyoperations while recursively composing its children. This avoids maintaining separate layout state and gives third-party elements the same extension point as built-ins, regardless of which framework created them.boxandtextprovide the first concrete proof of that model. Boxes establish layout containers, text elements establish text styling scopes, and adjacent literals are collected into terminal text runs rather than manufacturing extra layout containers.This PR adds
LayoutApi, root layout behavior, and middleware implementations for typedboxandtextelements. It converts ordered Host trees into@bomb.sh/ttyoperations and updates the basic example to construct and lay out those elements manually. Tests cover nested box and text layout independently.