feat: update branding, genesis hash, and fix UI issues

- Update PEZKUWI_GENESIS to correct hash (0x1fc56b6a5fcd50358707f69b2b0bb0c8ab1fea2bcfc5eba7279efbcafef642af)
- Change highlight color from pink/orange to Kurdistan green (#86e62a)
- Add critical CSS in index.html to fix initial theme load issue
- Fix metadata badge showing incorrectly on every page load
- Fix block time text rendering vertically in explorer
- Update SVG logos with correct branding colors
This commit is contained in:
github-actions[bot]
2026-01-30 11:10:18 +03:00
parent 7e3a96ef5a
commit b2e2798d8c
15 changed files with 208 additions and 44 deletions
+15 -2
View File
@@ -81,8 +81,21 @@ function filterAll (api: ApiPromise, all: ExtensionKnown[]): Extensions {
.map((info): ExtensionInfo | null => {
const current = info.known.find(({ genesisHash }) => api.genesisHash.eq(genesisHash)) || null;
// if we cannot find it as known, or either the specVersion or properties mismatches, mark it as upgradable
return !current || api.runtimeVersion.specVersion.gtn(current.specVersion) || !hasCurrentProperties(api, info)
// Only mark as upgradable if:
// 1. Extension HAS metadata for this chain but specVersion is outdated, OR
// 2. Extension HAS metadata but properties (decimals, symbol, ss58) have changed
// Do NOT mark as upgradable if extension simply doesn't have metadata for this chain yet
// (that's a fresh install scenario, not an "update needed" scenario)
if (!current) {
// No metadata for this chain - don't mark as needing update
// The extension will get metadata when user explicitly provides it
return null;
}
// Check if specVersion is outdated or properties have changed
const needsUpdate = api.runtimeVersion.specVersion.gtn(current.specVersion) || !hasCurrentProperties(api, info);
return needsUpdate
? { ...info, current }
: null;
})