Skip to content
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
wants to merge 174 commits into from

Conversation

ArturHoncharuk
Copy link
Collaborator

  • Integrated translation support across multiple components, including InputWithoutTokenSelect, SuccessTxView, and Rewards, by utilizing the useTranslation hook.
  • Updated hardcoded strings to translatable keys, improving localization for English and Turkish languages.
  • Enhanced UI elements such as YieldLabel and StakeAMBWithApyLabel to reflect localized text.
  • Adjusted styles in YieldLabel for better text handling and responsiveness.
  • Improved user experience by providing localized feedback in withdrawal logs and transaction reviews.

EvgeniyJB and others added 30 commits September 24, 2024 09:55
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
Merge 'dev' into 'stage'
- 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.
EvgeniyJB and others added 28 commits January 23, 2025 17:50
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
…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
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
@ArturHoncharuk ArturHoncharuk deleted the AMB-4967-chore branch January 27, 2025 16:17
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.

2 participants