From 1caad3ad796780d52d5dd610ccb6b612fb40f2ff Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 29 Oct 2025 02:02:11 +0300 Subject: [PATCH] feat: Major UI improvements and DEX integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Features: - Improved navbar with proper flex layout and spacing - Added Governance and Trading dropdown menus - Integrated TokenSwap with AssetConversion pallet support - Added DEX availability check with fallback UI 🎨 UI Improvements: - Fixed navbar logo positioning (left-aligned) - Menu items flow naturally from left to right - Responsive design improvements - Updated social media links in footer 🔧 Technical: - Real-time balance queries from Assets pallet - Exchange rate calculation from liquidity pools - Slippage protection - Transaction event monitoring 📝 Modified files: - AppLayout.tsx: Navbar restructure - TokenSwap.tsx: DEX integration - WalletModal.tsx: Wallet improvements - Login.tsx: Auth updates --- src/components/AppLayout.tsx | 287 ++++++++++--------- src/components/TokenSwap.tsx | 381 +++++++++++++++++++++----- src/components/wallet/WalletModal.tsx | 267 ++++++++++++------ src/pages/Login.tsx | 49 ++-- 4 files changed, 682 insertions(+), 302 deletions(-) diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 4a75ab24..bd5c86d1 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -71,180 +71,180 @@ const AppLayout: React.FC = () => {
{/* Navigation */}