Skip to content

TodoMVC emits its stylesheet: asset-valued <link> via the upstream asset:<hex> spelling - #170

Merged
lannbot merged 1 commit into
mainfrom
fix/todomvc-styling-ghpages
Sep 7, 2026
Merged

TodoMVC emits its stylesheet: asset-valued <link> via the upstream asset:<hex> spelling#170
lannbot merged 1 commit into
mainfrom
fix/todomvc-styling-ghpages

Conversation

@lannbot

@lannbot lannbot commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Fixes the unstyled TodoMVC on the Pages demo.

The bundle already shipped todomvc-app.css as a content-addressed asset and the frame already minted a blob: URL for it under the policy that only allows asset-valued <link href>. The app never emitted the <link> because stream-dom-dioxus reduced every attribute value to text (the CONTRACT comment in apps/todomvc/src/lib.rs). polymorph-components/polymorph-stream-dom#19 adds an asset:<hex> spelling for attribute values; this PR bumps the pin to that commit and emits the link.

  • Cargo.toml / deno.json pins → e35dc357 (lockfiles: only the stream-dom entries move)
  • apps/todomvc: link { rel: "stylesheet", href: STYLESHEET }; a unit test keeps the const equal to manifest.json's handle
  • e2e frame-network-dead: the blob: stylesheet load is not network, filter it; assert .todoapp is actually white
  • docs/design.md pin table note

Gates: just ci, just e2e (17/17) pass locally. Automerge armed.

…set:<hex> spelling

The Pages demo rendered unstyled: the app bundle shipped its CSS as an
asset and the frame minted a blob: URL for it, but the app never emitted
the <link> because stream-dom-dioxus had no way to spell an asset handle
in a string attribute value. polymorph-stream-dom#19 added one; bump the
pin and emit link { rel: stylesheet, href: asset:<handle> }. A unit test
pins the const to manifest.json; frame-network-dead now ignores the blob:
load and asserts the stylesheet applied.
@lannbot
lannbot enabled auto-merge September 7, 2026 23:02
@lannbot
lannbot merged commit dced76d into main Sep 7, 2026
2 checks passed
@lannbot
lannbot deleted the fix/todomvc-styling-ghpages branch September 7, 2026 23: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