Repository navigation
[No QA] Show a spinner below the DynamicForm header and drop redundant shouldUseGoBackButton props #104053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[No QA] Show a spinner below the DynamicForm header and drop redundant shouldUseGoBackButton props #104053
Changes from all commits
9003a0a
041f4ff
c716c8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,10 +152,7 @@ function ConnectionsMergePageBase({policyID, category, cards, shouldBeBlocked}: | |
| fullPageNotFoundViewProps={{onBackButtonPress: () => Navigation.goBack(ROUTES.WORKSPACE_CONNECTIONS.getRoute(policyID))}} | ||
| > | ||
| {isFetchingConnections ? ( | ||
| <FullScreenLoadingIndicator | ||
| shouldUseGoBackButton | ||
| style={styles.flex1} | ||
| /> | ||
| <FullScreenLoadingIndicator style={styles.flex1} /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ UI-1 (docs)This Restore the prop: <FullScreenLoadingIndicator
shouldUseGoBackButton
style={styles.flex1}
/>Reviewed at: 041f4ff | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency. |
||
| ) : ( | ||
| <ConnectionsMergePageBaseContent | ||
| policyID={policyID} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,10 +74,7 @@ function ConnectionsReceiptPartnersPage({route}: ConnectionsReceiptPartnersPageP | |
| fullPageNotFoundViewProps={{onBackButtonPress: () => Navigation.goBack(ROUTES.WORKSPACE_CONNECTIONS.getRoute(policyID))}} | ||
| > | ||
| {isLoading ? ( | ||
| <FullScreenLoadingIndicator | ||
| shouldUseGoBackButton | ||
| style={styles.flex1} | ||
| /> | ||
| <FullScreenLoadingIndicator style={styles.flex1} /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ UI-1 (docs)This Restore the prop: <FullScreenLoadingIndicator
shouldUseGoBackButton
style={styles.flex1}
/>Reviewed at: 041f4ff | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency. |
||
| ) : ( | ||
| <ScreenWrapper | ||
| testID="ConnectionsReceiptPartnersPage" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ UI-1 (docs)
This
FullscreenLoadingIndicatoris returned as the sole content for the'loading'decision, with no navigation (header/back button) rendered in this branch. RemovingshouldUseGoBackButtonmeans that if loading hangs, the user has no escape route and is trapped on the screen. Since this prop is being migrated to become the default, it must be set explicitly for now.Restore the prop:
Reviewed at: 041f4ff | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc is no longer valid.
shouldUseGoBackButtonis now set to true default when omitted.@MelvinBot create followup PR to update this doc so that claude no longer reports as bug. Instead, they should catch the bug of
{shouldUseGoBackButton=false}being omitted when it doesn't make sense to go back.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 I couldn't open the follow-up PR. My environment blocks edits to files under
.claude/, so I can't change.claude/skills/app-coding-standards/rules/ui-1-correct-loading-indicator.md. An engineer needs to apply the change. The full replacement file is below.The new rule makes 3 changes:
shouldUseGoBackButton, because the prop defaults totrue(src/components/FullscreenLoadingIndicator.tsx:39). It also stops flagging removal of an explicitshouldUseGoBackButton, like the 3 comments on this PR did.FullscreenLoadingIndicatorwithoutshouldUseGoBackButton={false}when a header with a back button renders in the same tree. Otherwise the loader stacks a second "Go Back" button over the header's back button.FullScreenLoaderContext,LogOutPreviousUserPage, andValidateLoginPage. The old "correct" example that usedValidateLoginPagewithshouldUseGoBackButtonwas out of date.Proposed
ui-1-correct-loading-indicator.mdview run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MelvinBot I corrected sentence:
As FullScreenLoadingIndicator should not be used in the first place when the page already has header back button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I changed the proposed rule to match your correction:
FullscreenLoadingIndicatoritself and suggestActivityIndicator. The rule no longer offersshouldUseGoBackButton={false}as a fix for this case. This matches the current rule onmain.shouldUseGoBackButton={false}: flag a missing={false}only when it doesn't make sense to go back, such as global overlays, sign-in or sign-out transitions, and auth handoff pages.shouldUseGoBackButton, because the prop defaults totrue.I still can't edit files under
.claude/, so I couldn't open the PR. An engineer needs to replace.claude/skills/app-coding-standards/rules/ui-1-correct-loading-indicator.mdwith the file below. The={false}example isLogOutPreviousUserPage.tsx:105, which already does this onmain.Revised
ui-1-correct-loading-indicator.mdview run