Repository navigation
feat(recipes): a group inside a group is spaced more tightly than the gaps around it - #322
Merged
Merged
Conversation
… gaps around it forumone-2026#847. A composed section whose column heading-to-text gap is as wide as the gaps between the columns reads as an even list of lines. lintRecipe now refuses a Stack in a Stack (or a Cluster in a Cluster) whose gap is not smaller than the one around it, naming the gap to make smaller. Gaps compare by their step on the spacing scale; only the same kind is compared, since a Cluster's gap runs across and a Stack's down. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sh7Rh2zPq3etuniocxscF5
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.
forumone-2026#847. Composed sections are built by an agent choosing one Stack's gap at a time. The one mistake that choice can make on its own is breaking proximity: a column's heading and text spaced as widely as the columns themselves. The section then reads as an even list of lines.
lintRecipegainsspacing.rhythm: a layout nested in one of the same kind must use a smaller gap than the one around it. That's a Stack in a Stack, or a Cluster in a Cluster. The message names the gap to shrink and the usual value: "a heading and its text are usually spacing-2". Gaps compare by their step on the scale (the number inspacing-N), using the primitive's default when none is given. A Cluster's gap runs across and a Stack's down, so different kinds aren't compared.It's an error, so:
compose_sectionrefuses such a recipe;Tests: 4 new cases in
lint.test.ts(passes when tighter; refuses equal, wider, and wider by default). The package has 382 tests.Prettier wasn't run on
lint.tsorlint.test.ts: both had format drift before this change, and reformatting would bury the diff.🤖 Generated with Claude Code
https://claude.ai/code/session_01Sh7Rh2zPq3etuniocxscF5