Skip to content

Commit fff16e6

Browse files
committed
Diversify examples and add full-page gallery
Replace overlapping examples with nine distinct scenarios that exercise the widget vocabulary and make each page useful as a complete composition. Publish a visual index whose previews link to standalone pages. Keep the combined page as an internal corpus, and add deterministic preview generation and freshness checks so the catalog stays synchronized.
1 parent 13a9fc9 commit fff16e6

63 files changed

Lines changed: 2504 additions & 3805 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
# The vendored bundles are upstream's bytes, re-fetched by scripts/vendor-*.sh; a
77
# formatted copy conflicts on the next fetch.
88
#
9-
# examples/gallery.html is generated by scripts/gallery.py out of the sibling examples,
9+
# examples/corpus.html is generated by scripts/corpus.py out of the sibling examples,
1010
# and a hook editing it puts the two out of step until someone reruns the script. It is
1111
# stated here rather than on each hook because the rule is the file's: prettier reflowed
1212
# the wrapper, typos corrected a word inside an embedded example, and trailing-whitespace
1313
# would strip the single space that is a blank context line in a diff. A spelling or
1414
# whitespace hook reads as too small to break anything, which is exactly why the
1515
# per-hook form kept missing one. The right order for a change to the corpus is the
16-
# hooks first, gallery.py last.
17-
exclude: ^(skills/leaf/(assets/vendor|packages/.*/vendor)/|examples/gallery\.html$)
16+
# hooks first, corpus.py last.
17+
exclude: ^(skills/leaf/(assets/vendor|packages/.*/vendor)/|examples/corpus\.html$)
1818

1919
repos:
2020
- repo: https://github.com/pre-commit/pre-commit-hooks

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@ contract.
6161
## Examples
6262

6363
[`examples/`](examples/) holds a complete page for each kind of work, including a
64-
dashboard meant to change as work finishes. They are live at
65-
<https://leaf.page/examples.html>, and `gallery.html` puts them on one page as tabs.
64+
dashboard meant to change as work finishes. They are live in the visual index at
65+
<https://leaf.page/examples.html>; every example opens as its own complete page.
66+
From a checkout, `scripts/site.py --serve` previews that catalog and all its routes;
67+
`scripts/preview.py triage-board` serves one page with the real agent loop behind it.

‎TODO.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ the relevant design note or in git history.
77

88
- **Cover every focus indicator.** Extend
99
`test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus` so accent
10-
`box-shadow` focus rings take part in its geometry sweep. Recheck `gallery` and
10+
`box-shadow` focus rings take part in its geometry sweep. Recheck `corpus` and
1111
`ship-review` at the bottom of the viewport, then fix any clipping the wider sweep
1212
reports.
1313

‎docs/example-command-hub.jpg‎

58.3 KB
Loading

‎docs/example-design-decision.jpg‎

49.6 KB
Loading

‎docs/example-heat-loss.jpg‎

52.1 KB
Loading

‎docs/example-live-progress.jpg‎

48.9 KB
Loading

‎docs/example-postmortem.jpg‎

55.9 KB
Loading

‎docs/example-pr-walkthrough.jpg‎

46.5 KB
Loading

‎docs/example-previews.json‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"inputs_sha256": "00101a033b8c19955dc195e107d159ff5cec5a51937bfd7b3330003cee1c5c39",
3+
"previews": {
4+
"command-hub": {
5+
"file": "example-command-hub.jpg",
6+
"sha256": "4ee179fe19a015bc0d21dc914f5372db2ad62907100a8dd4d98c9324235ad629",
7+
"width": 896,
8+
"height": 560
9+
},
10+
"design-decision": {
11+
"file": "example-design-decision.jpg",
12+
"sha256": "25d5def4cb727464ce603baeaf310cb913dc08dba12baeddf510404b31b797a0",
13+
"width": 896,
14+
"height": 560
15+
},
16+
"heat-loss": {
17+
"file": "example-heat-loss.jpg",
18+
"sha256": "568291ebcecd827cb8e9638342d8c393e24223b9ea720c920b214be0b4926e36",
19+
"width": 896,
20+
"height": 560
21+
},
22+
"live-progress": {
23+
"file": "example-live-progress.jpg",
24+
"sha256": "9e0ce4ecf4a0bb6deb6f9ebcd85427a5db6af6577952835011e3ef054c0c45d0",
25+
"width": 896,
26+
"height": 560
27+
},
28+
"postmortem": {
29+
"file": "example-postmortem.jpg",
30+
"sha256": "7571973a6f4df7a882a6c1c5a629f45f5eededcbf8fece1d598a22476f81eddd",
31+
"width": 896,
32+
"height": 560
33+
},
34+
"pr-walkthrough": {
35+
"file": "example-pr-walkthrough.jpg",
36+
"sha256": "d19195b7797e1830d102568645278e53031107de94d76c2d3a416065565a0e19",
37+
"width": 896,
38+
"height": 560
39+
},
40+
"release-notes": {
41+
"file": "example-release-notes.jpg",
42+
"sha256": "cf7613f34dde730dc23b5952d53af69df45878746ca598a8878c3149b5f6eb87",
43+
"width": 896,
44+
"height": 560
45+
},
46+
"ship-review": {
47+
"file": "example-ship-review.jpg",
48+
"sha256": "30012d3daf5af6f3a7f9ee3151a1e4a1f5db507450f7b763dffe161721899a3c",
49+
"width": 896,
50+
"height": 560
51+
},
52+
"triage-board": {
53+
"file": "example-triage-board.jpg",
54+
"sha256": "dff52ef12f77aa58881ff87184a49db517fac0bb6e7d986fb844d3a8c7ad5bac",
55+
"width": 896,
56+
"height": 560
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)