Skip to content

Let a page be a sheet, and rebuild live-progress and triage-board on it - #1088

Merged
max-sixty merged 6 commits into
mainfrom
layout-showcase
Sep 24, 2026
Merged

max-sixty merged 6 commits into
mainfrom
layout-showcase

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

live-progress read as broken on leaf.page after #1014: its prose sat in the centred 720px column while its tiles and evidence grids ran across the window, so no edge lined up. This makes a page able to be a sheet, rebuilds live-progress and triage-board on it, and fixes the smaller layout defects found on the way.

The sheet

<main data-width="available"> (or "wide") makes the page one frame: every block, the title included, starts at one left edge and takes the sheet's width, while text keeps the 720px reading measure through --lf-measure. The column layout centred prose on one axis and wide exhibits on another. The sheet sits in a gutter that grows with the window (up to 64px, never narrower than the margin rail's strip, the same on both sides) and caps at --sheet-max, 1600px.

A sheet reads as one structure when its regions stand on shared vertical lines, so the examples use one set of tracks: a 2fr 1fr (or 3fr 1fr) grid of a body beside a rail, each a nested columns="1" stack.

Vocabulary

  • section.panel: a titled region of a sheet, a card with a small capitals heading in the tile label's voice, so every region is drawn alike.
  • .tag and .callout take ok, warn or danger; lf-column takes tone (the feature gallery's Done column shows ok).
  • lf-release-actions and lf-release-action declare x-measure: group, so the card fills its frame while its prose keeps the measure.
  • page-authoring.md and the lf-grid entry describe the sheet, one set of tracks, and panels.

Fixes

  • Grid width (327daf0): lf-grid defaults to wide, centred on the column, rather than available.
  • Tables in cells: a table in a grid cell, or in a section that is one, is a table again and fills the cell; as a block its rows kept their content width, and the old selector never reached a table in a section.
  • Nested grids stack: a template grid stacks by its columns attribute. The span used to reach cells as the inherited --lf-grid-stack, which every lf-grid reset on itself, so a cell that was a grid never stacked and live-progress's rail ran off a 560px window.
  • Playground copies hide their controls region and drop the written row template, so a copy's preview no longer sits under an empty track.
  • Command-hub cards put the press after the prose instead of in a 5.5rem gutter that left the prose about 130px a line.
  • Corpus: corpus.py takes a <main> with attributes and drops them, since a tab is part of the corpus's own page.

Examples

  • live-progress: status tags under the lede, tiles across the body, the pause as a warn callout beside its rollback, a chart of candidate traffic stopping at 25%, checks and the log as panels; release steps and facts in the rail.
  • triage-board: a four-column board, its blocking column in danger and needs-a-repro in warn, beside counts and a panel of recent moves.

Tests

  • The release-page test holds the body's and the rail's shared edges at 1600px, the lede within the measure, and the rail stacking under the body at 560px; with the log below the fold it checks that following the log leaves the page at its top.
  • The monitoring test matches its source passages across whatever wrapping the example uses.
  • The startup test expects the triage board's board, grid and activity modules.
  • The product test's <main> slice takes a <main> with attributes.

Local runs: widgets, gate, startup, controls, product, layer, projection, export, site, margin, navigation and interact-session files pass except test_every_base_corpus_tab_stop_has_a_visible_focus_indicator (failing on main) and test_submitting_a_reply_reveals_its_new_message (fails identically on 327daf0). Both pages pass version check --render in light and dark at 1200px and 540px.

The site's catalog stills need wt refresh-previews once this lands, since both examples' first viewports changed.

🤖 Generated with Claude Code

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

max-sixty and others added 4 commits September 23, 2026 20:16
… room

live-progress read as broken on leaf.page: its prose sat in the centred 720px column
while its status tiles and checks-beside-log grid ran from the window's left gutter to
the margin claim, so no edge lined up and the checks table stood in a third of its cell.

- lf-grid defaults to `wide` (1080px, centred on the column) rather than `available`;
  `data-width="available"` still gives a grid the whole room when the tiles are the page.
  A grid inside a workspace is unaffected: the workspace already hands it its room.
- A table in a grid cell fills the cell, as a surface does.
- The grid's block margin belongs to an authored lf-grid only. A package's box marked
  as a grid (the playground's split) sits inside its own grid, where the margin added to
  the gap.
- A playground copy hides its whole controls region and drops the written row template,
  so a copy's preview no longer sits under an empty track and gap.
- lf-operation puts its press after the prose instead of absolutely beside it, where a
  5.5rem gutter down the whole card left the prose about 130px a line.

Tests: the release-page test now holds both grids at 1080px, centred on the lede, with
the checks table filling its cell; the grid-cell test's width threshold follows the
wide width.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A page whose subject is wider than an argument can declare `<main data-width="available">`
(or "wide"). Every block, the title included, then starts at one left edge and takes the
sheet's width, while text keeps the 720px reading measure. The column layout centred
prose on one axis and wide exhibits on another, so a title sat half-way across the page
from the board beneath it.

- The sheet sits in a gutter that grows with the window (up to 64px, never narrower than
  the margin rail's strip, the same on both sides) and caps at --sheet-max, 1600px.
- A table in a grid cell is a table again (display: table) and fills the cell; as a block
  its rows kept their content width. The old selector never reached a table in a section.
- triage-board: a four-column board beside counts and recent moves (lf-activity).
- live-progress: tiles across the sheet, the pause and rollback beside the release steps,
  checks beside the run log, and the release facts beside its disclosures.
- page-authoring.md and the lf-grid entry describe the sheet; corpus.py takes a <main>
  with attributes and drops them, since a tab is part of the corpus's own page.

Tests: the release-page test now asserts one left edge across lede and grids, grids at
the sheet's width, and the lede within the measure. The monitoring test matches its
source passages across whatever wrapping the example uses.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
live-progress still read as a jumble after it became a sheet. Measured at 1440px, each
row was its own grid and split the page somewhere new: the tiles at quarters, the
decision at 3fr/2fr (838px), the evidence at halves (708px), the release at 1fr/2fr
(492px). And each region wore a different surface: raised tiles, a tinted callout, a
bordered action card stopped at the 720px measure, a bare table, a bordered log, tinted
disclosure bars.

- live-progress is one `2fr 1fr` grid, a body beside a rail, each a nested `columns="1"`
  stack. Every body block shares the body's two edges and every rail panel the rail's.
- triage-board's rail is a stack of its counts and a panel of recent moves.
- `section.panel` is a new idiom: a card with a small capitals heading in the tile
  label's voice, so every region of a dashboard is drawn alike.
- lf-release-actions and lf-release-action declare x-measure "group", so the card fills
  its frame while its prose keeps the measure.
- A template grid now stacks by its `columns` attribute. The span used to reach cells as
  the inherited --lf-grid-stack, which every lf-grid reset on itself, so a cell that was
  a grid never stacked: live-progress's rail ran off a 560px window.
- page-authoring.md says a sheet takes one set of tracks and draws regions as panels.

Tests: the release-page test holds the body's and the rail's shared edges at 1600px
and the rail stacking under the body at 560px; with the log now below the fold, it
checks that following the log leaves the page at its top. The product test's <main>
slice takes a <main> with attributes.

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

The two-track sheets read in order but quietly: every region drew in the same neutral
field, so the page's one status (paused, failing, blocking) had to be read in the prose.

- `.tag` and `.callout` take `ok`, `warn` or `danger`, the page's three status tones. A
  callout's tint and title take the tone; its prose stays in the body's ink.
- lf-column takes `tone`: the column's field takes the tint and its heading the ink, so a
  blocking column reads as such before a card in it is read.
- live-progress: a row of status tags under the lede, the pause as a warn callout, deltas
  on the checks and latency tiles, and a chart of candidate traffic stopping at 25%.
- triage-board: the blocking column in danger and the needs-a-repro column in warn.

Tests: the monitoring test's checks-tile passage follows the tile's new delta.

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 new status-tone guidance is duplicated in both registry entries. Since agents read these descriptions as authoring instructions, remove the repeated sentence in each entry.

Comment thread skills/leaf/assets/registry.json Resolved
Comment thread skills/leaf/assets/registry.json Resolved
max-sixty and others added 2 commits September 23, 2026 22:28
Every declared enum value stands in an example; the gallery's Done column now carries
tone="ok".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A second edit appended the tone sentence to the tag and callout descriptions again.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit e552453 into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the layout-showcase branch September 24, 2026 06:09
max-sixty added a commit that referenced this pull request Sep 24, 2026
Pages now take one of three forms — a document, a sheet, or a workspace
— and a workspace is a sheet whose regions are held in view, rather than
a separate layout mode. This branch carries the follow-ups from landing
the sheet (#1088): the contract and its validation, a render gate that
checks every width, a shared surface vocabulary, stacking by track, the
Threads panel on sheets, and seven examples rebuilt plus a new workspace
example.

## Approach

- **Workspace is a sheet.** A page whose only block is an `lf-workspace`
declares `<main data-width="available">`; the sheet rule supplies its
width, gutters and comment-rail room, and the workspace rules only hold
it to the viewport. `version check` refuses a lone workspace on a column
page (`validation/markup.py`, wired in `validation/source.py`). The
per-root copy of the width rules in `packages/default/theme.css` is
gone.
- **Render gate.** `version check --render` sweeps widths 360–1200px in
40px steps (widest first, two frames each), not only 1200 and 540, and
adds an advice channel for grids whose splits don't share lines
(`render-checks/layout.js`, `render_gate/`). The sweep found four real
overflows, fixed here.
- **Stacking by track.** `lf-grid` paints `data-lf-grid-scale` and a
`minmax(0, Nfr)` template; the theme stacks a grid where its narrowest
track would fall below 16rem. The playground split and swipe deck use
the same 51rem breakpoint instead of their own.
- **Surfaces.** `section.panel`, `.tag`/`.callout` tones
(ok/warn/danger), board column dots and counts, and a larger sheet
title. Member containers default to `x-measure: group`
(`runtime/presentation.js`), so widgets on a sheet are no longer capped
at the text measure.
- **Threads on a sheet.** The open Threads panel takes a right
body-border strip instead of covering the rail
(`runtime/chrome-layout.js`), and bootstrap restores it on first paint
so a reload doesn't reflow.
- **Margin preview.** The transcript scroller in the margin preview is
fixed (`chrome.css`, `margin-projection.js`).
- **Guide.** `references/page-authoring.md` "Composing a page" is
rewritten around the three forms.

## Examples

Rebuilt as sheets: live-progress, triage-board, command-hub,
pr-walkthrough, ideas-to-implement, code-comparison, data-explorer,
notification-playground; wt-merge declares the sheet. New:
`alert-review`, a public workspace example. Catalog stills are
refreshed.

## Tests

Tests that asserted the old root-workspace shape now pass
`width="available"`; new coverage for the sheet requirement and the
live-progress tracks. A local full run showed the branch's failures only
in tests that also fail on main or pass alone; those are being handled
separately.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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