Use ActivityIndicator instead of FullscreenLoadingIndicator in OnfidoPrivacy#87586
Conversation
…ivacy OnfidoPrivacy is rendered inside OnfidoStep which has a HeaderWithBackButton. When shouldUseGoBackButton is enabled by default on FullscreenLoadingIndicator, users would see two back controls. Replace with ActivityIndicator wrapped in a View that reproduces the same layout and background styling. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
…ject Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
|
Fixed the failing check: replaced deprecated |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| <View style={[StyleSheet.absoluteFill, styles.fullScreenLoading, styles.w100]}> | ||
| <View style={styles.w100}> | ||
| <ActivityIndicator | ||
| size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE} | ||
| reasonAttributes={{ | ||
| context: 'OnfidoPrivacy', | ||
| hasAcceptedPrivacyPolicy, | ||
| isLoading, | ||
| }} | ||
| /> | ||
| </View> | ||
| </View> |
There was a problem hiding this comment.
| <View style={[StyleSheet.absoluteFill, styles.fullScreenLoading, styles.w100]}> | |
| <View style={styles.w100}> | |
| <ActivityIndicator | |
| size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE} | |
| reasonAttributes={{ | |
| context: 'OnfidoPrivacy', | |
| hasAcceptedPrivacyPolicy, | |
| isLoading, | |
| }} | |
| /> | |
| </View> | |
| </View> | |
| <View style={[StyleSheet.absoluteFill, styles.fullScreenLoading]}> | |
| <ActivityIndicator | |
| size={CONST.ACTIVITY_INDICATOR_SIZE.LARGE} | |
| reasonAttributes={{ | |
| context: 'OnfidoPrivacy', | |
| hasAcceptedPrivacyPolicy, | |
| isLoading, | |
| }} | |
| /> | |
| </View> |
There was a problem hiding this comment.
Applied! Removed the extra styles.w100 and the inner <View> wrapper. d04af71
Remove unnecessary styles.w100 and inner View wrapper per review feedback. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
|
Code Review — LGTM ✅ The replacement is functionally equivalent to
No issues found. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movweb2.mov |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@MelvinBot mark as ready for review |
|
PR has been marked as ready for review. |
|
🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.3.59-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. The change is purely technical — swapping one internal loading indicator component ( |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.59-4 🚀
|
Explanation of Change
Replace
FullscreenLoadingIndicatorwithActivityIndicator(wrapped in aViewwith identical styling) inOnfidoPrivacy.tsx. This is part of the loading indicator standardization effort —OnfidoPrivacyis rendered insideOnfidoStep, which already displays aHeaderWithBackButton. WhenshouldUseGoBackButtonis enabled by default onFullscreenLoadingIndicator, users would see two back controls. UsingActivityIndicatordirectly avoids this conflict while preserving the exact same visual output (same background color, opacity, centered large spinner).The replacement
Viewwrapper appliesStyleSheet.absoluteFillObject,styles.fullScreenLoading, andstyles.w100— the same styles thatFullscreenLoadingIndicatoruses internally.Fixed Issues
$ #85380
Tests
Offline tests
N/A — The loading state is shown while the Onfido flow initializes and requires network. No offline-specific behavior is affected by this change.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A — visual output is identical (same styles applied)
Android: mWeb Chrome
N/A — visual output is identical (same styles applied)
iOS: Native
N/A — visual output is identical (same styles applied)
iOS: mWeb Safari
N/A — visual output is identical (same styles applied)
MacOS: Chrome / Safari
N/A — visual output is identical (same styles applied)
Checks run