Skip to content

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

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

feat: wire smoldot lifecycle events to the loading bar#146
BigTava wants to merge 39 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.4.1 ⏵ 3.4.1-dev-20260813.0100 +11001009670

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/previewnet.smol.json 547.1 KB 92.2 KB 101.2 KB
host/assets/smoldot.js 3.07 MB (+16.7 KB) 2.28 MB (+12.9 KB) 2.29 MB (+11.7 KB)
host/assets/smoldot_worker.js 3.03 MB (+14.2 KB) 2.27 MB (+10.7 KB) 2.28 MB (+10.7 KB)
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
Total 19.92 MB (+54.8 KB) 12.83 MB (+29.9 KB) (-36%) 13.37 MB (+30.0 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 1.0 KB 1.0 KB 1.0 KB
host/.well-known/assetlinks.json 2.1 KB 343 B 427 B
host/assets/bridge.js 69.4 KB (-58 B) 19.1 KB (+54 B) 22.0 KB (+123 B)
host/assets/browser.js 22.9 KB 7.6 KB (+33 B) 8.6 KB (-1 B)
host/assets/client.js 100.1 KB 29.4 KB (-94 B) 32.4 KB (-16 B)
host/assets/dist.js 39.0 KB (-1 B) 12.9 KB (-37 B) 14.6 KB (+5 B)
host/assets/dotli-debug-bus.js 710 B 710 B 710 B
host/assets/get-sync-provider.js 2.8 KB 1.1 KB (-1 B) 1.2 KB (-2 B)
host/assets/hex.js 154 B 154 B 154 B
host/assets/index.js 211.5 KB (+9.3 KB) 53.7 KB (+3.0 KB) 64.2 KB (+3.6 KB)
host/assets/index.css 50.4 KB (+2.4 KB) 8.0 KB (+443 B) 9.0 KB (+548 B)
host/assets/manifest.js 22.6 KB 7.2 KB (-8 B) 8.0 KB (-7 B)
host/assets/panel.js 76.2 KB 20.6 KB (+24 B) 23.2 KB (+10 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 23.4 KB 5.4 KB 6.2 KB
host/assets/previewnet.smol.json 547.1 KB 92.2 KB 101.2 KB
host/assets/resolve.js 156 B 156 B 156 B
host/assets/rpc-resolve.js 2.5 KB 1.0 KB (-2 B) 1.2 KB
host/assets/smoldot.js 3.07 MB (+16.7 KB) 2.28 MB (+12.9 KB) 2.29 MB (+11.7 KB)
host/assets/smoldot_worker.js 3.03 MB (+14.2 KB) 2.27 MB (+10.7 KB) 2.28 MB (+10.7 KB)
host/assets/spans.js 2.6 KB (-34 B) 1.1 KB (-15 B) 1.3 KB (-22 B)
host/assets/src.js 1.8 KB 857 B (+3 B) 945 B (-1 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.8 KB
host/assets/wasm/web/README.md 11.9 KB 11.9 KB 11.9 KB
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 8.1 KB 8.1 KB 8.1 KB
host/assets/wasm/web/truapi_server.js 38.2 KB 6.6 KB 7.6 KB
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 3.0 KB 3.0 KB 3.0 KB
host/assets/web.js 13.3 KB 3.6 KB (-3 B) 4.0 KB (-2 B)
host/assets/worker-runtime.js 6.4 KB (+6.3 KB) 1.7 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 7.5 KB (+11 B) 8.2 KB (-1 B)
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.7 KB 1.1 KB (-3 B) 1.2 KB (-1 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 26.1 KB (+1.8 KB) 5.0 KB (+260 B) 6.1 KB (+308 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.7 KB 3.1 KB (-6 B) 3.6 KB (-1 B)
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB 1.4 KB (-1 B)
sandbox/assets/index.css 50.4 KB (+2.4 KB) 8.0 KB (+443 B) 9.0 KB (+548 B)
sandbox/assets/index.js 122.3 KB (+1.9 KB) 34.9 KB (+681 B) 41.1 KB (+814 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 581 B (+2 B) 786 B (+1 B)
Total 19.92 MB (+54.8 KB) 12.83 MB (+29.9 KB) (-36%) 13.37 MB (+30.0 KB)

Commit: 403afcb

@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 11, 2026 12:47 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 12, 2026 13:17 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 13, 2026 20:06 — with GitHub Actions Active
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

E2E Product suite failed on 2a10ae87bf87a8c9ded5c6e87c6ffb4f6c708b5b — 37 passed, 8 failed, 17 skipped.

Failed tests:

  • Get Product Account
  • Product Signer
  • Product Account Alias
  • Bulletin Allowance
  • All Allowances
  • As a product user, I can navigate within the current product
  • Query Balance
  • Sign Raw Message

Logs: https://github.com/paritytech/dotli-community/actions/runs/32163367333
Artifacts: e2e-product-results (uploaded above) — open the failed test's trace.zip with npx playwright show-trace.

# Conflicts:
#	apps/host/src/main.ts
#	bun.lock
#	package.json
@BigTava
BigTava deployed to testnet.li August 17, 2026 16:54 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 17, 2026 17:07 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 18, 2026 17:02 — with GitHub Actions Active
@BigTava
BigTava deployed to testnet.li August 18, 2026 17:24 — 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