feat(core): network fallback precedence, locale-safe formatting, lazy-import failures, clipboard recovery (#136–#139) - #172
Merged
BigDella merged 1 commit intoSep 27, 2026
Conversation
…-import failure state, clipboard recovery Closes Parcel-Protocol#136, Parcel-Protocol#137, Parcel-Protocol#138, Parcel-Protocol#139
|
@Gbemi-programmer 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 #136
Closes #137
Closes #138
Closes #139
#139 Network-configuration fallback precedence
resolveNetwork(stored, env): persisted selection >NEXT_PUBLIC_STELLAR_NETWORK> testnet. Unknown values are ignored at every level.NetworkProvideruses it.resolveEndpoint(override, fallback): endpoint env overrides are used only when they are valid http(s) URLs with no embedded credentials. Otherwise the default is used.redactEndpoint(): shows only origin and path in diagnostics, so no query/fragment/userinfo secrets appear.#138 Locale-safe date and amount formatting
safeLocales, used by both amount and date formatters).#137 Registry lazy-import failure states
loadFeaturePanel()returns a typedResult. A rejected import becomesload_failedwith{ slug, errorName }only (no message or stack, so no URLs or tokens leak into telemetry)./tools/[slug]still 404s for unknown slugs. An installed slice that fails to load now shows a recovery screen instead of a blank page or a 500.generateStaticParamsis unchanged.#136 Clipboard permission-denied recovery
copyTextthrows a typedClipboardError(unavailable|denied).tryCopyTextnever throws. It falls back toexecCommand("copy")and returns"copied"only when a copy actually happened.CopyableValueshows an accessiblerole="alert"hint with the full value, selectable, when copying fails. It never claims success.Checks
tscshows no new errors.mainalready failstscand 21 vitest tests in 11 files. This branch has the identical set of failures and adds no new ones.registry.tsonmainreferencedgeneratedFeatureswithout importing it; the import is added here because [Core] Define registry lazy-import failure states #137 changes this file.