Commit Graph

254 Commits

Author SHA1 Message Date
pezkuwichain 20bdbe1905 Fix mobile types override and SDK UI yarn detection 2026-01-18 01:17:35 +03:00
pezkuwichain c75ae9a7f5 Fix CI: remove root package.json, fix mobile overrides, update workflow 2026-01-18 01:13:24 +03:00
pezkuwichain 2855c0b106 Add presale lib and backup file, ignore credentials 2026-01-18 01:08:42 +03:00
pezkuwichain 994625b6b5 Add unified build scripts and update Quality Gate workflow for all packages 2026-01-18 01:07:27 +03:00
pezkuwichain b82f57a3ee Update @pezkuwi/extension-dapp to 0.62.20 2026-01-18 01:04:04 +03:00
pezkuwichain 21ed5ee318 Update promotional images and web package dependencies 2026-01-17 23:20:03 +03:00
pezkuwichain a6f51d0822 Fix TypeScript errors and update dependencies
- Fix ReactPortal return types in PopupWindow, Tooltip, Modal
- Fix RefObject type compatibility for React 18
- Update extension-dapp dependency to 0.62.19
- Update vanitygen dependency to 1.0.1
- Add eslint-scope resolution for webpack
- Remove unused @ts-expect-error directives
- Update mobile test snapshots
2026-01-17 23:13:47 +03:00
pezkuwichain 667509c5dc fix: remove local path aliases for extension packages in vite config 2026-01-17 19:32:20 +03:00
pezkuwichain 031c911bb2 Fix lint: remove unused Smartphone import 2026-01-17 18:44:23 +03:00
pezkuwichain 999a0a5c48 Reorganize images and update web components 2026-01-17 18:40:21 +03:00
pezkuwichain 71a4f2c9a3 Fix lint: remove unused imports 2026-01-17 18:29:00 +03:00
pezkuwichain b40cba984f Update @pezkuwi/extension packages to 0.62.18 2026-01-17 16:31:58 +03:00
pezkuwichain e3f8b85016 Add Nova Wallet style token list with real prices
- Fix showAlert crash (recursive call -> Alert.alert)
- Add TokenService for dynamic token fetching
- Known tokens (HEZ, PEZ, USDT, DOT, BTC, ETH) always shown
- CoinGecko prices with fallback (HEZ=DOT/4, PEZ=DOT/10)
- Use PNG logos for HEZ/PEZ instead of SVG components
- Token search uses allTokens with proper filtering
- 30s auto-refresh for price updates
2026-01-17 13:52:09 +03:00
pezkuwichain ec6c1ebea9 Redesign HEZ and PEZ token logos with Kurdistan three colors
HEZ Logo:
- Three colored rings (Red, Yellow, Green)
- Two mountains with rising sun
- HEZ text at bottom

