fix: resolve 3 assigned issues for jonathanayubausara-a11y (#459, #463, #464)#552
Open
jonathanayubausara-a11y wants to merge 1 commit into
Conversation
…n#459, MettaChain#463, MettaChain#464) - fix(MettaChain#459): memoize detectInstalledWallets with useMemo to prevent re-running wallet detection on every render in WalletModal - test(MettaChain#463): add comprehensive unit tests for qrCodeSecurity covering phishing URL detection, deep-link validation, vbscript protocol, allowed hosts matching, edge cases, and getDisplaySafeUrl scenarios - test(MettaChain#464): add unit tests for useCurrencyConverter covering fetch failures, stale data, network reconnect, storage re-hydration, conversion functions, auto-refresh interval, and edge cases closes MettaChain#459 closes MettaChain#463 closes MettaChain#464
|
@jonathanayubausara-a11y 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses 3 issues assigned to @jonathanayubausara-a11y in the Stellar Wave program.
Issue #459 (P3): WalletModal detection re-runs on every render
detectInstalledWalletsinWalletModalran on every render even thoughwindow.ethereumcannot change between renders.useMemowith an empty dependency array, so it runs only once on mount.src/components/WalletModal.tsxIssue #463 (P2): Add unit tests for qrCodeSecurity
src/utils/security/qrCodeSecurity.tshad insufficient test coverage.getDisplaySafeUrledge cases (empty input, exact max length, truncation)PhishingProtectionto isolate testssrc/utils/security/__tests__/qrCodeSecurity.test.tsIssue #464 (P2): Add unit tests for useCurrencyConverter
src/hooks/useCurrencyConverter.tshad no test file despite touching rate fetching, caching, and storage.src/hooks/__tests__/useCurrencyConverter.test.ts(new)Verification
closes #459
closes #463
closes #464