Skip to content

feat: wire smoldot lifecycle events to the loading bar - #146

Open
BigTava wants to merge 25 commits into
mainfrom
feat/smoldot-lifecycle
Open

feat: wire smoldot lifecycle events to the loading bar#146
BigTava wants to merge 25 commits into
mainfrom
feat/smoldot-lifecycle

Conversation

@BigTava

@BigTava BigTava commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Subscribe to smoldot's new lifecycle_unstable_follow JSON-RPC method and sample system_health on the chains the loading screen shows, reading both back through the chain tap so polkadot-api never sees our traffic.
  • Expose one onChainSync stream carrying sync milestones and peer counts, keyed by logical chain, and forward it to the host shell through the protocol client's origin- and source-gated listener.
  • Advance the loading bar on real signals instead of scraping log prose, and show a live peer count under the headline while the Asset Hub syncs, with honest stall and recovery copy in a theme-aware detail line.
  • Pin the smoldot dependency to the 3.3.3-dev-20260805.0 dev release that ships the feature (light-base: add lifecycle_unstable_follow RPC subscription smoldot#3317). The stable bump is tracked in Bump smoldot to stable 3.3.3 once it is released #147 and blocks the next release.

Follow-ups: #148 (typed tap primitives), #149 (SharedWorker forwarding), #150 (loading-screen accessibility).

Note: the E2E suite fails identically on this branch and on its merge-base (32 failed, 30 did not run, all at waitForHostPlaygroundFrame), so it is a pre-existing signer-bot pairing failure rather than a regression here.

@socket-security

socket-security Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedsmoldot@​3.3.2 ⏵ 3.4.1-dev-20260811.01001001009570

View full report

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

⚡ Performance Report

⚠️ No baseline found on main. This PR's results are recorded but cannot be compared.
Merge to main to establish a baseline.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/smoldot.js 3.07 MB (+86.9 KB) 2.28 MB (+63.2 KB) 2.29 MB (+64.7 KB)
host/assets/smoldot_worker.js 3.03 MB (+84.3 KB) 2.27 MB (+63.1 KB) 2.28 MB (+63.5 KB)
host/assets/wasm/web/truapi_server_bg.wasm 2.01 MB 627.5 KB 830.0 KB
Total 14.48 MB (+150.8 KB) 8.10 MB (+119.7 KB) (-44%) 8.59 MB (+120.6 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 738 B 738 B 738 B
host/.well-known/assetlinks.json 1.3 KB 317 B 391 B
host/assets/bridge.js 69.0 KB 18.9 KB (+17 B) 21.7 KB (+10 B)
host/assets/browser.js 22.9 KB 7.6 KB (+37 B) 8.6 KB
host/assets/client.js 100.1 KB (-32 B) 29.5 KB (+99 B) 32.4 KB (+13 B)
host/assets/dist.js 1.1 KB (-37.9 KB) 588 B (-12.3 KB) 652 B (-13.9 KB)
host/assets/dist.js 37.5 KB (-1.5 KB) 12.4 KB (-469 B) 14.0 KB (-543 B)
host/assets/dotli-debug-bus.js 710 B 710 B 710 B
host/assets/errors.js 862 B 862 B 862 B
host/assets/get-sync-provider.js 2.8 KB 1.1 KB (-4 B) 1.2 KB
host/assets/hex.js 154 B 154 B 154 B
host/assets/index.js 197.6 KB (+7.5 KB) 50.1 KB (+2.5 KB) 59.8 KB (+2.9 KB)
host/assets/index.css 47.0 KB (+672 B) 7.5 KB (+184 B) 8.4 KB (+226 B)
host/assets/manifest.js 22.6 KB (+66 B) 7.2 KB (-8 B) 8.0 KB (+20 B)
host/assets/panel.js 76.2 KB 20.6 KB (+4 B) 23.2 KB (-2 B)
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/paseo.smol.json 22.3 KB 5.1 KB 5.9 KB
host/assets/previewnet.smol.json 179.0 KB 13.8 KB 34.0 KB
host/assets/resolve.js 156 B 156 B 156 B
host/assets/rpc-resolve.js 2.4 KB 1.0 KB (-4 B) 1.2 KB (-1 B)
host/assets/smoldot.js 3.07 MB (+86.9 KB) 2.28 MB (+63.2 KB) 2.29 MB (+64.7 KB)
host/assets/smoldot_worker.js 3.03 MB (+84.3 KB) 2.27 MB (+63.1 KB) 2.28 MB (+63.5 KB)
host/assets/spans.js 2.5 KB (-29 B) 1.1 KB (-18 B) 1.3 KB (-20 B)
host/assets/src.js 1.9 KB (+37 B) 853 B (-7 B) 952 B (+8 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.8 KB
host/assets/wasm/web/README.md 11.5 KB 11.5 KB 11.5 KB
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 6.9 KB 6.9 KB 6.9 KB
host/assets/wasm/web/truapi_server.js 35.6 KB 6.2 KB 7.2 KB
host/assets/wasm/web/truapi_server_bg.wasm 2.01 MB 627.5 KB 830.0 KB
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 2.5 KB 2.5 KB 2.5 KB
host/assets/web.js 13.2 KB 3.5 KB (+2 B) 4.0 KB (+3 B)
host/assets/worker-runtime.js 6.3 KB (+6.2 KB) 1.6 KB (+1.5 KB) 1.8 KB (+1.7 KB)
host/assets/worker-runtime.js 106 B 106 B 106 B
host/assets/ws.js 23.1 KB (+23 B) 7.5 KB (+17 B) 8.2 KB
host/dotli.png 11.5 KB 11.5 KB 11.5 KB
host/favicon.svg 1.8 KB 1.8 KB 1.8 KB
host/host-sw.js 2.8 KB (+94 B) 1.1 KB (+28 B) 1.3 KB (+20 B)
host/icon-192.png 12.5 KB 12.5 KB 12.5 KB
host/icon-512.png 42.8 KB 42.8 KB 42.8 KB
host/index.html 22.2 KB (+2.3 KB) 4.8 KB (+448 B) 6.0 KB (+606 B)
host/manifest.webmanifest 441 B 441 B 441 B
host/workbox.js 14.8 KB 4.6 KB 5.1 KB
sandbox/app-sw.js 9.6 KB 3.1 KB (+6 B) 3.5 KB
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB (-1 B) 1.4 KB (-1 B)
sandbox/assets/index.js 118.6 KB (+634 B) 33.9 KB (+299 B) 39.9 KB (+260 B)
sandbox/assets/index.css 47.0 KB (+672 B) 7.5 KB (+184 B) 8.4 KB (+226 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 583 B (+2 B) 787 B (+1 B)
Total 14.48 MB (+150.8 KB) 8.10 MB (+119.7 KB) (-44%) 8.59 MB (+120.6 KB)

Commit: 56a2849

@BigTava BigTava self-assigned this Aug 5, 2026
…a system_health polling and widened lifecycle events
…e debug log stream, poll only the Asset Hub, and address the loading review feedback
…d report only on the chains the loading screen shows
@BigTava
BigTava deployed to testnet.li August 7, 2026 16:11 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 11, 2026 11:14 — with GitHub Actions Active
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

⚠️ E2E Product suite skipped — Nova signing bot is unavailable.

This is a Nova-side outage and not a dot.li test failure. Re-run
from the Actions tab once the bot recovers.

Logs: https://github.com/paritytech/dotli-community/actions/runs/31492787841

@BigTava
BigTava deployed to testnet.li August 11, 2026 11:34 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 11, 2026 12:12 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 11, 2026 12:26 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 11, 2026 12:47 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants