Skip to content

Show the initial loading message while Claim fetches a send link #2759

Description

@coderabbitai

Summary

The Claim loading state does not show the initial loading message during the first send-link request.

Required change

Update src/components/Claim/Claim.tsx so the Claim component renders loading.loadingYourLink whenever isSendLinkLoading is true, including when failureCount is 0.

Keep the existing failure-count translation behavior:

  • Use loading.loadingYourLink for the initial request and early retries.
  • Use loading.takingLonger after repeated failures.
  • Keep the existing loading.stillTrying behavior for later retries.

Rationale

The current failureCount > 0 condition hides the primary loading message for the initial request. Users only see the loading mascot during this state.

Affected area

  • src/components/Claim/Claim.tsx
  • Claim send-link loading state

Acceptance criteria

  • When isSendLinkLoading === true and failureCount === 0, the UI shows loading.loadingYourLink.
  • When isSendLinkLoading === true and failureCount is greater than 0 but less than 3, the UI shows loading.loadingYourLink.
  • When isSendLinkLoading === true and failureCount >= 3, the UI shows loading.takingLonger and retains the existing loading.stillTrying message.
  • The change does not modify the restyle-only scope of PR ds: apply the design system to all remaining pages (restyle pass) #2758.

Backlinks

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions