mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
4dce9a9298d5298608a2dd2670c43c00ce5d46c0
Implemented comprehensive tiki (role) system integration with Dashboard: New Features: - Created src/lib/tiki.ts utility library based on real pallet-tiki implementation - Added fetchUserTikis() to query user roles from blockchain - Implemented role scoring, categorization, and display helpers - Added "Roles & Tikis" tab to Dashboard showing: * Primary role from highest-scoring tiki * Total tiki score (sum of all role scores) * All assigned roles with emoji indicators * Role categories (Government, Judiciary, Education, etc.) * Connected wallet address Role System Details: - 49 different tiki types from pallet-tiki (Serok, Wezir, Dadger, etc.) - Role assignment types: Automatic, Appointed, Elected, Earned - Score-based hierarchy (10-250 points per role) - Dynamic role display based on blockchain state - Fallback to "Member" when no wallet connected or no tikis assigned Dashboard Improvements: - Fixed email verification using Supabase auth.resend() - Fixed Edit Profile button to navigate to /profile/settings - Added Tiki Score card showing total score and role count - Expanded stats grid to 4 columns (Status, Join Date, Role, Tiki Score) - Real-time role updates when wallet connects/disconnects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
HTML
75.2%
TypeScript
21.3%
Rust
1.9%
PLpgSQL
0.7%
JavaScript
0.6%
Other
0.2%