diff --git a/packages/ui/.papi/metadata/acala.scale b/packages/ui/.papi/metadata/acala.scale index f2ae0465..68d39f14 100644 Binary files a/packages/ui/.papi/metadata/acala.scale and b/packages/ui/.papi/metadata/acala.scale differ diff --git a/packages/ui/.papi/metadata/bifrostDot.scale b/packages/ui/.papi/metadata/bifrostDot.scale index fbd5731c..9a6e81f0 100644 Binary files a/packages/ui/.papi/metadata/bifrostDot.scale and b/packages/ui/.papi/metadata/bifrostDot.scale differ diff --git a/packages/ui/.papi/metadata/dot.scale b/packages/ui/.papi/metadata/dot.scale index 9ddad64d..6d1a3704 100644 Binary files a/packages/ui/.papi/metadata/dot.scale and b/packages/ui/.papi/metadata/dot.scale differ diff --git a/packages/ui/.papi/metadata/dotAssetHub.scale b/packages/ui/.papi/metadata/dotAssetHub.scale index ff4478db..b48010a4 100644 Binary files a/packages/ui/.papi/metadata/dotAssetHub.scale and b/packages/ui/.papi/metadata/dotAssetHub.scale differ diff --git a/packages/ui/.papi/metadata/dotPpl.scale b/packages/ui/.papi/metadata/dotPpl.scale index 7dd1ad11..7f58fb01 100644 Binary files a/packages/ui/.papi/metadata/dotPpl.scale and b/packages/ui/.papi/metadata/dotPpl.scale differ diff --git a/packages/ui/.papi/metadata/hydration.scale b/packages/ui/.papi/metadata/hydration.scale index 65ae789b..85126702 100644 Binary files a/packages/ui/.papi/metadata/hydration.scale and b/packages/ui/.papi/metadata/hydration.scale differ diff --git a/packages/ui/.papi/metadata/ksm.scale b/packages/ui/.papi/metadata/ksm.scale index 783951f3..294de968 100644 Binary files a/packages/ui/.papi/metadata/ksm.scale and b/packages/ui/.papi/metadata/ksm.scale differ diff --git a/packages/ui/.papi/metadata/ksmAssetHub.scale b/packages/ui/.papi/metadata/ksmAssetHub.scale index 2a2f2fa7..e6037129 100644 Binary files a/packages/ui/.papi/metadata/ksmAssetHub.scale and b/packages/ui/.papi/metadata/ksmAssetHub.scale differ diff --git a/packages/ui/.papi/metadata/ksmPpl.scale b/packages/ui/.papi/metadata/ksmPpl.scale index 15d8dad0..183f6b5d 100644 Binary files a/packages/ui/.papi/metadata/ksmPpl.scale and b/packages/ui/.papi/metadata/ksmPpl.scale differ diff --git a/packages/ui/.papi/metadata/pasPpl.scale b/packages/ui/.papi/metadata/pasPpl.scale index 0a1f4eaa..be6fc6cd 100644 Binary files a/packages/ui/.papi/metadata/pasPpl.scale and b/packages/ui/.papi/metadata/pasPpl.scale differ diff --git a/packages/ui/.papi/metadata/paseo.scale b/packages/ui/.papi/metadata/paseo.scale index 353b1f7a..a52b204e 100644 Binary files a/packages/ui/.papi/metadata/paseo.scale and b/packages/ui/.papi/metadata/paseo.scale differ diff --git a/packages/ui/cypress/support/page-objects/multisigPage.ts b/packages/ui/cypress/support/page-objects/multisigPage.ts index f5407198..61997b79 100644 --- a/packages/ui/cypress/support/page-objects/multisigPage.ts +++ b/packages/ui/cypress/support/page-objects/multisigPage.ts @@ -23,6 +23,7 @@ export const multisigPage = { transactionList: () => cy.get('[data-cy=container-transaction-list]', { timeout: 20000 }), pendingTransactionItem: (timeout = 4000) => cy.get('[data-cy=container-pending-tx-item]', { timeout }), + dateLabel: () => cy.get('[data-cy=label-date]'), pendingTransactionCallName: () => cy.get('[data-cy=label-call-name]'), unknownCallIcon: () => cy.get('[data-cy=icon-unknown-call]'), unknownCallAlert: () => cy.get('[data-cy=alert-no-call-data]') diff --git a/packages/ui/cypress/tests/hydration-extrinsic-display.cy.ts b/packages/ui/cypress/tests/hydration-extrinsic-display.cy.ts index 5de44264..79afd5b1 100644 --- a/packages/ui/cypress/tests/hydration-extrinsic-display.cy.ts +++ b/packages/ui/cypress/tests/hydration-extrinsic-display.cy.ts @@ -27,6 +27,7 @@ describe('Verify extrinsics display', () => { .should('be.visible') .within(() => { multisigPage.pendingTransactionItem().should('have.length', 1) + multisigPage.dateLabel().should('have.length', 1).contains('November 5, 2024') multisigPage.pendingTransactionItem().within(() => { multisigPage.pendingTransactionCallName().should('contain.text', 'Router.sell') multisigPage.unknownCallIcon().should('not.exist') diff --git a/packages/ui/cypress/tests/unknown-transaction.cy.ts b/packages/ui/cypress/tests/unknown-transaction.cy.ts index a9a01d1b..42482e59 100644 --- a/packages/ui/cypress/tests/unknown-transaction.cy.ts +++ b/packages/ui/cypress/tests/unknown-transaction.cy.ts @@ -22,6 +22,8 @@ describe('Unknown Transaction', () => { .should('be.visible') .within(() => { multisigPage.pendingTransactionItem().should('have.length', 2) + multisigPage.dateLabel().should('have.length', 1) + multisigPage.dateLabel().eq(0).contains('September 12, 2024') multisigPage .pendingTransactionItem() .eq(1) diff --git a/packages/ui/src/components/CallInfo.tsx b/packages/ui/src/components/CallInfo.tsx index fcf32ee5..1dafce29 100644 --- a/packages/ui/src/components/CallInfo.tsx +++ b/packages/ui/src/components/CallInfo.tsx @@ -58,8 +58,8 @@ const isBatchedCall = (type: string, value: string) => { return ['Utility.batch', 'Utility.batch_all', 'Utility.force_batch'].includes(`${type}.${value}`) } -const formatBalance = (amount: bigint, label: string, chainInfo: ChainInfoHuman) => ( -