Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0807a99
Improve account from/to display on confirmation page
jpuri Feb 18, 2026
b2b247b
Improve account from/to display on confirmation page
jpuri Feb 18, 2026
ffd8f44
Improve account from/to display on confirmation page
jpuri Feb 18, 2026
2abee03
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 18, 2026
4b78bd3
update
jpuri Feb 18, 2026
f33032d
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 18, 2026
743adc3
update
jpuri Feb 18, 2026
fb2012a
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 18, 2026
220aad5
update
jpuri Feb 18, 2026
14ab1f1
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 18, 2026
5157ec5
update
jpuri Feb 18, 2026
beda865
update
jpuri Feb 18, 2026
95f0a1a
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 18, 2026
e27cdbf
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 19, 2026
b98b72f
update
jpuri Feb 19, 2026
0446eda
Merge branch 'main' of https://github.com/MetaMask/metamask-extension…
jpuri Feb 19, 2026
9395f27
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 19, 2026
62c2a85
update
jpuri Feb 19, 2026
4a4b801
update
jpuri Feb 19, 2026
7aa0670
update
jpuri Feb 19, 2026
2674f51
update
jpuri Feb 19, 2026
6ab888a
update
jpuri Feb 19, 2026
00a3186
update
jpuri Feb 19, 2026
daed705
update
jpuri Feb 20, 2026
1a3bdfa
update
jpuri Feb 20, 2026
92d9f18
update
jpuri Feb 20, 2026
d18ed7e
update
jpuri Feb 20, 2026
cb382ac
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 20, 2026
396a05b
update
jpuri Feb 20, 2026
dd53e3f
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 20, 2026
6f688ea
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 20, 2026
18425fb
update
jpuri Feb 23, 2026
4fa6721
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 23, 2026
1140d11
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 23, 2026
108b1da
update
jpuri Feb 23, 2026
9e0f7bc
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 23, 2026
1c3c39a
update
jpuri Feb 23, 2026
ec766a3
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 23, 2026
4a47058
update
jpuri Feb 23, 2026
28e76cf
Merge branch 'confirm_acc_section_fix' of https://github.com/MetaMask…
jpuri Feb 23, 2026
af73425
update
jpuri Feb 23, 2026
e250173
update
jpuri Feb 23, 2026
a742066
update
jpuri Feb 23, 2026
ee2ff0e
update
jpuri Feb 23, 2026
66459a0
Merge branch 'main' into confirm_acc_section_fix
jpuri Feb 23, 2026
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
9 changes: 4 additions & 5 deletions test/e2e/tests/petnames/petnames-transactions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { createInternalTransaction } from '../../page-objects/flows/transaction';

const ADDRESS_MOCK = '0x0c54fccd2e384b4bb6f2e405bf5cbc15a017aafb';
const ABBREVIATED_ADDRESS_MOCK = '0x0c54F...7AaFb';
const CUSTOM_NAME_MOCK = 'Custom Name';
const PROPOSED_NAME_MOCK = 'test4.lens';

Expand All @@ -30,14 +29,14 @@
await testDapp.openTestDappPage();
await testDapp.clickSimpleSendButton();
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
await confirmation.checkNameIsDisplayed(

Check failure on line 32 in test/e2e/tests/petnames/petnames-transactions.spec.ts

View workflow job for this annotation

GitHub Actions / Test lint

Replace `⏎··········ADDRESS_MOCK,⏎··········false,⏎········` with `ADDRESS_MOCK,·false`
ABBREVIATED_ADDRESS_MOCK,
ADDRESS_MOCK,
false,
);

// Test custom name.
await confirmation.saveName({
value: ABBREVIATED_ADDRESS_MOCK,
value: ADDRESS_MOCK,
name: CUSTOM_NAME_MOCK,
});
await confirmation.checkPageIsLoaded();
Expand Down Expand Up @@ -79,14 +78,14 @@
const confirmation = new Confirmation(driver);
await loginWithBalanceValidation(driver);
await createWalletSendTransaction(ADDRESS_MOCK, driver);
await confirmation.checkNameIsDisplayed(

Check failure on line 81 in test/e2e/tests/petnames/petnames-transactions.spec.ts

View workflow job for this annotation

GitHub Actions / Test lint

Replace `⏎··········ADDRESS_MOCK,⏎··········false,⏎········` with `ADDRESS_MOCK,·false`
ABBREVIATED_ADDRESS_MOCK,
ADDRESS_MOCK,
false,
);

// Test custom name.
await confirmation.saveName({
value: ABBREVIATED_ADDRESS_MOCK,
value: ADDRESS_MOCK,
name: CUSTOM_NAME_MOCK,
});

Expand Down
26 changes: 21 additions & 5 deletions ui/pages/confirmations/components/confirm/info/info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { useTransactionFocusEffect } from '../../../hooks/useTransactionFocusEffect';
import { SignatureRequestType } from '../../../types/confirm';
import { AddEthereumChain } from '../../../external/add-ethereum-chain/add-ethereum-chain';
import { ConfirmInfoSection } from '../../../../../components/app/confirm/info/row/section';
import { Skeleton } from '../../../../../components/component-library/skeleton';
import {
ConfirmationLoader,
Expand All @@ -32,10 +31,27 @@
// TODO: Fix in https://github.com/MetaMask/metamask-extension/issues/31860
// eslint-disable-next-line @typescript-eslint/naming-convention
export const InfoSkeleton = () => (
<ConfirmInfoSection data-testid="confirmation__info_skeleton">
<Skeleton height="16px" width="30%" marginBottom={2} />
<Skeleton height="48px" width="100%" />
</ConfirmInfoSection>
<>
<Skeleton
height="60px"
width="60px"
style={{
marginTop: 32,
marginBottom: 10,
borderRadius: '50%',
justifySelf: 'center',
alignSelf: 'center',
}}
/>
<Skeleton
height="32px"
width="200px"
style={{ marginBottom: 20, justifySelf: 'center', alignSelf: 'center' }}
/>
<Skeleton height="72px" width="100%" style={{ marginBottom: 12 }} data-testid="confirmation__info_skeleton"/>

Check failure on line 51 in ui/pages/confirmations/components/confirm/info/info.tsx

View workflow job for this annotation

GitHub Actions / Test lint

Replace `·height="72px"·width="100%"·style={{·marginBottom:·12·}}·data-testid="confirmation__info_skeleton"` with `⏎······height="72px"⏎······width="100%"⏎······style={{·marginBottom:·12·}}⏎······data-testid="confirmation__info_skeleton"⏎····`
<Skeleton height="72px" width="100%" style={{ marginBottom: 12 }} />
<Skeleton height="72px" width="100%" style={{ marginBottom: 12 }} />
</>
);

const Info = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ exports[`NativeTransferInfo renders correctly 1`] = `
data-testid="confirmation__transaction-flow"
>
<div
class="mm-box mm-box--padding-bottom-1 mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-space-between mm-box--align-items-center"
class="mm-box mm-box--display-flex mm-box--flex-direction-column"
>
<div
class="mm-box confirm-info-row mm-box--margin-top-2 mm-box--margin-bottom-2 mm-box--padding-right-2 mm-box--padding-left-2 mm-box--display-flex mm-box--flex-direction-row mm-box--flex-wrap-wrap mm-box--justify-content-space-between mm-box--align-items-flex-start mm-box--color-text-default mm-box--rounded-lg"
style="overflow-wrap: anywhere; min-height: 24px; position: relative; background: transparent; flex: 1; flex-direction: column;"
style="overflow-wrap: anywhere; min-height: 24px; position: relative; background: transparent; flex-direction: column; width: 100%;"
>
<div
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-flex-start mm-box--align-items-flex-start mm-box--color-text-alternative"
Expand All @@ -43,122 +43,145 @@ exports[`NativeTransferInfo renders correctly 1`] = `
</div>
</div>
<div
class="mm-box mm-box--margin-top-2"
class="mm-box w-full mm-box--margin-top-2"
data-testid="sender-address"
>
<div
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--align-items-center"
class="mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-row mm-box--align-items-center"
>
<p
class="mm-box mm-text mm-text--body-md mm-box--color-text-default"
data-testid="confirm-info-row-display-name"
style="white-space: nowrap; flex: 1;"
>
Account 1
</p>
<div
class="mm-box overflow-hidden mm-box--display-flex mm-box--flex-direction-column"
class="inline-flex shrink-0 items-center justify-center overflow-hidden bg-section rounded-md h-6 w-6"
style="flex-shrink: 0;"
>
<div
class="name name__recognized_unsaved"
class="flex [&>div]:!rounded-none"
>
<div
class="inline-flex shrink-0 items-center justify-center overflow-hidden bg-section h-4 w-4 rounded-md"
style="border-radius: 50px; overflow: hidden; padding: 0px; margin: 0px; width: 24px; height: 24px; display: inline-block; background: rgb(250, 58, 0);"
>
<div
class="flex [&>div]:!rounded-none"
<svg
height="24"
width="24"
x="0"
y="0"
>
<div
style="border-radius: 50px; overflow: hidden; padding: 0px; margin: 0px; width: 16px; height: 16px; display: inline-block; background: rgb(250, 58, 0);"
>
<svg
height="16"
width="16"
x="0"
y="0"
>
<rect
fill="#18CDF2"
height="16"
transform="translate(-0.52419675189697 -1.65214203473025) rotate(328.9 8.00000000000000 8.00000000000000)"
width="16"
x="0"
y="0"
/>
<rect
fill="#035E56"
height="16"
transform="translate(-9.14923085441602 5.29623093587430) rotate(176.2 8.00000000000000 8.00000000000000)"
width="16"
x="0"
y="0"
/>
<rect
fill="#F26602"
height="16"
transform="translate(8.33392100911196 -7.10256986149854) rotate(468.9 8.00000000000000 8.00000000000000)"
width="16"
x="0"
y="0"
/>
</svg>
</div>
</div>
<rect
fill="#18CDF2"
height="24"
transform="translate(-0.78629512784545 -2.47821305209537) rotate(328.9 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
<rect
fill="#035E56"
height="24"
transform="translate(-13.72384628162403 7.94434640381145) rotate(176.2 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
<rect
fill="#F26602"
height="24"
transform="translate(12.50088151366794 -10.65385479224781) rotate(468.9 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
</svg>
</div>
<p
class="mm-box mm-text name__name mm-text--body-md mm-box--color-text-default"
>
Account 1
</p>
</div>
<p
class="mm-box mm-text mm-text--body-sm mm-box--color-text-alternative"
style="text-align: right;"
>
Wallet 1
</p>
</div>
</div>
</div>
</div>
<span
class="mm-box mm-icon mm-icon--size-md mm-box--display-inline-block mm-box--color-icon-alternative"
style="mask-image: url('./images/icons/arrow-right.svg');"
/>
<div
class="mm-box confirm-info-row mm-box--margin-top-2 mm-box--margin-bottom-2 mm-box--padding-right-2 mm-box--padding-left-2 mm-box--display-flex mm-box--flex-direction-row mm-box--flex-wrap-wrap mm-box--justify-content-space-between mm-box--align-items-flex-start mm-box--color-text-default mm-box--rounded-lg"
style="overflow-wrap: anywhere; min-height: 24px; position: relative; background: transparent; flex: 1; flex-direction: column; overflow: hidden;"
class="mm-box"
>
<div
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-flex-start mm-box--align-items-flex-start mm-box--color-text-alternative"
style="flex-shrink: 0; flex-basis: auto; max-width: 100%;"
class="mm-box confirm-info-row mm-box--margin-top-2 mm-box--margin-bottom-2 mm-box--padding-right-2 mm-box--padding-left-2 mm-box--display-flex mm-box--flex-direction-row mm-box--flex-wrap-wrap mm-box--justify-content-space-between mm-box--align-items-flex-start mm-box--color-text-default mm-box--rounded-lg"
style="overflow-wrap: anywhere; min-height: 24px; position: relative; background: transparent; flex-direction: column; width: 100%;"
>
<div
class="mm-box mm-box--display-flex mm-box--align-items-center"
style="flex-shrink: 0;"
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-flex-start mm-box--align-items-flex-start mm-box--color-text-alternative"
style="flex-shrink: 0; flex-basis: auto; max-width: 100%;"
>
<p
class="mm-box mm-text mm-text--body-md-medium mm-box--color-inherit"
<div
class="mm-box mm-box--display-flex mm-box--align-items-center"
style="flex-shrink: 0;"
>
To
</p>
<p
class="mm-box mm-text mm-text--body-md-medium mm-box--color-inherit"
>
To
</p>
</div>
</div>
</div>
<div
class="mm-box w-full mm-box--margin-top-2"
data-testid="recipient-address"
>
<div
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--align-items-center"
class="mm-box w-full mm-box--margin-top-2"
data-testid="recipient-address"
>
<div
class="mm-box overflow-hidden mm-box--display-flex mm-box--flex-direction-column"
class="mm-box mm-box--display-flex mm-box--gap-2 mm-box--flex-direction-row mm-box--align-items-center"
>
<p
class="mm-box mm-text mm-text--body-md mm-box--color-text-default"
data-testid="confirm-info-row-display-name"
style="flex: 1; white-space: nowrap; overflow: hidden;"
>
</p>
<div
class="name name__clickable name__missing"
class="inline-flex shrink-0 items-center justify-center overflow-hidden bg-section rounded-md h-6 w-6"
style="flex-shrink: 0;"
>
<span
class="mm-box name__icon mm-icon mm-icon--size-sm mm-box--display-inline-block mm-box--color-inherit"
style="mask-image: url('./images/icons/question.svg');"
/>
<p
class="mm-box mm-text name__value mm-text--body-md mm-box--color-text-default"
<div
class="flex [&>div]:!rounded-none"
>
0x2e0D7...5d09B
</p>
<div
style="border-radius: 50px; overflow: hidden; padding: 0px; margin: 0px; width: 24px; height: 24px; display: inline-block; background: rgb(24, 100, 242);"
>
<svg
height="24"
width="24"
x="0"
y="0"
>
<rect
fill="#C81420"
height="24"
transform="translate(-4.12892767867851 -3.94884252280316) rotate(385.9 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
<rect
fill="#E9F500"
height="24"
transform="translate(8.00585205504480 9.32244611939504) rotate(184.5 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
<rect
fill="#FAB300"
height="24"
transform="translate(1.36159139942717 -19.52271142978222) rotate(431.3 12.00000000000000 12.00000000000000)"
width="24"
x="0"
y="0"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
Expand Down
Loading
Loading