Skip to content

[$250] Use correct loading indicator in HelpContent component #75537

Closed

Description

@mateuuszzzzz

Details

HelpContent uses FullscreenLoadingIndicator, but it is not necessarily rendered fullscreen. With our recent changes to FullscreenLoadingIndicator which now renders a back button after 10 seconds to provide a recovery path in case of infinite loading, using this component on non-fullscreen pages could lead to a confusing UI, since those pages either aren’t fullscreen or already have their own navigation options. That’s why the Back Button feature is currently disabled by default.

We should change the component to ActivityIndicator while keeping the current design.

List of components to change:

  • src/components/SidePanel/HelpComponents/HelpContent.tsx

Parent issue: #69850, summary comment

Example of the FullscreenLoadingIndicator component:

Image
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021993086319162226622
  • Upwork Job ID: 1993086319162226622
  • Last Price Increase: 2025-11-24
Issue OwnerCurrent Issue Owner: @Pujan92

Activity

  1. abbasifaizan70 commented on Nov 19, 2025

    @abbasifaizan70
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    The HelpContent component uses FullscreenLoadingIndicator to display a loading state, but this component is not necessarily rendered in a fullscreen context. With recent changes to FullscreenLoadingIndicator which now renders a back button after 10 seconds to provide a recovery path in case of infinite loading, using this component on non-fullscreen pages could lead to a confusing UI, since those pages either aren't fullscreen or already have their own navigation options. That's why the Back Button feature is currently disabled by default.

    The HelpContent component is rendered in a side panel context (not fullscreen), so using FullscreenLoadingIndicator is semantically incorrect and could cause UI confusion if the back button feature is ever enabled.

    What is the root cause of that problem?

    The FullscreenLoadingIndicator component at src/components/FullscreenLoadingIndicator.tsx is designed for fullscreen contexts and includes:

    1. StyleSheet.absoluteFillObject positioning to fill the entire screen (line 55)
    2. A back button feature that can appear after 10 seconds (disabled by default via shouldUseGoBackButton prop) (lines 43-52)
    3. Fullscreen-specific styling with styles.fullScreenLoading (backgroundColor, opacity, zIndex, etc.) (line 55)

    The HelpContent component at src/components/SidePanel/HelpComponents/HelpContent.tsx:130 uses this component, but it's rendered in a side panel context, not a fullscreen page. This creates a semantic mismatch where a fullscreen component is being used in a non-fullscreen context.

    What changes do you think we should make in order to solve the problem?

    Replace FullscreenLoadingIndicator with ActivityIndicator wrapped in a container that maintains the same visual design. This ensures:

    1. The loading indicator is semantically appropriate for a non-fullscreen context
    2. No risk of the back button appearing inappropriately
    3. The visual appearance remains the same

    File: src/components/SidePanel/HelpComponents/HelpContent.tsx

    1. Update imports (lines 4-5):

      • Remove the import for FullScreenLoadingIndicator (line 4)
      • Add imports for ActivityIndicator and View from react-native
      • Ensure CONST is imported (it already is at line 20)
    2. Replace the loading indicator (line 130):

      • Replace the FullScreenLoadingIndicator component with a View container that wraps an ActivityIndicator
      • Apply the same styles (styles.flex1, styles.pRelative, styles.fullScreenLoading, styles.w100) to maintain the same visual appearance
      • Use CONST.ACTIVITY_INDICATOR_SIZE.LARGE for the ActivityIndicator size to match the default size used by FullscreenLoadingIndicator (which uses CONST.ACTIVITY_INDICATOR_SIZE.LARGE at src/components/FullscreenLoadingIndicator.tsx:34)

    This maintains the same visual appearance by using the same styling (fullScreenLoading provides backgroundColor, opacity, justifyContent: 'center', alignItems: 'center', zIndex at src/styles/index.ts:3079) while using a semantically appropriate component for the non-fullscreen context.

    What alternative solutions did you explore? (Optional)

    N/A

  2. added
    Weekly
    Improvement
    and removed
    Daily
    on Nov 19, 2025
  3. changed the title [-]Use correct loading indicator in `HelpContent` component[/-] [+][HOLD] Use correct loading indicator in `HelpContent` component[/+] on Nov 19, 2025
  4. self-assigned this
    on Nov 24, 2025
  5. added
    Daily
    External
    and removed
    Weekly
    on Nov 24, 2025
  6. changed the title [-][HOLD] Use correct loading indicator in `HelpContent` component[/-] [+][$250] [HOLD] Use correct loading indicator in `HelpContent` component[/+] on Nov 24, 2025
  7. melvin-bot commented on Nov 24, 2025

    @melvin-bot
  8. added
    Help Wanted
    on Nov 24, 2025
  9. removed
    Help Wanted
    on Nov 24, 2025
  10. 28 remaining items

  11. melvin-bot commented on Dec 23, 2025

    @melvin-bot

    @Pujan92 Eep! 4 days overdue now. Issues have feelings too...

  12. Julesssss commented on Dec 24, 2025

    @Julesssss
    Contributor

    Is payment complete? @abbasifaizan70

  13. abbasifaizan70 commented on Dec 24, 2025

    @abbasifaizan70
    Contributor

    Is payment complete? @abbasifaizan70

    Still waiting on Upwork for approval. @Julesssss

  14. Julesssss commented on Dec 24, 2025

    @Julesssss
    Contributor

    We'll have to wait until after holidays, but don't worry the issue won't get closed

  15. added
    Daily
    and removed
    Daily
    on Dec 24, 2025
  16. melvin-bot commented on Dec 31, 2025

    @melvin-bot

    @Pujan92 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  17. melvin-bot commented on Jan 2, 2026

    @melvin-bot

    @Pujan92 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  18. Julesssss commented on Jan 5, 2026

    @Julesssss
    Contributor

    Bumping this for payment @VictoriaExpensify

    Is payment complete? @abbasifaizan70

    Still waiting on Upwork for approval. @Julesssss

  19. Julesssss commented on Jan 6, 2026

    @Julesssss
    Contributor

    awaiting payment

  20. VictoriaExpensify commented on Jan 6, 2026

    @VictoriaExpensify
    Contributor

    Payment for both @abbasifaizan70 and @Pujan92 has already been made:

    Image Image

    Final payment summary:
    C: @abbasifaizan70 paid $250 via UW on 1 January
    C+: @Pujan92 paid $250 via ND on 19 Dec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternalImprovement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions