feat: add shared multi-currency pricing - #456
Merged
Luluameh merged 1 commit intoAug 24, 2026
Merged
Conversation
|
@anthonia01-dev is attempting to deploy a commit to the luluameh's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
|
LGTM |
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.
Multi-Currency Exchange Rate Conversion & Live Wallet Switcher
Related Issue
Closes #455
Overview
This pull request adds multi-currency display support for SkillSphere session prices and wallet balances.
Users can now switch between XLM, USD, EUR, GBP, and JPY from the navigation bar. The selected currency is shared across the application, so changing the currency updates expert cards, expert detail pages, wallet balances, and booking modals consistently.
Exchange rates are retrieved from CoinGecko’s public API using the current Stellar Lumens price and refreshed automatically every 60 seconds.
Changes Made
Shared Currency State
CurrencyProvideraround the application.useCurrencyto consume the shared context.useCurrencyis used outside the provider.Live Exchange Rate Conversion
Navigation Currency Switcher
Expert Cards
Expert cards now display the hourly rate in the selected currency.
When a fiat currency is selected, the original XLM price remains visible alongside the converted value. Per-minute pricing is also converted using the same live exchange rate.
Example:
Expert Details
The expert details view now follows the global currency selection and displays:
Booking Modal
Booking session modals now update when the user changes currency.
The reservation fee and booking confirmation display:
Transaction-related amounts remain based on the original XLM value.
Formatting Behavior
$for USD€for EUR£for GBP¥for JPYValidation
Successful Checks
npm installnpm run buildgit diff --checkThe production build completed successfully and generated all application routes.
Existing Repository Issues
npm run lintstill reports pre-existing errors in unrelated files, including API routes, dashboard components, admin components, and session components.The files changed in this pull request do not introduce new lint errors. Existing image optimization warnings remain in the expert card and expert details components.
Scope
This change only affects price and balance presentation. It does not modify:
All payments continue to use XLM regardless of the selected display currency.
Closes #455