Skip to content

feat: add Refresh option to error screen backend failover#4

Merged
justraman merged 2 commits into
mainfrom
rs/add-refresh-option
Jun 12, 2026
Merged

feat: add Refresh option to error screen backend failover#4
justraman merged 2 commits into
mainfrom
rs/add-refresh-option

Conversation

@justraman

Copy link
Copy Markdown
Contributor

When chain resolution fails (smoldot timeout, light-client panic, worker init failure, sync timeout, etc.), the error screen previously offered a single action that is switch the backend to Trusted Providers.

This PR adds a Refresh option so users can retry the current backend without committing to a backend change, since these failures are often transient

Screenshot 2026-06-09 at 9 30 03 PM Screenshot 2026-06-09 at 9 29 57 PM

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

Warning

Bundle budget exceeded — not a blocker, but please confirm the regression is intentional.

  • protocol-iframe-entry exceeded budget: 646.6 KB > 600.0 KB (+46.6 KB) — protocol/dist/assets/index-Djs2exLj.js

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/index.js 544.8 KB (+889 B) 148.3 KB (+266 B) 176.2 KB (+323 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/previewnet.smol.json 698.3 KB 49.3 KB 128.7 KB
host/assets/smoldot_worker.js 2.92 MB 2.19 MB 2.20 MB
sandbox/assets/index.js 555.2 KB (+298 B) 152.6 KB (+11 B) 181.4 KB (+100 B)
Total 11.08 MB (+15.3 KB) 5.55 MB (+8.5 KB) (-50%) 5.97 MB (+9.5 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 986 B 986 B 986 B
host/assets/auth.js 460.7 KB 184.9 KB (+208 B) 220.9 KB
host/assets/blake2.js 10.2 KB 3.2 KB 3.7 KB
host/assets/bridge.js 5.1 KB 1.7 KB (+1 B) 1.9 KB (-1 B)
host/assets/browser.js 22.9 KB 7.6 KB 8.6 KB
host/assets/client.js 93.0 KB 27.3 KB (-38 B) 30.1 KB
host/assets/container.js 47.6 KB 11.8 KB (-2 B) 13.3 KB (-3 B)
host/assets/dist.js 24.8 KB (+4.3 KB) 7.7 KB (+2.9 KB) 8.6 KB (+3.2 KB)
host/assets/dist.js 28.8 KB (+8.2 KB) 10.0 KB (+5.2 KB) 11.1 KB (+5.7 KB)
host/assets/dist.js 20.6 KB 4.8 KB (-8 B) 5.4 KB
host/assets/dotli-debug-bus.js 495 B 495 B 495 B
host/assets/index.css 42.1 KB (+840 B) 6.6 KB (+84 B) 7.4 KB (+69 B)
host/assets/index.js 544.8 KB (+889 B) 148.3 KB (+266 B) 176.2 KB (+323 B)
host/assets/log.js 992 B 992 B 992 B
host/assets/manifest.js 22.6 KB 7.3 KB (-3 B) 8.0 KB (-2 B)
host/assets/nanoevents.js 215 B 215 B 215 B
host/assets/nova-scale.js 6.7 KB 2.6 KB 2.9 KB
host/assets/panel.js 84.9 KB 23.1 KB (-66 B) 26.3 KB (-1 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 129.4 KB 22.9 KB 31.7 KB
host/assets/previewnet.smol.json 698.3 KB 49.3 KB 128.7 KB
host/assets/resolve.js 152 B 152 B 152 B
host/assets/rolldown-runtime.js 694 B 694 B 694 B
host/assets/rpc-resolve.js 2.5 KB 1.0 KB (-2 B) 1.2 KB (-1 B)
host/assets/shared-mode.js 1.8 KB 784 B (-1 B) 878 B (-1 B)
host/assets/smoldot_worker.js 2.92 MB 2.19 MB 2.20 MB
host/assets/spans.js 1.7 KB 808 B 953 B
host/assets/src.js 1.9 KB 887 B (-4 B) 998 B (-1 B)
host/assets/styles.css 15.1 KB 3.2 KB 3.8 KB
host/assets/substrate-client.js 7.2 KB 2.7 KB (-4 B) 3.0 KB (-4 B)
host/assets/ws.js 25.8 KB 8.4 KB (-5 B) 9.1 KB (-3 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.8 KB 1.1 KB (+2 B) 1.3 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 20.1 KB 4.4 KB (-12 B) 5.4 KB (-1 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 8.7 KB 2.8 KB (-4 B) 3.2 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 B) 1.4 KB (+1 B)
sandbox/assets/index.js 555.2 KB (+298 B) 152.6 KB (+11 B) 181.4 KB (+100 B)
sandbox/assets/index.css 42.1 KB (+840 B) 6.6 KB (+84 B) 7.4 KB (+69 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 583 B (-1 B) 786 B (+1 B)
Total 11.08 MB (+15.3 KB) 5.55 MB (+8.5 KB) (-50%) 5.97 MB (+9.5 KB)

Commit: 0ac75ab

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

E2E Product suite failed on 71c2bbd5a8f759bd2bc8d271aca9d82b3ef0780b — suite did not produce results.

Failed tests:

  • (no results.json — suite likely crashed before any tests ran)

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

@BigTava BigTava 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.

Small nits. Also please update the Light client timed out - no peers found. No peers found is not the right reason and it uses em dash. Maybe it should be Light client timed out - no connection with peers`

Comment thread apps/host/src/main.ts Outdated
Comment thread apps/host/tests/functional/loading.spec.ts Outdated
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

⚡ Performance Report

Cold Start

Phase breakdown
Phase Base p50 PR p50 p50 Δ Base p95 PR p95 p95 Δ Verdict
Host total 8.90s 6.52s -2378ms (-26.7%) 9.95s 6.68s -3270ms (-32.9%) 🟢 improved
Name resolution 8.86s 6.47s -2385ms (-26.9%) 9.90s 6.64s -3262ms (-32.9%) 🟢 improved

Warm Start

Phase breakdown
Phase Base p50 PR p50 p50 Δ Base p95 PR p95 p95 Δ Verdict
Host total 11.46s 7.04s -4421ms (-38.6%) 13.79s 9.63s -4157ms (-30.1%) 🟢 improved
Name resolution 11.45s 7.03s -4416ms (-38.6%) 13.77s 9.62s -4156ms (-30.2%) 🟢 improved

Lukewarm Start (different site, same session)

Overall: 🟢 improved  |  p50: 10.35s → 8.08s (-22.0%)  |  p95: 14.10s → 12.12s (-14.0%)  |  Mann-Whitney: z=2.48 ✅ significant

Phase breakdown
Phase Base p50 PR p50 p50 Δ Base p95 PR p95 p95 Δ Verdict
End-to-end 10.35s 8.08s -2276ms (-22.0%) 14.10s 12.12s -1977ms (-14.0%) 🟢 improved
Host total 1.50s 1.13s -372ms (-24.8%) 1.52s 1.14s -374ms (-24.7%) 🟢 improved
Name resolution 1.42s 1.05s -373ms (-26.3%) 1.44s 1.06s -379ms (-26.3%) 🟢 improved
App total 8.02s 6.91s -1108ms (-13.8%) 9.91s 10.93s +1.01s (+10.2%) 🟠 uncertain

Commit: 0ac75ab  |  Outliers (>2x best) discarded before stats

@BigTava BigTava 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.

Thanks!

@justraman justraman merged commit 7962d94 into main Jun 12, 2026
11 of 12 checks passed
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