Skip to content

feat: stellar configuration panel#519

Merged
temma02 merged 1 commit intoStellerCraft:mainfrom
starkiVector-090:issue-19-stellar-configuration-panel
Apr 29, 2026
Merged

feat: stellar configuration panel#519
temma02 merged 1 commit intoStellerCraft:mainfrom
starkiVector-090:issue-19-stellar-configuration-panel

Conversation

@starkiVector-090
Copy link
Copy Markdown
Contributor

What was implemented

New files in apps/frontend/src/components/app/stellar/:

  • AssetPairEditor.tsx — inline form to add/remove asset pairs with base/counter asset
    type, code, and issuer fields
  • ContractAddressInputs.tsx — add/remove Soroban contract addresses with inline
    validation against the existing validateContractAddress utility
  • SorobanRpcInput.tsx — URL input with async connectivity check button and status
    feedback (mirrors HorizonUrlInput)
  • StellarConfigPanel.tsx — main panel composing all four field groups into a form with
    save/reset actions
  • index.ts — barrel export for the whole stellar directory

Updated files:

  • useStellarConfigForm.ts — added sorobanConnectivityStatus, sorobanConnectivityResult,
    and checkSorobanConnectivity to the hook and its return type; also resets Soroban
    connectivity state when sorobanRpcUrl changes
  • vitest.config.ts (frontend) — added @craft/stellar and @craft/types source aliases so
    tests resolve without a build step
  • stellar.test.tsx — 44 tests covering all new components and the updated hook

Edge cases handled:

  • Auto-updating horizonUrl when network switches only if the URL still matches the old
    default
  • Network/Horizon URL mismatch validation (testnet URL on mainnet config and vice
  • Duplicate contract name detection in ContractAddressInputs
  • Connectivity state reset on URL change for both Horizon and Soroban RPC

closes #19

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@starkiVector-090 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

@temma02 temma02 merged commit db49ced into StellerCraft:main Apr 29, 2026
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.

Issue 019: Implement the Stellar configuration panel

2 participants