diff --git a/package.json b/package.json index 89101898..38d73341 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@tanstack/react-query": "^5.40.0", - "@vocdoni/chakra-components": "~0.9.1", + "@vocdoni/chakra-components": "^0.9.6", "@vocdoni/extended-sdk": "~0.2.0", "@vocdoni/sdk": "~0.9.0", "date-fns": "^2.29.3", diff --git a/src/components/Process/Detail.tsx b/src/components/Process/Detail.tsx index cb3dfb86..c53c3958 100644 --- a/src/components/Process/Detail.tsx +++ b/src/components/Process/Detail.tsx @@ -51,7 +51,12 @@ const Detail = () => { const id = election.id const raw = election.raw as IElectionInfoResponse - const censusOrigin = ucfirst(raw.census.censusOrigin.replace('_', ' ').toLocaleLowerCase()) + const censusOrigin = raw.census.censusOrigin + .replaceAll('_', ' ') + .toLocaleLowerCase() + .split(' ') + .map((x) => ucfirst(x)) + .join(' ') const encryptedVotes = raw.voteMode.encryptedVotes ? t('processes.envelope_type_badge.encrypted_votes') : t('processes.envelope_type_badge.not_encrypted_votes') diff --git a/src/components/Transactions/TxDetails/TxDetails.tsx b/src/components/Transactions/TxDetails/TxDetails.tsx index 89b2713c..0b7c5331 100644 --- a/src/components/Transactions/TxDetails/TxDetails.tsx +++ b/src/components/Transactions/TxDetails/TxDetails.tsx @@ -21,6 +21,7 @@ export const TxDetailsGrid = ({ txInfo, tx }: Tx) => { } const txHash = ensure0x(hash) + const signer = ensure0x(txInfo.signer) let txType: TransactionType | undefined = undefined if (tx) { txType = Object.keys(tx)[0] as TransactionType @@ -63,6 +64,22 @@ export const TxDetailsGrid = ({ txInfo, tx }: Tx) => { ), }, + { + label: t('validators.account', { defaultValue: 'Account' }), + children: ( + + {signer} + + ), + }, { label: t('transactions.block', { defaultValue: 'Block' }), children: ( diff --git a/src/i18n/locales/ca.json b/src/i18n/locales/ca.json index ad98a111..a8f5f4ef 100644 --- a/src/i18n/locales/ca.json +++ b/src/i18n/locales/ca.json @@ -153,8 +153,8 @@ "processes": { "envelope_recount": "Recompte de sobres", "envelope_type_badge": { - "encrypted_votes": "Vots encriptats", - "not_encrypted_votes": "Vots no encriptats" + "encrypted_votes": "Vots Encriptats", + "not_encrypted_votes": "Vots No Encriptats" }, "invalid_election": "Elecció no vàlida", "process_mode_badge": { diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index ddbdb4d1..895373d7 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -148,8 +148,8 @@ "processes": { "envelope_recount": "Envelope recount", "envelope_type_badge": { - "encrypted_votes": "Encrypted votes", - "not_encrypted_votes": "Not encrypted votes" + "encrypted_votes": "Encrypted Votes", + "not_encrypted_votes": "Not Encrypted Votes" }, "invalid_election": "Invalid Election", "process_mode_badge": { diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index d1c62b1c..18b02e0e 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -153,8 +153,8 @@ "processes": { "envelope_recount": "Recuento de sobres", "envelope_type_badge": { - "encrypted_votes": "Votos cifrados", - "not_encrypted_votes": "Votos no cifrados" + "encrypted_votes": "Votos Cifrados", + "not_encrypted_votes": "Votos No Cifrados" }, "invalid_election": "Elección no válida", "process_mode_badge": { diff --git a/yarn.lock b/yarn.lock index a4263f6c..4b3ddac2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1974,12 +1974,12 @@ magic-string "^0.27.0" react-refresh "^0.14.0" -"@vocdoni/chakra-components@~0.9.1": - version "0.9.6" - resolved "https://registry.yarnpkg.com/@vocdoni/chakra-components/-/chakra-components-0.9.6.tgz#a0ff7160a50ad31189c238673ac809d8c40b34ad" - integrity sha512-8mOmEQ1yQvKWkAiAM3ohXaSZ7cXdWeIpItCZhb/QN/WIC//QoYBQk+RCnCZQjH4dmLsfbAVgNIyjWcuerYNXjQ== +"@vocdoni/chakra-components@^0.9.6": + version "0.9.16" + resolved "https://registry.yarnpkg.com/@vocdoni/chakra-components/-/chakra-components-0.9.16.tgz#87f3c4ed60066f9d4d24ca4c2d24b0c2d9bb38f5" + integrity sha512-K/FAJmln9bPBYJj8SapBXp2uyqCaeCV2+rduVL6W7Pcjc8W3ofIe8J3drVy/dlEzxaiXk27mfHPvKBiF/xv/Ug== dependencies: - "@vocdoni/react-providers" "~0.5.1" + "@vocdoni/react-providers" "~0.5.5" "@vocdoni/extended-sdk@~0.2.0": version "0.2.0" @@ -1994,10 +1994,10 @@ long "^5.2.1" protobufjs "^7.1.2" -"@vocdoni/react-providers@~0.5.1": - version "0.5.4" - resolved "https://registry.yarnpkg.com/@vocdoni/react-providers/-/react-providers-0.5.4.tgz#638edb351446789ceab99bd7828f02a345fb2569" - integrity sha512-3m1b9KnM/2xeRmsBg9yR9wj5tOEEbMcU1lqzRvAU+HPeTsth5qU9g6P3XjuFTU00Z7jaGVdm4Xa/ltN/+HKNAg== +"@vocdoni/react-providers@~0.5.5": + version "0.5.5" + resolved "https://registry.yarnpkg.com/@vocdoni/react-providers/-/react-providers-0.5.5.tgz#59f7b14435cfb84d633ad6b48d88d48a55929c4d" + integrity sha512-qi/5dP7EZScDfxihaXVX0Rq6y6BMRdal3pScF/ZEppSrwoSoMBigHUGNooPlOU3jiRUX42wsQs5jNZxTdTJmKQ== "@vocdoni/sdk@~0.9.0": version "0.9.0"