-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Details
As part of the loading indicator standardization, we are preparing to enable shouldUseGoBackButton by default in FullscreenLoadingIndicator. Before that, we need to migrate components where FullscreenLoadingIndicator is used alongside visible navigation to use ActivityIndicator instead, otherwise users would see two back controls (the header back button AND the Go Back button from the loader).
VerifyAccountPageBase.tsx renders HeaderWithBackButton and FullscreenLoadingIndicator as siblings inside ScreenWrapper when isUserValidated is true (the transitional state before navigating away). The header back button is always visible during this loading state, so the user can already navigate away. FullscreenLoadingIndicator is unnecessary here and should be replaced with a plain ActivityIndicator.
This is a widely shared base component used by 15+ verify account pages across the app (wallet, travel, security, contacts, invoices, etc.), so this single migration fixes the loading pattern for all of them.
Solution
Replace FullscreenLoadingIndicator with ActivityIndicator in src/pages/settings/VerifyAccountPageBase.tsx. The loading state must be pixel-perfect identical after the change, same background color, same opacity, same centered large spinner in the content area below the header.
Before making any changes, read the FullscreenLoadingIndicator component source to understand what styles it applies internally, and make sure the replacement reproduces them exactly. ActivityIndicator is a raw spinner with no layout or background styling, so it should not be used on its own as a fullscreen loading state, the codebase convention is to wrap it in a parent View that provides the layout and background styling.
Parent issue: #69850, summary comment