Commit Graph

9 Commits

Author SHA1 Message Date
pezkuwichain 2017ae77da chore: eliminate all ESLint warnings, enforce --max-warnings 0
Behavior-preserving lint cleanup of the 30 pre-existing warnings, fixed
by category (no blanket suppression):
- no-explicit-any (19): precise local types / ApiPromise for Substrate
  dynamic queries + 'as unknown as' casts (same pattern as TokensCard).
- no-console (4): dev-gated (import.meta.env.DEV) / warn; main.tsx prod
  console-suppression kept with a scoped documented disable.
- no-non-null-assertion (4): replaced '!' with explicit guards reusing
  the existing fallback/return paths.
- react-hooks/exhaustive-deps (3): missing dep is 't' (i18n) — adding it
  would re-fire blockchain fetches on language change; kept deps with a
  documented intentional disable.

Tighten the lint gate from --max-warnings 30 to 0 so no new warnings can
land. Verified: tsc 0 errors, eslint --max-warnings 0 clean, vite build ok.
2026-06-14 09:21:12 -07:00
pezkuwichain c4282f5870 feat(i18n): replace all hardcoded strings with translation calls
- Add translation keys for dashboard, send, receive, history, swap,
  pools, staking, lpStaking, fees, tokens, errors, validation, time,
  and context sections to types.ts and all 6 language files
- Replace hardcoded Kurdish/Turkish strings in all wallet components
  with useTranslation() hook t() calls
- Replace hardcoded strings in non-React files (crypto, utils,
  error-tracking, wallet-storage, contexts) with standalone translate()
- Fix Turkish strings incorrectly used in Kurdish codebase
2026-02-14 18:16:08 +03:00
pezkuwichain 4d4eb72722 fix: get correct LP token ID from assetConversion pool 2026-02-07 17:59:53 +03:00
pezkuwichain cf3353a216 fix: wait for transaction finalization in LP staking 2026-02-07 17:48:55 +03:00
pezkuwichain b641c742cc fix: change debug console.log to console.warn for lint 2026-02-07 02:26:35 +03:00
pezkuwichain 7eacb94350 fix: LP staking query format - use separate args instead of array 2026-02-07 02:24:16 +03:00
pezkuwichain 67b30daca8 fix: tiki score, staking lookup, LP balance, teleport, DOT swap
- Fix tiki: use userTikis storage instead of userRoles
- Add tiki name to score mapping (welati=10, serok=50, etc)
- Improve staking ledger lookup with debug logging
- Fix LP balance fetching using poolId directly
- Change teleport placeholder from 0.5 to empty
- Add DOT token to swap list with 10 decimals
2026-02-07 02:20:04 +03:00
pezkuwichain c35c538678 fix: LP staking logout issue and Kurdish text correction
- Replace window.location.reload() with onClose() in LPStakingModal
- Fix Turkish word "ise" to Kurdish "be" in Rewards score formula
2026-02-07 02:07:37 +03:00
pezkuwichain 122e38e306 feat: add staking and presale buttons to wallet quick actions
- Change quick actions grid from 2x2 to 2x3 with smaller buttons
- Add LP Staking modal with stake/unstake/claim rewards functionality
- Add Presale button with coming soon message
2026-02-07 01:20:16 +03:00