HomePhabricator

[Cashtab] Show a splash screen while ChronikClient loads

Description

[Cashtab] Show a splash screen while ChronikClient loads

Summary:
ChronikClient loads async now as we are getting the fastest server for each user. This is not handled in the App, so we get what looks like a "white screen of death" for ~1s while the process completes.

Handle with a splash screen.

We could (potentially) eliminate this altogether, e.g. by storing the best server in app storage, always loading with that one first, then checking in the background. But, because the app already takes a couple of seconds to unlock the screen (while latest utxo set loads), this is an acceptable solution. Even if we do not show a splash screen, the spinner time on the other screen would be that much longer.

Test Plan:
npm test, this is deployed at cashtab.io

verify we see the splashscreen instead of a white screen

imo testing this component directly would be overkill, it's about the change in user experience.

splashscreen (replacing blank white screen):

image.png (706×318 px, 8 KB)

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18188

Details

Provenance
bytesofmanAuthored on Jun 2 2025, 17:02
bytesofmanPushed on Jun 2 2025, 22:36
Reviewer
Restricted Project
Differential Revision
D18188: [Cashtab] Show a splash screen while ChronikClient loads
Parents
rABC19f76dd64af5: [chronik] Electrum: implement the blockchain.relayfee endpoint
Branches
Unknown
Tags
Unknown