Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion src/components/Process/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
17 changes: 17 additions & 0 deletions src/components/Transactions/TxDetails/TxDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,6 +64,22 @@ export const TxDetailsGrid = ({ txInfo, tx }: Tx) => {
</ReducedTextAndCopy>
),
},
{
label: t('validators.account', { defaultValue: 'Account' }),
children: (
<ReducedTextAndCopy
breakPoint={{ base: true, lg: false }}
p={0}
color={'textAccent1'}
toCopy={signer}
fontWeight={'normal'}
h={0}
fontSize={'md'}
>
{signer}
</ReducedTextAndCopy>
),
},
{
label: t('transactions.block', { defaultValue: 'Block' }),
children: (
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down