diff --git a/ui/home/indicators/ChainIndicators.pw.tsx b/ui/home/indicators/ChainIndicators.pw.tsx
index 8e6b88044e..3a2014110d 100644
--- a/ui/home/indicators/ChainIndicators.pw.tsx
+++ b/ui/home/indicators/ChainIndicators.pw.tsx
@@ -17,9 +17,10 @@ test.beforeEach(async({ mockEnvs }) => {
test.describe('daily txs chart', () => {
let component: Locator;
- test.beforeEach(async({ page, mockApiResponse, render }) => {
+ test.beforeEach(async({ page, mockApiResponse, mockAssetResponse, render }) => {
await mockApiResponse('stats', statsMock.withSecondaryCoin);
await mockApiResponse('stats_charts_txs', dailyTxsMock.base);
+ await mockAssetResponse(statsMock.withSecondaryCoin.coin_image as string, './playwright/mocks/image_svg.svg');
component = await render();
await page.hover('.ChartOverlay', { position: { x: 100, y: 100 } });
});
diff --git a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-dark-mode-mobile-1.png b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-dark-mode-mobile-1.png
index 1731e76ddb..df5890f3d2 100644
Binary files a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-dark-mode-mobile-1.png and b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-dark-mode-mobile-1.png differ
diff --git a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-mobile-1.png b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-mobile-1.png
index c54e3fc723..08886c7ee9 100644
Binary files a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-mobile-1.png and b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_default_daily-txs-chart-mobile-1.png differ
diff --git a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-dark-mode-mobile-1.png b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-dark-mode-mobile-1.png
index 5d993041b2..0f0782f01a 100644
Binary files a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-dark-mode-mobile-1.png and b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-dark-mode-mobile-1.png differ
diff --git a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-mobile-1.png b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-mobile-1.png
index be86829122..2722155ea6 100644
Binary files a/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-mobile-1.png and b/ui/home/indicators/__screenshots__/ChainIndicators.pw.tsx_mobile_daily-txs-chart-mobile-1.png differ
diff --git a/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png
index 8103ec9392..c18668e77b 100644
Binary files a/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png and b/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png differ
diff --git a/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png
index 524de7440c..b5035d2385 100644
Binary files a/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png and b/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png differ
diff --git a/ui/shared/ContainerWithScrollY.tsx b/ui/shared/ContainerWithScrollY.tsx
index 3ce9b26ad3..123809a094 100644
--- a/ui/shared/ContainerWithScrollY.tsx
+++ b/ui/shared/ContainerWithScrollY.tsx
@@ -22,8 +22,7 @@ const ContainerWithScrollY = ({ className, gradientHeight, children, onScrollVis
onScrollVisibilityChange?.(hasScroll);
}, [ gradientHeight, onScrollVisibilityChange ]);
- const gradientStartColor = useColorModeValue('whiteAlpha.600', 'blackAlpha.600');
- const gradientEndColor = useColorModeValue('whiteAlpha.900', 'blackAlpha.900');
+ const gradientEndColor = useColorModeValue('white', 'black');
return (
{
return (
-
+
diff --git a/ui/tx/details/TxInfo.pw.tsx b/ui/tx/details/TxInfo.pw.tsx
index b7b664f7a5..4a34314d1c 100644
--- a/ui/tx/details/TxInfo.pw.tsx
+++ b/ui/tx/details/TxInfo.pw.tsx
@@ -65,6 +65,8 @@ test('pending', async({ render, page }) => {
});
});
+// NOTE: On the screenshot from the test for the mobile device, the scroll overlay is not quite right.
+// I checked it manually in the real device, there was not any issue with it
test('with actions uniswap +@mobile +@dark-mode', async({ render, page }) => {
const component = await render();
diff --git a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_dark-color-mode_with-actions-uniswap-mobile-dark-mode-1.png b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_dark-color-mode_with-actions-uniswap-mobile-dark-mode-1.png
index 62f996c3f6..e15c26a210 100644
Binary files a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_dark-color-mode_with-actions-uniswap-mobile-dark-mode-1.png and b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_dark-color-mode_with-actions-uniswap-mobile-dark-mode-1.png differ
diff --git a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_default_with-actions-uniswap-mobile-dark-mode-1.png b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_default_with-actions-uniswap-mobile-dark-mode-1.png
index 7a48e1d819..4f527a4547 100644
Binary files a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_default_with-actions-uniswap-mobile-dark-mode-1.png and b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_default_with-actions-uniswap-mobile-dark-mode-1.png differ
diff --git a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_mobile_with-actions-uniswap-mobile-dark-mode-1.png b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_mobile_with-actions-uniswap-mobile-dark-mode-1.png
index 533e921a4d..bc83496a76 100644
Binary files a/ui/tx/details/__screenshots__/TxInfo.pw.tsx_mobile_with-actions-uniswap-mobile-dark-mode-1.png and b/ui/tx/details/__screenshots__/TxInfo.pw.tsx_mobile_with-actions-uniswap-mobile-dark-mode-1.png differ
diff --git a/ui/userOp/UserOpCallData.tsx b/ui/userOp/UserOpCallData.tsx
index 69640830fb..6018606597 100644
--- a/ui/userOp/UserOpCallData.tsx
+++ b/ui/userOp/UserOpCallData.tsx
@@ -13,21 +13,21 @@ interface Props {
const UserOpDecodedCallData = ({ data }: Props) => {
- const [ callData, setCallData ] = React.useState(data.call_data || data.execute_call_data);
+ const [ callData, setCallData ] = React.useState(data.execute_call_data || data.call_data);
const handleSwitchChange = React.useCallback((isChecked: boolean) => {
- setCallData(isChecked ? data.execute_call_data : data.call_data);
+ setCallData(isChecked ? data.call_data : data.execute_call_data);
}, [ data ]);
if (!callData) {
return null;
}
- const toggler = data.execute_call_data ? (
+ const toggler = data.call_data ? (
) : null;
diff --git a/ui/userOp/UserOpDecodedCallData.tsx b/ui/userOp/UserOpDecodedCallData.tsx
index c1b97abe13..19884ccc72 100644
--- a/ui/userOp/UserOpDecodedCallData.tsx
+++ b/ui/userOp/UserOpDecodedCallData.tsx
@@ -13,21 +13,21 @@ interface Props {
const UserOpDecodedCallData = ({ data }: Props) => {
- const [ callData, setCallData ] = React.useState(data.decoded_call_data || data.decoded_execute_call_data);
+ const [ callData, setCallData ] = React.useState(data.decoded_execute_call_data || data.decoded_call_data);
const handleSwitchChange = React.useCallback((isChecked: boolean) => {
- setCallData(isChecked ? data.decoded_execute_call_data : data.decoded_call_data);
+ setCallData(isChecked ? data.decoded_call_data : data.decoded_execute_call_data);
}, [ data ]);
if (!callData) {
return null;
}
- const toggler = data.decoded_execute_call_data ? (
+ const toggler = data.decoded_call_data ? (
) : null;