Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #7433: Asset auto discovery may show loading indicator when not loading #7434

Merged
merged 1 commit into from
May 10, 2023

Conversation

StephenHeaps
Copy link
Contributor

Summary of Changes

  • Only update isLoadingDiscoverAssets in the Wallet Service observer methods onDiscoverAssetsStarted & onDiscoverAssetsCompleted, otherwise we might set isLoadingDiscoverAssets to true but rate limiting in core prevents asset auto-discovery from running (because we just discovered assets moments prior).

This pull request fixes #7433

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()
  • New or updated UI has been tested across:
    • Light & dark mode
    • Different size classes (iPhone, landscape, iPad)
    • Different dynamic type sizes

Test Plan:

  1. Unlock your wallet
  2. Wait for loading spinner beside Assets header to disappear
  3. Lock your wallet & immediately unlock it again
  4. Verify loading spinner is not displayed, or is displayed and removed as expected

Screenshots:

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-05-10.at.17.20.03.mp4

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue and pull request is assigned to a milestone (should happen at merge time).

@StephenHeaps StephenHeaps added this to the 1.52 milestone May 10, 2023
@StephenHeaps StephenHeaps requested a review from nuo-xu May 10, 2023 21:24
@StephenHeaps StephenHeaps requested a review from a team as a code owner May 10, 2023 21:24
@StephenHeaps StephenHeaps self-assigned this May 10, 2023
@nuo-xu nuo-xu merged commit d7dd9f1 into development May 10, 2023
@nuo-xu nuo-xu deleted the wallet/asset-auto-discovery-loading branch May 10, 2023 21:47
arthuredelstein pushed a commit to brave/brave-core that referenced this pull request Feb 13, 2024
…ator when not loading (brave/brave-ios#7434)

Fix for displaying loading state for asset auto discovery when not discovering assets due to rate limiting
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discover assets loading indicator is not removed
2 participants