-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
language(harbor): implement localization for various components and enhance UI #960
Closed
Conversation
This file contains 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
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Merge 'dev' into stage
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Stage for redesign
refactor: debug mode refactor
- Added SWINE token to CryptoCurrencyCode enum and TOKEN_ADDRESSES. - Integrated TokenSwineIcon in TokenLogo component. - Updated SingleAsset component to handle USD price formatting. - Enhanced BottomSheetTokensList for better layout and responsiveness. - Updated styles for BottomSheetTokensList to accommodate new design. - Added new token entries in SWAP_SUPPORTED_TOKENS.
- Added KOS token address to TOKEN_ADDRESSES. - Updated token name from 'AST' to 'Astra' and 'KOS' to 'Kosmos Token' in SWAP_SUPPORTED_TOKENS. - Refactored useSwapBetterCurrency and useSwapBetterRate hooks to improve logic and integrate best trade calculations.
Actuallize develpment branch
- Added 'KOS' to the CryptoCurrencyCode enum. - Moved the import of IconProps in KosmosToken icon component for better organization. - Reordered imports in DebugItem component for consistency.
feat: add KOS currency code and improve KosmosToken icon import
Feature: Added new token entries in DEX supported pairs
bugfix: Dont allow a zero transaction
ui: add padding on import wallet button
- Introduced a new `swapArgsCallback` function to streamline argument preparation for token swaps. - Updated `swapExactTokensForTokens` to utilize the new callback for better clarity and maintainability. - Modified `useSwapActions` to include `tokenToReceive` for accurate swap execution. - Ensured `priceImpact` is set to zero if undefined in the swap interface for better user experience. - Improved overall logic for handling token amounts and slippage tolerance in the swap process.
- Updated the priceImpact assignment in useSwapInterface to use nullish coalescing, ensuring it defaults to zero if undefined. This change improves the user experience by providing a consistent value for price impact in the swap interface.
feat: enhance swap functionality and improve token handling
…used amount-received utility - Updated swap.ts and use-swap-interface.ts to use maximumAmountIn instead of maximumAmountOut for better clarity in amount calculations. - Deleted the amount-received.ts file as its functions are no longer needed. - Adjusted index.ts to export from the new prices utility instead of the removed amount-received utility.
ui: stake amb background collor
- Updated `useConnectionsController` to utilize `AppState` for managing active sessions based on app focus, enhancing session handling. - Refactored `validateAndFilterSessions` to use `SessionTypes.Struct` for improved type safety and validation logic, ensuring robust session management.
- Removed the `SessionDeleteEvent` type and streamlined the `onSessionDelete` callback to directly close all modals and update active sessions using `walletKit.getActiveSessions()`, enhancing code clarity and maintainability.
refactor(wallet-connect): improve session management and validation
- Removed the `validateAndFilterSessions` function call and directly set active sessions using `walletKit.getActiveSessions()`, streamlining session handling and improving code clarity.
refactor(wallet-connect): simplify session management in approval view
- Replaced the import of SafeAreaView from 'react-native' with 'react-native-safe-area-context' to ensure proper handling of safe area insets, improving layout consistency across devices.
- Updated HBRIcon component to accept a color prop for dynamic coloring. - Added KosmosProductIcon and StakeProductIcon to the actions index for better modularity. - Refactored PRODUCTS to utilize new icons and adjusted scales for improved UI consistency.
refactor(settings): update imports for SafeAreaView component
feat(icons): enhance HBRIcon and add new product icons
- Introduced a `mappedFunctionNames` array to simplify and centralize transaction function name checks - Updated `isWrapOrUnwrap` logic to use `includes()` with case-insensitive matching - Improved code readability and maintainability for transaction type detection
…roval - Updated the unstake token symbol from `CryptoCurrencyCode.BOND` to `CryptoCurrencyCode.stAMB` to ensure accurate representation of the token during wallet connect transaction approval
bugfix: change max button setter logic
refactor(wallet-connect): optimize transaction function name matching
- Added Jest mocks for @walletconnect/react-native-compat - Added Jest mocks for @reown/walletkit WalletKit and IWalletKit - Added Jest mock for @walletconnect/core Core
test(setup): add mocks for WalletConnect and WalletKit dependencies
… modal on each tab stack
…out scenarios - Updated swap arguments callback to handle trade-in and trade-out scenarios more accurately - Replaced `amountOutMax` with `amountInMax` for better clarity - Implemented conditional return logic to support different swap types
fix(navigation/wallet-connect): add ability to trigger wallet connect modal on each tab stack
ui: center product icons
fix(swap): correct swap arguments calculation for trade-in and trade-…
- Updated the translation key for the withdrawal success header in SuccessTxView component - Replaced hardcoded string with a more specific localization key for better translation support
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.
useTranslation
hook.