Extension login infinite loading #198
No reviewers
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sigit/sigit.io#198
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "196-ext-login-infinite-loading"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The user was unable to log in with an older/unsupported nostr extension which caused the infinite loading.
This PR's intent is to add a fallback and a timeout for such cases where extensions are not responding within a certain timeframe.
To that end, we:
EXTENSION_LOGIN_DELAY_SECONDS
(the delay after initial login press after which we assume extension is taking longer than usual) andEXTENSION_LOGIN_TIMEOUT_SECONDS
(the actual timeout) which interrupts login attempt and gives back control to the user.LoadingSpinner
, it can optionally include child component, i.eButton
to manually interrupt the loadingTimeoutError
which we can type check against and log the errorAdditionally, we updated the
isOnline
detection to self-ping (localhost
will cause false positives). The online detection will be updated with the new offline flow features.Closes #196