Feat/cross border preview - #58
Merged
johdanike merged 4 commits intoApr 26, 2026
Merged
Conversation
…figuration files, package dependencies, and development environment settings.
- Added onboarding tour functionality using react-joyride. - Created Tour component to manage the tour steps and UI. - Integrated tour steps into dashboard layout and various pages. - Updated package.json and bun.lock to include react-joyride dependency. - Added hooks and services for managing tour state and persistence. - Enhanced UI elements with data attributes for tour targeting.
…pment environment - Deleted various JSON and JavaScript manifest files related to build, routes, and server configurations. - Cleaned up cache files and traces associated with the development build process. - Removed client and server reference manifests, as well as app paths and font manifests, to streamline the project structure.
…related hooks - Added CurrencyConverter component for real-time fiat-to-XLM conversion. - Created useCurrencyConverter hook to manage currency state and API interactions. - Integrated currency converter into the CreateDeliveryPage. - Established currencyRateService for fetching exchange rates from the API. - Added tests for useCurrencyConverter to ensure functionality and error handling. - Refactored layout to use Providers for theme and query context management.
|
@solomonadzape95 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 adds a cross-border fiat-to-XLM preview for delivery creation, using backend exchange-rate data with React Query and a strict
Component -> Hook -> Servicearchitecture.What was implemented
app/providers.tsxapp/layout.tsxto wrap app withQueryClientProvider(viaProviders)services/currencyRateService.tsGET /api/rates/xlm?fiat=<CODE>{ fiat, xlmRate, updatedAt }hooks/useCurrencyConverter.tsxlmEstimatefrom entered fiat amountisLoading,isError,rate,xlmEstimate,lastUpdated,refetchfeatures/deliveries/components/CurrencyConverter.tsxapp/(dashboard)/deliveries/create/page.tsx<CurrencyConverter />in delivery creation flowhooks/__tests__/useCurrencyConverter.test.tsAcceptance Criteria Mapping
Component -> Hook -> Servicelayered architecture: ✅Technical Notes
GET /api/rates/xlm?fiat=<CODE>{ fiat, xlmRate, updatedAt }Rate unavailable, try againrefetch)Test Plan
bun run test hooks/__tests__/useCurrencyConverter.test.tsWork Summary
Implemented a backend-driven fiat-to-XLM preview experience in the delivery creation flow with React Query, robust fallback handling, and tests for core conversion and failure scenarios.
Closes #48