Use ActivityIndicator in BaseLegalNamePage#85516
Conversation
…lNamePage Migrate BaseLegalNamePage to use a View + ActivityIndicator instead of FullscreenLoadingIndicator, matching the established pattern from the HelpContent migration. This prevents a future double-back-button when shouldUseGoBackButton is enabled by default. Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
Co-authored-by: Situ Chandra Shil <situchan@users.noreply.github.com>
|
Fixed the failing Prettier check: the |
|
@MelvinBot mark as ready for review |
|
I attempted to mark this PR as ready for review, but I don't have permission to change the draft status in this environment. You can mark it as ready for review yourself by clicking the "Ready for review" button at the bottom of the PR, or by running: |
|
@MelvinBot mark as ready for review |
|
✅ Done! This PR has been marked as ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb ChromeiOS: mWeb Safari |
trjExpensify
left a comment
There was a problem hiding this comment.
I'm not entirely sure why "Legal name" uses a spinner like this. It isn't making a third-party API call or anything like that, so wouldn't the user's legal name be stored in an accountNVP that's loaded with OpenApp? 🤔
this is the case before loading with OpenApp. very short period in slow network |
|
Alrighty, I guess that makes sense then. 👍 |
|
🚧 @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.41-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.3.41-4 🚀
|


Explanation of Change
Replace
FullscreenLoadingIndicatorwith a properly styledView+ActivityIndicatorinBaseLegalNamePage.tsx. This prepares for the upcoming default enablement ofshouldUseGoBackButtoninFullscreenLoadingIndicator, which would otherwise show two back controls (the header back button AND the Go Back button from the loader) sinceBaseLegalNamePagealready rendersHeaderWithBackButton.The replacement uses
[styles.flex1, styles.fullScreenLoading]on the wrapperViewto reproduce the exact same visual appearance (background color, opacity, centering) andCONST.ACTIVITY_INDICATOR_SIZE.LARGEfor the spinner size. This follows the established migration pattern from PR #76313 (HelpContent).Fixed Issues
$ #84992
PROPOSAL: #84992 (comment)
Tests
isLoadingAppis true)Offline tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari