Skip to content

Add mobile balance refresh state machine #526

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Feature

Summary

Add a balance refresh state machine for the mobile wallet.

Current Behaviour

Balance refresh behaviour may not distinguish idle, loading, stale, failed, offline, and refreshed states.

Expected Behaviour

The app should expose clear balance refresh states and safe retry behaviour.

Suggested Implementation

Create state model, hooks, UI states, tests, and docs.

Files or Areas Likely Affected

  • src/wallet/
  • src/accounts/
  • src/screens/
  • src/components/
  • tests/
  • docs/

Acceptance Criteria

  • Balance refresh state model is implemented.
  • Idle, loading, stale, failed, offline, and refreshed states are represented.
  • Retry behaviour is handled.
  • UI shows clear state feedback.
  • Tests cover major refresh states.
  • Docs explain refresh behaviour.

Additional Notes

This improves wallet reliability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labelaccountsAccount related workexpertExpert difficultyfeatureFeature workmobileMobile app related workuxUser experience and interface flow workwalletWallet related work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions