mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-05-01 11:17:59 +00:00
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:
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user