Commit Graph

6 Commits

Author SHA1 Message Date
pezkuwichain 4a3694c831 Fix all shadow deprecation warnings across entire mobile app
- Replaced shadowColor/shadowOffset/shadowOpacity/shadowRadius with boxShadow
- Fixed 28 files (21 screens + 7 components)
- Preserved elevation for Android compatibility
- All React Native Web deprecation warnings resolved

Files fixed:
- All screen components
- All reusable components
- Navigation components
- Modal components
2026-01-14 15:05:10 +03:00
pezkuwichain a635610b7c feat: Phase 1B complete - Perwerde & ValidatorPool UI
Perwerde (Education Platform):
- Add hybrid backend (Supabase + Blockchain + IPFS)
- Implement CourseList, CourseCreator, StudentDashboard
- Create courses table with RLS policies
- Add IPFS upload utility
- Integrate with pallet-perwerde extrinsics

ValidatorPool:
- Add validator pool management UI
- Implement PoolCategorySelector with 3 categories
- Add ValidatorPoolDashboard with pool stats
- Integrate with pallet-validator-pool extrinsics
- Add to StakingDashboard as new tab

Technical:
- Fix all toast imports (sonner)
- Fix IPFS File upload (Blob conversion)
- Fix RLS policies (wallet_address → auth.uid)
- Add error boundaries
- Add loading states

Status: UI complete, blockchain integration pending VPS deployment
2025-11-17 05:04:51 +03:00
pezkuwichain 1e8682739e Fix frontend: resolve imports, add missing functions, configure Vite properly 2025-11-15 11:10:31 +03:00
Claude 8c905183fd Update shared/i18n/index.ts to export both comprehensive and JSON translations 2025-11-14 23:57:49 +00:00
Claude 2fbfa00101 Restore comprehensive 2590-line translations.ts file
This commit restores the comprehensive i18n translations file that was
accidentally removed. The file contains:
- 2590 lines of translations
- 6 languages: English, Kurdish (Kurmanji & Sorani), Turkish, Arabic, Persian
- Complete translations for all app screens and features

Changes:
- Restored shared/i18n/translations.ts from commit a04f8b8
- Updated shared/i18n/index.ts to export from translations.ts
- Both JSON locale files and TypeScript translations now available

The translations.ts file includes comprehensive translations for:
- All navigation and UI elements
- Settings, profile, wallet screens
- Citizenship and referral features
- Terms, privacy policy, help screens
- Complete mobile app interface

Sorry for missing this important file in the previous migration.
2025-11-14 23:57:27 +00:00
Claude 31a0f86382 Organize shared code across web, mobile, and SDK UI projects
Centralized common code into shared/ folder to eliminate duplication and
improve maintainability across all three frontend projects (web, mobile,
pezkuwi-sdk-ui).

Changes:
- Added token types and constants to shared/types/tokens.ts
  - TokenInfo, PoolInfo, SwapQuote, and other DEX types
  - KNOWN_TOKENS with HEZ, PEZ, wUSDT definitions
  - Token logos (🟡🟣💵)

- Added Kurdistan color palette to shared/constants/
  - Kesk, Sor, Zer, Spî, Reş color definitions

- Added TOKEN_DISPLAY_SYMBOLS mapping (USDT vs wUSDT)

- Updated blockchain configuration in shared/blockchain/polkadot.ts
  - Added beta testnet endpoint (wss://beta-rpc.pezkuwi.art)
  - Defined DEFAULT_ENDPOINT constant

- Moved i18n to shared/i18n/
  - Centralized translation files for 6 languages (EN, TR, KMR, CKB, AR, FA)
  - Added LANGUAGES configuration with RTL support
  - Created isRTL() helper function

- Updated web and mobile to import from shared
  - web/src/types/dex.ts now re-exports from shared
  - web/src/contexts/PolkadotContext.tsx uses DEFAULT_ENDPOINT
  - mobile/src/i18n/index.ts uses shared translations
  - mobile/src/contexts/PolkadotContext.tsx uses DEFAULT_ENDPOINT

- Updated shared/README.md with comprehensive documentation

This architecture reduces code duplication and ensures consistency across
all frontend projects.
2025-11-14 19:48:43 +00:00