Skip to content

Add helper for detecting ad blocker interference with wallet connection#407

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
sochima2:main
May 31, 2026
Merged

Add helper for detecting ad blocker interference with wallet connection#407
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
sochima2:main

Conversation

@sochima2
Copy link
Copy Markdown
Contributor

Summary

Description
Add useWalletConnectionStallDetection hook in src/hooks/useWalletConnectionStallDetection.ts with a named timeout constant WALLET_CONNECTION_STALL_TIMEOUT_MS and shared message WALLET_CONNECTION_AD_BLOCKER_MESSAGE.
Wire the hook into ConnectWalletButton and WalletConnectCalloutBanner so the ad-blocker suggestion appears only when a wallet connection/reconnect remains pending past the timeout and is cleared when the attempt succeeds or fails.
Add unit tests in src/hooks/tests/useWalletConnectionStallDetection.test.ts covering the stalled, success-before-timeout, and failure-before-timeout behaviors.

Testing

Testing
Ran pnpm exec vitest run src/hooks/tests/useWalletConnectionStallDetection.test.ts, and the new tests passed.
Ran pnpm lint and pnpm build, both completed successfully.
A broader pnpm test invocation that ran the full suite surfaced pre-existing unrelated failures (missing test deps and unrelated assertions) which are not caused by this change.

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

close #406

sochima2 added 2 commits May 31, 2026 21:37
…cker-interference

Add wallet connection stall detection and ad-blocker hint
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@sochima2 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit d6ff9bc into accesslayerorg:main May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helper for detecting ad blocker interference with wallet connection

2 participants