Skip to content

feat(web-standalone): show the loading overlay while a region's proven links are pulled - #122

Merged
khagele merged 1 commit into
mainfrom
loading-overlay
Sep 7, 2026
Merged

khagele merged 1 commit into
mainfrom
loading-overlay

Conversation

@khagele

@khagele khagele commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Closes #121.

Choosing a region pulls proven links for up to 14 nodes, 5 to 15 seconds, and the only sign was a status line in Step 1, off-screen on a phone since #118 scrolls to Step 2. A shared link already had the right pattern: a loading overlay with a spinner, a title and one line on what is being waited for.

Change

  • The shared-link splash is now the app's loading overlay: #loading-overlay with showLoading(title, sub) and hideLoading(token). The token ties each hide to its own show, so a stale activation finishing late cannot take down a newer one's overlay.
  • Tapping a candidate card or "Switch to this region" shows "Pulling proven links for region N…" with "Asking mc-radar which repeaters heard each other, up to 14 nodes", and hides it in the promise's finally, so a failed pull clears it too.
  • The shared-link flow uses the same calls with its old text. Class names follow the rename (loading-card, loading-sub, loading-spinner).
  • Changelog entry.

Verified

In the pane at 412 px, on the DOM and computed style (the pane's screenshots do not composite fixed overlays): hidden after discovery, shown with the region text 300 ms after tapping a card, hidden once the cluster is locked; shown by hand it is position: fixed, full viewport, z-index 5000, display: flex.

🤖 Generated with Claude Code

…n links are pulled

Choosing a region pulls proven links for up to 14 nodes, 5 to 15
seconds, and the only sign was a status line in Step 1, off-screen on a
phone since #118 scrolls to Step 2 (#121). A shared link already had the
right pattern: a loading overlay with a spinner, a title and one line on
what is being waited for.

The shared-link splash is now the app's loading overlay: #loading-overlay
with showLoading(title, sub) and hideLoading(token). The token ties each
hide to its own show, so a stale activation finishing late cannot take
down a newer one's overlay. The card click and switchToRegion() show
"Pulling proven links for region N…" and hide it in the promise's
finally, so a failed pull clears it too. The shared-link flow uses the
same calls with its old text.

Verified in the pane at 412 px: overlay hidden after discovery, shown
with the region text 300 ms after tapping a card, hidden once the
cluster is locked; shown by hand it is fixed, full-viewport, z 5000,
display flex. The pane's screenshots do not composite fixed overlays,
so the check is on the DOM and computed style.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@khagele
khagele merged commit dd0d53b into main Sep 7, 2026
2 checks passed
@khagele
khagele deleted the loading-overlay branch September 7, 2026 17:25
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.

Choosing a region gives no visible wait while proven links are pulled

1 participant