Skip to content

Teach the Layouts as three page shapes and two box arrangements - #1438

Merged
max-sixty merged 2 commits into
mainfrom
layout-survey
Sep 29, 2026
Merged

max-sixty merged 2 commits into
mainfrom
layout-survey

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The five Layout classes are two kinds of thing: three page shapes that go on main (layout-column, layout-wide, layout-workspace) and two arrangements of a box's children (layout-sidebar, layout-tiles), which also widen main when put there. layouts.css already works this way, but the site and the guide didn't say so, and the site said several things that were wrong.

Site (docs/how-it-works.html, Layout tab). The figure's middle panel showed layout-sidebar as "a wide page" and layout-wide appeared nowhere; it now draws main.layout-wide, and a new paragraph says sidebar and tiles arrange any box. The column page no longer "declares nothing" (every such page declares layout-column, and a main without a class is unarranged). The sidebar section no longer puts the status column last: since #1363 the track is the aside wherever it is written.

Guide (page-authoring.md). The Layout table is split into the three page shapes and the two arrangements. It had said every Layout goes on any block; layout-wide and layout-workspace act only on main.

TODO.md. The workspace columns setting is dropped: each page's pane grid is its own CSS, and the one number it shares with the Layout (720px) is already refused by page check --render when it drifts. The bullet's other half, the feature gallery's copy of the pane-scrolling rules, needs layout-workspace to work on a block, and the bullet now says what that takes.

Checks. The layout guidance cases (page-arrangement-uses-layouts, queue-is-a-side-list, sidebar-page-at-900px, sidebar-track-is-its-aside, workspace-header-is-one-row, workspace-stacks-where-the-layout-flows) score 3 of 3 each, against 2 of 3 on two of them at the base. uv run pytest tests --nightly-changed-since main passes (1443). The Layout tab renders clean under page check --render.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

The site's Layout tab showed `layout-sidebar` as "a wide page", left
`layout-wide` out, said a prose page declares nothing, and put a
sidebar's status column last, which #1363 changed to the `aside`
wherever it is written. The tab now shows the three page shapes on
`main` (column, wide, workspace) and says `layout-sidebar` and
`layout-tiles` arrange any box and widen `main`. The page-authoring
guide's Layout table is split the same way, and no longer says every
Layout works on any block: `layout-wide` and `layout-workspace` only
act on `main`.

TODO.md drops the workspace columns setting: each page's pane grid is
its own CSS, and the one number it shares with the Layout (720px) is
checked by `page check --render`. What the bullet also named, the
feature gallery's copy of the pane-scrolling rules, needs the workspace
Layout to work on a block, which it now states.

The layout guidance cases score 3 of 3 on every case, against 2 of 3
on two of them at the base.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint check fails because the pinned Prettier hook reformats the five new SVG <rect> elements in the wide-page figure. Applying pre-commit run prettier --files docs/how-it-works.html and committing its edits clears this formatting failure.

Comment thread docs/how-it-works.html Resolved
@max-sixty
max-sixty merged commit 4de9cbc into main Sep 29, 2026
6 checks passed
@max-sixty
max-sixty deleted the layout-survey branch September 29, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants