feat: add XCM teleport and CI/CD deployment workflow

Features:
- Add XCMTeleportModal for cross-chain HEZ transfers
- Support Asset Hub and People Chain teleports
- Add "Fund Fees" button with user-friendly tooltips
- Use correct XCM V3 format with teyrchain junction

Fixes:
- Fix PEZ transfer to use Asset Hub API
- Silence unnecessary pallet availability warnings
- Fix transaction loading performance (10 blocks limit)
- Remove Supabase admin_roles dependency

CI/CD:
- Add auto-deploy to VPS on main branch push
- Add version bumping on deploy
- Upload build artifacts for deployment
This commit is contained in:
2026-02-04 11:35:25 +03:00
parent 9d57473000
commit 02094a3635
18 changed files with 1049 additions and 113 deletions
+3 -18
View File
@@ -53,25 +53,10 @@ const AppLayout: React.FC = () => {
useWallet();
const [, _setIsAdmin] = useState(false);
// Check if user is admin
// Admin status is handled by AuthContext via wallet whitelist
// Supabase admin_roles is optional (table may not exist)
React.useEffect(() => {
const checkAdminStatus = async () => {
if (user) {
const { data, error } = await supabase
.from('admin_roles')
.select('role')
.eq('user_id', user.id)
.maybeSingle();
if (error) {
if (import.meta.env.DEV) console.warn('Admin check error:', error);
}
_setIsAdmin(!!data);
} else {
_setIsAdmin(false);
}
};
checkAdminStatus();
_setIsAdmin(false); // Admin status managed by AuthContext
}, [user]);
return (
<div className="min-h-screen bg-gray-950 text-white">