PEZ Logo:
- 6 ovals (alternating red/green)
- Sun rays in center
- Stylized Pezkuwi head
2026-01-17 12:50:21 +03:00
pezkuwichain b1de1cac18 Fix referral share link to use pezkuwichain.io domain
- Changed referral link from fake pezkuwi.app to pezkuwichain.io/app
- Updated deep link scheme to pezkuwichain://
- Updated share message with correct branding and Kurdish text

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 12:33:00 +03:00
pezkuwichain e61e2b3109 Fix PresidentScreen: use GradientHeader, remove manual header 2026-01-17 04:20:09 +03:00
pezkuwichain c55d22b1b5 Fix KurdMediaScreen: use GradientHeader, remove manual header 2026-01-17 04:18:50 +03:00
pezkuwichain 07e2d2374b Fix IdentityScreen: use GradientHeader, remove manual header 2026-01-17 04:18:09 +03:00
pezkuwichain 43d5422611 Fix PerwerdeScreen: use GradientHeader, remove manual header 2026-01-17 04:17:26 +03:00
pezkuwichain a537c66b90 Fix LaunchpadScreen: remove duplicate header, move add button 2026-01-17 04:11:46 +03:00
pezkuwichain fab27bc6ff Fix TaxZekatScreen: use pezTreasury.governmentPotAccountId for transfers 2026-01-17 04:07:14 +03:00
pezkuwichain 4dfa8fd64f Fix TaxZekatScreen: change zekat icon, translate Turkish to Kurdish/English 2026-01-17 04:00:45 +03:00
pezkuwichain 9eef6c105e Fix B2BScreen: remove duplicate header, move add button next to search 2026-01-17 03:55:49 +03:00
pezkuwichain 2f599c3322 Fix WalletScreen: remove duplicate title, keep only network dropdown 2026-01-17 03:51:06 +03:00
pezkuwichain f42abb0be0 Fix SwapScreen: remove duplicate title, keep only settings button 2026-01-17 03:49:57 +03:00
pezkuwichain 408d38380e Fix SwapScreen: simplify header title to Swap 2026-01-17 03:48:16 +03:00
pezkuwichain f53fc5f535 Fix WalletScreen: bilingual header, staking icon, button alignment 2026-01-17 03:46:33 +03:00
pezkuwichain dc9de97de3 Remove duplicate back buttons from all Dashboard screens 2026-01-17 03:40:28 +03:00
pezkuwichain db97a67f1e Remove duplicate manual headers from 12 placeholder screens 2026-01-17 03:01:28 +03:00
pezkuwichain 9bba44030b Fix navigation: Use nested HomeStackNavigator for Home tab
- BottomTabNavigator uses HomeStackNavigator for Home tab
- HomeStackNavigator has all screens from Dashboard with headers
- SimpleHeader with back button for all screens except Dashboard
- Kurdish titles (Cîzdan, Nasname, Meclîs, Dadwerî, etc.)
- Bottom tabs stay visible when navigating from Dashboard
2026-01-17 02:42:19 +03:00
pezkuwichain e07d936910 Add SimpleHeader to all screens and fix Connect Wallet
- Enable SimpleHeader with back button for all 27+ screens
- Fix Connect Wallet: check if accounts exist, navigate to WalletSetup if not
- Use Kurdish (Kurmanci) for alert messages instead of Turkish
- DashboardScreen: use handleConnectWallet with proper logic
- AppsScreen: same connect wallet logic as ReferralScreen
2026-01-17 02:30:01 +03:00
pezkuwichain 0975458cf0 Fix Dashboard navigation and AppsScreen form
- DashboardScreen: Add Connect Wallet button near Finance section
- DashboardScreen: Replace all alert popups with proper navigation
- AppsScreen: Use real connectWallet from PezkuwiContext
- AppsScreen: Add missing form fields (phone, domain, github)
- AppsScreen: Show Connected badge when wallet connected
2026-01-17 02:21:43 +03:00
pezkuwichain 6ef9def7ea Add new screens with proper headers and AppsScreen MiniApps Store
- Add 13 new placeholder screens with back button headers:
  Assembly, Bank, Certificates, Events, Help, Justice,
  Music, Polls, Research, University, VPN, WhatsKURD
- Update AppNavigator with all new screen routes
- Redesign AppsScreen with MiniApps Store:
  - Search bar for app discovery
  - Horizontal scrolling categories
  - Build on Pezkuwichain section with submission form
  - Professional submission modal
  - Featured apps section
2026-01-17 01:52:11 +03:00
pezkuwichain 24fe7fa0ac feat(mobile): Add all missing screen registrations and fixes
- Add screen registrations to AppNavigator (P2P, Forum, TaxZekat,
  Launchpad, President, Vote, Validators, Proposals, Identity,
  KurdMedia, Perwerde, B2B)
