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
462 changes: 427 additions & 35 deletions .github/workflows/run-performance-e2e.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@ const MultichainAccountSelectorList = ({
return items;
}, [filteredWalletSections]);

// Reset scroll to top when search text changes
useEffect(() => {
if (listRefToUse.current) {
// Use requestAnimationFrame to ensure the list has finished re-rendering
const animationFrameId = requestAnimationFrame(() => {
listRefToUse.current?.scrollToOffset({ offset: 0, animated: false });
});

return () => {
cancelAnimationFrame(animationFrameId);
};
}
}, [debouncedSearchText, listRefToUse]);

// Listen for account creation and scroll to new account
useEffect(() => {
if (lastCreatedAccountId && listRefToUse.current) {
Expand Down
6 changes: 1 addition & 5 deletions app/component-library/components/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ const Skeleton: React.FC<SkeletonProps> = ({
});

const startAnimation = () => {
// On E2E, we don't want to animate the skeleton otherwise recurring timers will be ON.
if (isE2E) {
return;
}
Animated.sequence([
Animated.timing(opacityAnim, {
toValue: 0.1,
Expand All @@ -56,7 +52,7 @@ const Skeleton: React.FC<SkeletonProps> = ({

useEffect(() => {
// Only start animation if no children are present or if children should be hidden
if (!children || hideChildren) {
if (!isE2E && (!children || hideChildren)) {
startAnimation();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ exports[`AddCustomCollectible should render correctly 1`] = `
}
}
>
<AddCustomCollectible />
<AddCustomCollectible
networkClientId=""
networkId=""
selectedNetwork=""
setOpenNetworkSelector={[MockFunction]}
/>
</ContextProvider>
`;
Loading
Loading