Repository navigation
feat: Implement issues 811, 812, 813, 814 - #827
Open
cryptBeckley wants to merge 4 commits into
Open
cryptBeckley wants to merge 4 commits into
cryptBeckley wants to merge 4 commits into
Conversation
|
@cryptBeckley 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 four related UX and resilience issues across stream realtime updates, balance caching, and error reporting:
Math.min(1000 * 2 ** retryCount, 30000)) when Horizon SSE disconnects to prevent 429 rate limits.hooks/useTokenBalance.tsto deduplicate parallel balance queries from simultaneously mounting components.localStorageundercached_xlm_balancefor instant optimistic display on page refresh.app/error.tsxpre-filling the repository bug report template with browser version and error stack trace.Changes by Issue
#811 — Horizon SSE Exponential Backoff
calculateBackoffwith exponential backoff and jitter capped at 30 seconds.hooks/useStreamRealtime.tswith delayed reconnect logic.hooks/__tests__/useStreamRealtime.test.tsx.#812 — Debounce Token Balance Queries
getCachedTokenBalanceFetchwith a 2000ms debounce cache to deduplicate simultaneous balance requests for identical(address, token)pairs.staleTime: 2000inuseTokenBalance.invalidateTokenBalanceto clear the debounce cache so post-deposit transactions immediately reflect the updated balance.hooks/__tests__/balanceHooks.test.tsx.#813 — Optimistic Native XLM Balance
getCachedXlmBalanceandsetCachedXlmBalanceto read and writecached_xlm_balanceinlocalStorage.useWalletBalanceto useinitialDatafromlocalStorage, avoiding skeleton loading flicker during page reloads.hooks/__tests__/balanceHooks.test.tsx.#814 — Pre-filled GitHub Bug Report Button
buildGitHubIssueBodyandbuildGitHubIssueUrlinlib/error-report.tsmatching.github/ISSUE_TEMPLATE/bug_report.md.app/error.tsx.lib/error-report.test.tsandapp/__tests__/error.test.tsx.Issue Closures
Closes #811
Closes #812
Closes #813
Closes #814