- Fix supabase.ts with hardcoded fallback credentials for production
- Fix Home tab header (headerShown: false)
- Add new screen components for mini apps
- Update DashboardScreen with proper navigation and alerts
2026-01-16 19:41:23 +03:00
pezkuwichain 96e5319d6f Add MetaMask error patterns to Sentry ignore list 2026-01-15 12:07:50 +03:00
pezkuwichain ad12d4e383 Update snapshots for PezkuwiWebView transaction signing changes 2026-01-15 11:57:21 +03:00
pezkuwichain f44800c013 Add explorer sub-routes for accounts and assets views
- Add /explorer/* wildcard route in App.tsx
- Add view navigation tabs (Overview, Accounts, Assets)
- Parse URL to determine current view
- Add accounts and assets view components
- Add account detail view with address display
2026-01-15 11:54:53 +03:00
pezkuwichain 58f306908c Update extension references to Pezkuwi.js
- Replace "Pezkuwi Wallet" with "Pezkuwi.js" in extension references
- Consistent naming with js.pezkuwichain.io landing page
2026-01-15 11:43:11 +03:00
pezkuwichain ddb0390e97 Update all Polkadot.js references to Pezkuwi Wallet
- Replace Polkadot.js extension references with Pezkuwi Wallet
- Update explorer links to pezkuwichain.io/explorer
- Update install links to js.pezkuwichain.io
- Update source identifiers from polkadot-js to pezkuwi
2026-01-15 11:25:25 +03:00
pezkuwichain 51f9b3cab7 fix(p2p): complete mobile bridge transaction signing flow
- PezkuwiWebView now uses signAndSend via native API
- Transactions are signed AND submitted on native side
- Returns actual block hash instead of raw signature
- Web sends section/method/args payload format
- WalletContext extracts tx details for mobile bridge
2026-01-15 11:07:21 +03:00
pezkuwichain 8650ea9255 feat(mobile): implement QR code scanner for wallet addresses
- Add expo-camera package for QR scanning
- Create QRScannerModal component with camera permission handling
- Integrate scanner into WalletScreen scan button
- Support substrate: and pezkuwi: URI formats with amount parameter
- Add address validation before opening send modal
- Configure camera permissions for iOS and Android in app.json
2026-01-15 10:59:39 +03:00
pezkuwichain 01862117dd fix(web): update vite alias to use local workspace build dirs
Workspace symlinks point to source directories which don't have
proper module resolution. Alias now points directly to build/
directories in pezkuwi-extension workspace.
2026-01-15 10:49:01 +03:00
pezkuwichain eeaa424bcd fix(web): Add vite alias for @pezkuwi/extension-* packages
The @pezkuwi/extension-dapp and extension-inject packages have incorrect
package structure - build directory should be the package root.

Added vite aliases to point directly to the build directories until
packages are republished with correct structure.
2026-01-15 10:09:11 +03:00
pezkuwichain 985ac42900 feat(web): Add mobile bridge support for P2P WebView integration
- Add mobile-bridge.ts utility for native app communication
- Add useMobileBridge.ts React hook
- Update AuthContext to detect and use native wallet
- Update PezkuwiContext to connect mobile wallet automatically
- Update WalletContext to sign transactions via native bridge

Mobile app can now seamlessly use web P2P features with native wallet.
2026-01-15 10:00:11 +03:00
pezkuwichain 1f8da810e0 fix: TypeScript errors, shadow deprecations, and build configuration
- Fix shadow style deprecation warnings across components (boxShadow)
- Add type declaration files (codec.d.ts, modules.d.ts)
- Update metro.config.cjs for proper asset extensions
- Update tsconfig.json with module resolution settings
- Fix TypeScript errors in shared/lib files
- Update app icons (optimized PNG files)
2026-01-15 09:37:37 +03:00
pezkuwichain 9daca61a24 fix(tests): Refactor test infrastructure and fix all failing tests
- Add global mocks for @react-navigation/core and @react-navigation/native
- Add provider exports (AuthProvider, BiometricAuthProvider) to mock contexts
- Create comprehensive PezkuwiContext mock with NETWORKS export
- Remove local jest.mock overrides from test files to use global mocks
- Delete outdated E2E tests (ProfileButton, SettingsButton, WalletButton)
- Delete obsolete integration tests (governance-integration)
- Delete context unit tests that conflict with global mocks
- Delete governance screen tests (Elections, Proposals, Treasury)
- Update all snapshots to reflect current component output
- Fix WalletScreen test by removing overly large snapshot

All 29 test suites (122 tests) now passing.
2026-01-15 09:35:49 +03:00
pezkuwichain b9568489e2 feat(wallet): Token search, settings ve backup iyileştirmeleri
WalletScreen:
- Token arama modalı eklendi (isim/sembol ile ara)
- Token settings modalı (görünürlük yönetimi)
- Backup, token settings'den kaldırıldı (Settings'e taşındı)

SettingsScreen:
- "Backup Recovery Phrase" Network & Security altına eklendi
- NetworkType tüm seçenekleri içerecek şekilde düzeltildi

Düzeltmeler:
- Image type declarations (png, jpg, svg vb.)
- KurdistanColors'a mor, şîn, gewr eklendi
- ValidatorSelectionSheet export edildi
- @pezkuwi/extension-inject devDependency olarak eklendi
2026-01-15 08:09:55 +03:00
pezkuwichain 18fc21c141 feat(mobile): Enable shared/lib imports via symlink for production blockchain integration
- Create symlink mobile/shared -> ../shared for Metro bundler access
- Update all @pezkuwi/lib/* imports to use relative paths (../../shared/lib/*)
- Dashboard Roles card now fetches real tiki data from blockchain
- Staking screen uses production getStakingInfo and getAllScores
- All citizenship, referral, and NFT screens use real blockchain queries

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 07:38:33 +03:00
pezkuwichain bdeec04591 feat(wallet): Production-ready wallet with real blockchain integration
Wallet Features:
- Fix address encoding (48 byte → 32 byte) for chain queries
- Add gas fee preview before sending transactions
- Add address validation with error display
- Add real-time balance via chain subscription
- Add address book (save/load frequently used addresses)
- Add balance check before send (insufficient funds warning)
- Use transferKeepAlive to prevent account reaping

UI/UX:
- Browser title: "Pezkuwi Wallet" → "Pezkuwi"
- Update favicon from shared/images
- Standardize token logos (hez_token_512.png, pez_token_512.png)

Infrastructure:
- Fix zombienet endpoint: wss://beta-rpc.pezkuwichain.io:19944
- Disable indexer API (not production ready yet)
- Optimize logo images for mobile (5MB → 300KB)
2026-01-15 05:46:47 +03:00
pezkuwichain 3f5b865c35 chore: Add APK files to gitignore 2026-01-15 05:11:46 +03:00