Repository navigation
feat: shell breadcrumbs, fee-bump request logging, persisted query cache, wallet auto-reconnect - #853
Merged
ritaifeoluwa merged 2 commits intoNov 18, 2026
Conversation
…che, wallet auto-reconnect Closes SmartDropLabs#786 Closes SmartDropLabs#787 Closes SmartDropLabs#788 Closes SmartDropLabs#789
👷 Deploy request for spiffy-melomakarona-eb1e8a pending review.Visit the deploys page to approve it
|
👷 Deploy request for smart-drop pending review.Visit the deploys page to approve it
|
|
@jescinta 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.
Closes #786
Closes #787
Closes #788
Closes #789
What changed
buildRouteBreadcrumbs()insrc/components/AppShell/routeBreadcrumbs.ts.AppShellrenders the existingBreadcrumbscomponent above the page for nested routes. Each segment links to its parent, the last is the current page, segments are decoded, and long ids are truncated. Top-level pages get no trail, and/farm/*is skipped because those pages already render their own data-aware trail. Unit-tested./api/sign-fee-bumplogs one structured line per request (route,requestId,status,durationMs), aterrorlevel for 5xx andinfootherwise. An inboundx-request-idis reused, or one is generated, and it's echoed on the response. The body, XDR, caller IP and sponsor secret are never logged. Tests added.src/lib/queryPersistence.ts(localStorage, versioned keys, 24h max age, every access guarded).usePersistedQueryCacherestores the last-knownusePoolsandusePlatformStatsdata after mount and writes fresh results back. It seeds in an effect, not viainitialData, so the first client render matches the server render, and the restored entry keeps its timestamp sostaleTimestill triggers a refetch. Only public, wallet-independent data is persisted. Tests added.StellarWalletContextremembers a successfulconnect()with a flag (no key material). On mount it reconnects silently using onlyisConnected/isAllowed/getAddress, so no Freighter popup appears. An explicitdisconnect(), or revoked site access, forgets the flag; an unexpected drop (locked extension) keeps it. Tests added. The four existing wallet test files now clear localStorage inbeforeEach, so the remembered flag can't leak between tests.mainin files I touched, fixed here:AppShell.tsxusedServiceWorkerRegistrarwithout importing it.useSorobanQuery.tscalled an undefinedshouldRetry. It's now defined: transient errors only, pernormalizeError, at most 3 tries.Why
How to test
npm test:routeBreadcrumbs.test.ts,sign-fee-bump/route.test.ts,queryPersistence.test.ts,useSorobanQuery.persist.test.tsx,StellarWalletContext.autoconnect.test.tsx.Note: not run locally; I'm relying on CI. I didn't touch anything under
.github/.