Skip to content

Add a reconnecting state to the wallet connection flow retrying automatically if the wallet extension is slow to respond #752

Description

@Chucks1093

Summary

When the wallet extension takes longer than expected to respond to a connection request, the UI freezes on the connect button with no feedback. A reconnecting state with a spinner and 'Waiting for wallet…' label would reassure the user and retry automatically after a timeout.

Scope

  • Show a spinner and 'Waiting for wallet…' label on the connect button after 3 seconds with no response
  • Retry the connection request automatically after 15 seconds if the wallet has not responded
  • After 3 retries, show 'Could not connect — please try again' and reset the button
  • Cancel the retry loop if the user clicks the connect button again
  • Unit test: spinner appears after 3 seconds, retry fires after 15 seconds

Acceptance Criteria

  • Spinner and label appear after 3 seconds with no response
  • Automatic retry after 15 seconds
  • After 3 retries the error state is shown and the button reset
  • User click cancels the retry loop
  • Unit tests for timeout and retry behaviour pass

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions