Feat/federation address input#144
Merged
johdanike merged 2 commits intoJun 1, 2026
Merged
Conversation
|
@QueenColly 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.
PR 1 — Federation resolver input
Branch: feat/federation-address-input
PR Title: feat(wallet): build federation address resolver input component
Closes #132
Summary
Adds a user-facing FederationInput component that accepts federation addresses (e.g., name*domain.com).
Implements Component -> Hook -> Service layering:
FederationInput.tsx
useFederationResolver.ts
federation.ts
Adds backend resolver proxy at route.ts which discovers federation servers via stellar.toml and queries them.
Adds lodash.debounce dependency for debounced input handling.
UI shows a spinner while resolving and displays the resolved Stellar public key (account_id) on success.
Notes / Acceptance
Data is fetched from our backend API (no inline mocks).
Please assign the PR before review, attach a screenshot showing API response or tests passing, and include the work summary above in the PR body.
Tests/manual verify: enter a valid federation address to see resolution and Resolved: G... shown.
PR 2 — Address autocomplete
Branch: feat/address-autocomplete
Files changed:
route.ts
places.ts
useAddressAutocomplete.ts
AddressAutocomplete.tsx
PR Title: feat(logistics): add geographic address auto-complete input
Closes #133
Summary
Adds AddressAutocomplete component that fetches address suggestions as users type and shows a selectable dropdown.
Implements Component -> Hook -> Service layering:
AddressAutocomplete.tsx
useAddressAutocomplete.ts
places.ts
Adds server-side proxy for Mapbox Places at route.ts to centralize API key usage and normalize results.
On selection the component auto-fills hidden latitude and longitude fields and exposes city/postcode for backend routing.
Notes / Acceptance
Requires MAPBOX_API_KEY set in server environment for the backend route to work.
Data is fetched from backend API (no inline mocks).
Please assign the PR before review and attach screenshots showing API responses or unit tests passing.
Commands to push branches and open PRs (run from repo root):
If you already have feat/federation-address-input committed and want to push and open PR 1:
To create and push the address-autocomplete branch, commit the new files then push and open PR 2: