refactor: update identicon theme mapping and Ledger text to Pezkuwi

- Update Identicon.tsx to use pezkuwi theme instead of jdenticon fallback
- Update Ledger app references from Polkadot to Pezkuwi
- Update translation file for Ledger text
This commit is contained in:
2026-01-09 00:18:24 +03:00
parent ea2db6558f
commit 5a5723c686
4 changed files with 8 additions and 6 deletions
@@ -70,7 +70,7 @@ function Request ({ className, metaId, request, url }: Props): React.ReactElemen
</Table>
<div className='requestInfo'>
<Warning className='requestWarning'>
{t('This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger\'s Generic Polkadot App.')}
{t('This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger\'s Generic Pezkuwi App.')}
</Warning>
<Button
className='btnAccept'
@@ -37,7 +37,7 @@ interface Props {
function getMetadataProof (chain: Chain, payload: SignerPayloadJSON) {
const m = chain.definition.rawMetadata;
assert(m, 'To sign with Ledger\'s Polkadot Generic App, the metadata must be present in the extension.');
assert(m, 'To sign with Ledger\'s Pezkuwi Generic App, the metadata must be present in the extension.');
const merkleizedMetadata = merkleizeMetadata(m, {
base58Prefix: chain.ss58Format,
@@ -19,10 +19,12 @@ interface Props {
}
function Identicon ({ className, iconTheme, onCopy, prefix, value }: Props): React.ReactElement<Props> {
// Use jdenticon as default for Pezkuwi
const theme = iconTheme === 'polkadot' || iconTheme === 'substrate' || iconTheme === 'pezkuwi' || !iconTheme
// Map themes: pezkuwi circle identicon, bizinikiwi uses jdenticon
const theme = iconTheme === 'bizinikiwi' || !iconTheme
? 'jdenticon'
: iconTheme;
: iconTheme === 'pezkuwi' || iconTheme === 'polkadot' || iconTheme === 'substrate'
? 'pezkuwi'
: iconTheme;
return (
<div className={className}>
@@ -176,7 +176,7 @@
"App \"{{network}}\" does not seem to be open": "",
"Ledger error: {{errorMessage}}": "",
"assetId": "",
"This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger's Generic Polkadot App.": "",
"This approval will add the metadata to your extension instance, allowing future requests to be decoded using this metadata. It will also allow the use of Ledger's Generic Pezkuwi App.": "",
"No metadata found for this chain. You must upload the metadata to the extension in order to use Ledger.": "",
"This network is not available, please report an issue to update the known chains": "",
"Ledger App": "",