From 78e93e9766ec659684a18a82ad3eb38f3697e5f8 Mon Sep 17 00:00:00 2001 From: SatoshiQaziMuhammed Date: Fri, 12 Jun 2026 23:28:05 -0700 Subject: [PATCH] feat(web): PEZ-20 badge on PEZ & USDT balance cards (#17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(ci): unblock deploy pipeline (audit gate + orphan submodule) The Quality Gate & Deploy pipeline was failing at security-audit (npm audit --audit-level=high), which blocks telegram-gate and the whole deploy chain — that is why production was serving a stale bundle. - npm audit fix (no --force, lockfile only): clears the critical vitest advisory (GHSA-5xrq-8626-4rwp) and the high elliptic one; only low- severity items remain, so 'npm audit --audit-level=high' now exits 0. - Remove the orphaned 'exchange' gitlink: it is an empty submodule pointer with no .gitmodules mapping, which made git print 'fatal: no submodule mapping found' during checkout. Verified: lint, test (32 passed), and vite build all pass; audit gate is green. No package.json changes. * feat(web): PEZ-20 badge on PEZ and USDT balance cards Add a small reusable Pez20Badge pill next to the PEZ and USDT tokens in the wallet balance view, linking to the Token Standards docs. These are fungible assets on Asset Hub, i.e. the PEZ-20 standard — this gives users the familiar ERC-20-style mental model at a glance. Additive only: no labels removed, native HEZ is intentionally not badged (it is the native/gas token, not a PEZ-20 asset). --- web/src/components/AccountBalance.tsx | 3 +++ web/src/components/Pez20Badge.tsx | 28 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 web/src/components/Pez20Badge.tsx diff --git a/web/src/components/AccountBalance.tsx b/web/src/components/AccountBalance.tsx index 680636c1..243a5379 100644 --- a/web/src/components/AccountBalance.tsx +++ b/web/src/components/AccountBalance.tsx @@ -5,6 +5,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Wallet, TrendingUp, RefreshCw, Award, Plus, Coins, Send, Shield, Users, Fuel, Lock } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { ASSET_IDS, getAssetSymbol } from '@pezkuwi/lib/wallet'; +import { Pez20Badge } from './Pez20Badge'; import { AddTokenModal } from './AddTokenModal'; import { TransferModal } from './TransferModal'; import { XCMTeleportModal } from './XCMTeleportModal'; @@ -811,6 +812,7 @@ export const AccountBalance: React.FC = () => { {t('balance.pezBalance')} +