Commit Graph

5 Commits

Author SHA1 Message Date
pezkuwichain 0d3b34a92a chore: Fix 430+ TS errors, Safe Area issues, WebView SSO, and mock Alice for testing 2026-01-19 03:06:22 +03:00
pezkuwichain 1a47363938 Fix all ESLint errors in mobile app (157 errors -> 0)
Major fixes:
- Replace `any` types with proper TypeScript types across all files
- Convert require() imports to ES module imports
- Add __DEV__ guards to console statements
- Escape special characters in JSX (' and ")
- Fix unused variables (prefix with _ or remove)
- Fix React hooks violations (useCallback, useMemo patterns)
- Convert wasm-crypto-shim.js to TypeScript
- Add eslint-disable comments for valid setState patterns

Files affected: 50+ screens, components, contexts, and services

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:55:03 +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
Claude 7b95b8a409 Centralize common code in shared folder
This commit reorganizes the codebase to eliminate duplication between web and mobile frontends by moving all commonly used files to the shared folder.

Changes:
- Moved lib files to shared/lib/:
  * wallet.ts, staking.ts, tiki.ts, identity.ts
  * multisig.ts, usdt.ts, scores.ts, citizenship-workflow.ts

- Moved utils to shared/utils/:
  * auth.ts, dex.ts
  * Created format.ts (extracted formatNumber from web utils)

- Created shared/theme/:
  * colors.ts (Kurdistan and App color definitions)

- Updated web configuration:
  * Added @pezkuwi/* path aliases in tsconfig.json and vite.config.ts
  * Updated all imports to use @pezkuwi/lib/*, @pezkuwi/utils/*, @pezkuwi/theme/*
  * Removed duplicate files from web/src/lib and web/src/utils

- Updated mobile configuration:
  * Added @pezkuwi/* path aliases in tsconfig.json
  * Updated theme/colors.ts to re-export from shared
  * Mobile already uses relative imports to shared (no changes needed)

Architecture Benefits:
- Single source of truth for common code
- No duplication between frontends
- Easier maintenance and consistency
- Clear separation of shared vs platform-specific code

Web-specific files kept:
- web/src/lib/supabase.ts
- web/src/lib/utils.ts (cn function for Tailwind, re-exports formatNumber from shared)

All imports updated and tested. Both web and mobile now use the centralized shared folder.
2025-11-14 22:46:39 +00:00
Claude e3e5748536 Create world-class mobile app with advanced multi-language support
Built complete React Native mobile app from scratch with ZERO hard-coded language:

🌍 LANGUAGE SYSTEM (6 Languages):
- EN (English), TR (Türkçe), KMR (Kurmancî), CKB (سۆرانی), AR (العربية), FA (فارسی)
- User selects language on welcome screen
- Language choice persists throughout entire app lifecycle
- Settings screen allows language change anytime
- NO hard-coded strings - all text uses i18next t() function
- RTL support for Arabic, Sorani, and Persian
- AsyncStorage saves user preference permanently

 IMPLEMENTED FEATURES:
- Welcome screen with beautiful language picker (Kurdistan gradient)
- Sign In screen (fully localized)
- Sign Up screen (fully localized)
- Dashboard with quick access to all features
- Settings screen with language switcher
- Navigation system with conditional routing
- Kurdistan flag colors throughout (Kesk/Sor/Zer/Spi/Reş)

📱 SCREENS:
- WelcomeScreen.tsx - Language selection with 6 options
- SignInScreen.tsx - Email/password login
- SignUpScreen.tsx - Registration with validation
- DashboardScreen.tsx - Main hub with balance, stats, quick actions
- SettingsScreen.tsx - Language change, theme, security, logout

🛠 TECH STACK:
- React Native + Expo (TypeScript)
- react-i18next for translations
- @react-native-async-storage/async-storage for persistence
- @react-navigation/native for navigation
- expo-linear-gradient for beautiful gradients
- Custom Kurdistan color system

🎨 UI/UX:
- Professional, modern design
- Kurdistan flag colors consistently used
- Smooth transitions and animations
- Responsive layouts
- Beautiful gradients and shadows

📂 STRUCTURE:
- src/i18n/ - i18n config + 6 language JSON files
- src/screens/ - All app screens
- src/navigation/ - Navigation logic
- src/contexts/ - Language context with AsyncStorage
- src/theme/ - Kurdistan colors
- App.tsx - Main entry with i18n initialization

 USER FLOW:
1. App starts → Welcome screen
2. User selects language → Saved to AsyncStorage
3. User signs in/up → Language follows through
4. Dashboard loads → Everything in selected language
5. User can change language in Settings anytime

This is a production-ready mobile app foundation with world-class
internationalization. Every single text element adapts to user's
chosen language. Perfect execution of the requirement:
"user selects language once, entire app uses that language forever
(until they change it in settings)".
2025-11-14 17:52:45 +00:00