Skip to content

Move catalog previews to pinned asset repository - #355

Merged
max-sixty merged 3 commits into
mainfrom
codex/generate-example-previews
Sep 6, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/generate-example-previews

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Moves the generated catalog JPEGs out of the installed Leaf payload and pins the exact max-sixty/leaf-assets commit that each checkout builds against. site.py fetches that revision into .tmp when absent, so local builds, CI, and Cloudflare Static Assets all consume the same bytes.

wt setup now prepares the asset cache alongside the browser and Worker dependencies. wt refresh-previews captures the macOS-font render, validates a complete site against it, pushes the images to the asset repository, and updates Leaf's pin and content-addressed catalog links.

Closes #176. Thanks to @leaf-agent for reporting it.

Verified with the 903-test everyday suite, the 26-test published-site browser suite, pre-commit, and the Worker's TypeScript and Vitest gates.

This was written by Codex on behalf of max-sixty

@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 pin and the catalog agree at b3a29a03 — I fetched the archive and the ten example-*.jpg digests match every /media/<hash>.jpg in docs/examples.html, so the build path this PR ships is consistent. The refresh path that produces the next pin is not: example-previews.py writes it to example-previews.lock while example_assets.py reads example-previews.json, so wt refresh-previews publishes new images and rewrites the catalog to their addresses while leaving the checkout pinned to the old commit. Details inline.

Comment thread scripts/example-previews.py Resolved
Comment thread scripts/example_assets.py Resolved
@max-sixty
max-sixty merged commit 1b428b0 into main Sep 6, 2026
13 checks passed
@max-sixty
max-sixty deleted the codex/generate-example-previews branch September 6, 2026 22:20
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.

Published catalog stills show text three examples no longer contain

2 participants