Kurdistan Tech Ministry
2fa7623d17
fix: correct tiki role field name and update card header text
...
- GovernmentEntrance: changed tiki.tiki_type to tiki.tikiRole
- Citizens: changed KOMARGEHA to KOMARI KURDISTAN
2026-02-10 21:37:58 +03:00
Kurdistan Tech Ministry
a0fafb2f75
feat(Citizens): replace PNG citizen card with professional HTML/CSS design
...
- New digital citizen ID card with Kurdish flag colors gradient
- Added security pattern overlay for authenticity
- Header with sun symbol, Republic of Kurdistan branding
- Clean layout: photo, personal info, NFT/citizen number badges
- Verified badge and corner decorations
- Footer with blockchain info
2026-02-10 21:23:27 +03:00
Kurdistan Tech Ministry
bbee091e88
feat(Citizens): replace PNG citizen card with professional HTML/CSS design
...
- New digital citizen ID card with Kurdish flag colors gradient
- Added security pattern overlay for authenticity
- Header with sun symbol, Republic of Kurdistan branding
- Clean layout: photo, personal info, NFT/citizen number badges
- Verified badge and corner decorations
- Footer with blockchain info
2026-02-10 21:23:27 +03:00
Kurdistan Tech Ministry
f8710efade
fix(GovernmentEntrance): use correct citizen ID format for verification
2026-02-10 21:20:58 +03:00
Kurdistan Tech Ministry
d6ae97d70b
fix(GovernmentEntrance): use correct citizen ID format for verification
2026-02-10 21:20:58 +03:00
Kurdistan Tech Ministry
3fcfb81360
Fix CitizensIssues: add missing filter state variables and fix dependency array
2026-02-10 19:18:44 +03:00
Kurdistan Tech Ministry
3fd726e1f2
Fix CitizensIssues: add missing filter state variables and fix dependency array
2026-02-10 19:18:44 +03:00
Kurdistan Tech Ministry
1e250fee22
Add debug logging to handleCitizensIssue
2026-02-10 18:41:53 +03:00
Kurdistan Tech Ministry
66e16c62f0
Add debug logging to handleCitizensIssue
2026-02-10 18:41:53 +03:00
Kurdistan Tech Ministry
cb00407a26
fix: remove unused variables (lint errors)
2026-02-10 18:14:33 +03:00
Kurdistan Tech Ministry
fbbb0486eb
fix: remove unused variables (lint errors)
2026-02-10 18:14:33 +03:00
Kurdistan Tech Ministry
e53be65975
fix: use People Chain API for tiki and identityKyc pallets
...
- DashboardContext: query tiki/kyc from peopleApi instead of relay api
- KycApprovalTab: use peopleApi for identityKyc.pendingKycApplications
- NewCitizenApplication: all KYC operations now use People Chain
These pallets are on People Chain, not Relay Chain. This fixes the
"mafe te tuneye" error when accessing Citizens portal.
2026-02-10 18:09:26 +03:00
Kurdistan Tech Ministry
82a6a51b22
fix: use People Chain API for tiki and identityKyc pallets
...
- DashboardContext: query tiki/kyc from peopleApi instead of relay api
- KycApprovalTab: use peopleApi for identityKyc.pendingKycApplications
- NewCitizenApplication: all KYC operations now use People Chain
These pallets are on People Chain, not Relay Chain. This fixes the
"mafe te tuneye" error when accessing Citizens portal.
2026-02-10 18:09:26 +03:00
Kurdistan Tech Ministry
76e024276c
fix: use getAllScoresWithFallback in Dashboard.tsx
...
Both AccountBalance.tsx and Dashboard.tsx now use the same
frontend fallback for trust score calculation until runtime upgrade.
2026-02-07 01:48:06 +03:00
Kurdistan Tech Ministry
e12d08d356
fix: use getAllScoresWithFallback in Dashboard.tsx
...
Both AccountBalance.tsx and Dashboard.tsx now use the same
frontend fallback for trust score calculation until runtime upgrade.
2026-02-07 01:48:06 +03:00
Kurdistan Tech Ministry
ba046636b8
debug: add console logs for trust score calculation
2026-02-07 01:39:11 +03:00
Kurdistan Tech Ministry
e787eaac15
debug: add console logs for trust score calculation
2026-02-07 01:39:11 +03:00
Kurdistan Tech Ministry
6b1e07dadf
fix: use frontend fallback for trust score calculation
...
On-chain trust pallet exists but StakingInfoProvider returns None,
causing trust score to be 0 even when user has stake. Use frontend
calculation until runtime upgrade is deployed.
2026-02-07 01:25:05 +03:00
Kurdistan Tech Ministry
598c9f2fec
fix: use frontend fallback for trust score calculation
...
On-chain trust pallet exists but StakingInfoProvider returns None,
causing trust score to be 0 even when user has stake. Use frontend
calculation until runtime upgrade is deployed.
2026-02-07 01:25:05 +03:00
Kurdistan Tech Ministry
91070435d5
feat: add frontend fallback for staking and trust scores
...
Until runtime upgrade is deployed, calculate scores on frontend:
shared/lib/scores.ts:
- getFrontendStakingScore: Read stake from Relay Chain, track in localStorage
- getFrontendTrustScore: Calculate using pallet formula
- getAllScoresWithFallback: Combined score fetching with fallback
Formula (matching pezpallet-trust):
- weighted_sum = staking*100 + referral*300 + perwerde*300 + tiki*300
- trust_score = (staking * weighted_sum) / 100
Components updated:
- AccountBalance.tsx: Use getAllScoresWithFallback
- HeroSection.tsx: Use getTrustScoreWithFallback
2026-02-07 00:44:04 +03:00
Kurdistan Tech Ministry
90b8204c25
feat: add frontend fallback for staking and trust scores
...
Until runtime upgrade is deployed, calculate scores on frontend:
shared/lib/scores.ts:
- getFrontendStakingScore: Read stake from Relay Chain, track in localStorage
- getFrontendTrustScore: Calculate using pallet formula
- getAllScoresWithFallback: Combined score fetching with fallback
Formula (matching pezpallet-trust):
- weighted_sum = staking*100 + referral*300 + perwerde*300 + tiki*300
- trust_score = (staking * weighted_sum) / 100
Components updated:
- AccountBalance.tsx: Use getAllScoresWithFallback
- HeroSection.tsx: Use getTrustScoreWithFallback
2026-02-07 00:44:04 +03:00
Kurdistan Tech Ministry
e8808e1a06
fix: formatBalance now correctly parses hex values from blockchain
2026-02-06 22:14:56 +03:00
Kurdistan Tech Ministry
f93681ed96
fix: formatBalance now correctly parses hex values from blockchain
2026-02-06 22:14:56 +03:00
Kurdistan Tech Ministry
daff782096
fix: support both sonner and shadcn toast APIs in error handler
2026-02-06 21:42:27 +03:00
Kurdistan Tech Ministry
13646d6e8c
fix: support both sonner and shadcn toast APIs in error handler
2026-02-06 21:42:27 +03:00
Kurdistan Tech Ministry
789920ed80
fix: query pezRewards and stakingScore from People Chain
...
- pezRewards pallet is on People Chain, not Relay Chain
- stakingScore pallet is also on People Chain
- Update getStakingInfo to accept optional peopleApi parameter
- Update StakingDashboard to pass peopleApi
2026-02-06 21:28:56 +03:00
Kurdistan Tech Ministry
6b26f434dd
fix: query pezRewards and stakingScore from People Chain
...
- pezRewards pallet is on People Chain, not Relay Chain
- stakingScore pallet is also on People Chain
- Update getStakingInfo to accept optional peopleApi parameter
- Update StakingDashboard to pass peopleApi
2026-02-06 21:28:56 +03:00
Kurdistan Tech Ministry
47415fd75d
fix: update score system to use correct People Chain APIs
...
- Remove LP staking score (not available in blockchain)
- All scores now fetched from People Chain
- Add Start Score Tracking button to Dashboard
- Add staking status display showing tracking duration
2026-02-06 20:48:27 +03:00
Kurdistan Tech Ministry
61eb5cff20
fix: update score system to use correct People Chain APIs
...
- Remove LP staking score (not available in blockchain)
- All scores now fetched from People Chain
- Add Start Score Tracking button to Dashboard
- Add staking status display showing tracking duration
2026-02-06 20:48:27 +03:00
Kurdistan Tech Ministry
9865e32658
feat: add LP staking score and DOT/ETH/BTC tokens
2026-02-06 20:01:12 +03:00
Kurdistan Tech Ministry
b0c3626e7a
feat: add LP staking score and DOT/ETH/BTC tokens
2026-02-06 20:01:12 +03:00
Kurdistan Tech Ministry
1d6752f66d
fix: restore web3FromAddress for browser extension signing
2026-02-06 19:38:59 +03:00
Kurdistan Tech Ministry
1f14cd475f
fix: restore web3FromAddress for browser extension signing
2026-02-06 19:38:59 +03:00
Kurdistan Tech Ministry
8750d9fe2e
fix: fetch scores from correct chains (People + Relay)
2026-02-06 19:33:42 +03:00
Kurdistan Tech Ministry
9fd0805a97
fix: fetch scores from correct chains (People + Relay)
2026-02-06 19:33:42 +03:00
Kurdistan Tech Ministry
f5938e2847
fix: dynamic token dropdown based on available pools, add PEZ token
2026-02-06 19:30:33 +03:00
Kurdistan Tech Ministry
215f492c76
fix: dynamic token dropdown based on available pools, add PEZ token
2026-02-06 19:30:33 +03:00
Kurdistan Tech Ministry
0b2a3feba8
fix: use People Chain API for citizen verification, improve input UI
2026-02-06 19:21:49 +03:00
Kurdistan Tech Ministry
dff6d69673
fix: use People Chain API for citizen verification, improve input UI
2026-02-06 19:21:49 +03:00
Kurdistan Tech Ministry
b1ddd7da6e
fix: use People Chain API for referral data
2026-02-06 19:14:25 +03:00
Kurdistan Tech Ministry
87e17cf9bd
fix: use People Chain API for referral data
2026-02-06 19:14:25 +03:00
Kurdistan Tech Ministry
6d2721f1ba
fix: restore index parameter in tikis map
2026-02-06 19:00:35 +03:00
Kurdistan Tech Ministry
eff8a642a0
fix: restore index parameter in tikis map
2026-02-06 19:00:35 +03:00
Kurdistan Tech Ministry
93939ac6b7
fix: fetch tiki/role data from People Chain instead of Relay Chain
2026-02-06 18:06:28 +03:00
Kurdistan Tech Ministry
e80533505f
fix: fetch tiki/role data from People Chain instead of Relay Chain
2026-02-06 18:06:28 +03:00
Kurdistan Tech Ministry
99ef70dfb7
fix: make LP stake button always visible with contrasting colors
2026-02-06 16:06:51 +03:00
Kurdistan Tech Ministry
6f3c1abdca
fix: make LP stake button always visible with contrasting colors
2026-02-06 16:06:51 +03:00
Kurdistan Tech Ministry
b91f897a2d
feat: add LP token staking with duration selection
2026-02-06 15:56:14 +03:00
Kurdistan Tech Ministry
30ea31dd64
feat: add LP token staking with duration selection
2026-02-06 15:56:14 +03:00
Kurdistan Tech Ministry
55aeb909c6
feat: add LP staking UI for reward pools
2026-02-06 14:54:41 +03:00