Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trending tokens polishes #6331

Merged
merged 105 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
52e22b5
portal
greg-schrammel Nov 21, 2024
31cb477
trending tokens
greg-schrammel Nov 21, 2024
adfacee
network switcher
greg-schrammel Nov 21, 2024
51fee69
feat flag
greg-schrammel Nov 21, 2024
4573d00
opss
greg-schrammel Nov 25, 2024
9ebc63d
i18n
greg-schrammel Nov 25, 2024
06557d9
performance
greg-schrammel Dec 2, 2024
2366cee
ops
greg-schrammel Dec 2, 2024
ba9eb6e
Merge branch 'develop' into gregs/app-1958-ui-implementation-phase-1
walmat Dec 2, 2024
1ecf417
Merge branch 'develop' into gregs/app-1958-ui-implementation-phase-1
walmat Dec 5, 2024
394f6fc
Wire up trending tokens UI (#6292)
walmat Dec 6, 2024
814eb1c
lint?
greg-schrammel Dec 9, 2024
281900d
add remote config flag for trending tokens
walmat Dec 9, 2024
107199a
Merge remote-tracking branch origin/develop into gregs/app-1958-ui-im…
greg-schrammel Dec 11, 2024
bb2247b
scroll & light mode
greg-schrammel Dec 11, 2024
4af7859
better categories colors
greg-schrammel Dec 11, 2024
dca295b
Merge branch 'gregs/app-1958-ui-implementation-phase-1' of https://gi…
walmat Dec 11, 2024
e21b4da
Merge branch 'develop' into gregs/app-1958-ui-implementation-phase-1
walmat Dec 11, 2024
2e5314e
fix select all chain badges
greg-schrammel Dec 11, 2024
5f381c7
polish ui
greg-schrammel Dec 11, 2024
a1ad3d9
better buttons
greg-schrammel Dec 12, 2024
201ed07
save
greg-schrammel Dec 13, 2024
e97f414
align friends pfps
greg-schrammel Dec 13, 2024
eaec25d
fix price change timeframes
greg-schrammel Dec 13, 2024
d0f6fcc
fix images
greg-schrammel Dec 13, 2024
7ef371a
better currency formatting
greg-schrammel Dec 13, 2024
e2e2bec
fix comment
greg-schrammel Dec 13, 2024
d4ae43b
fix network button selecting the wrong one
greg-schrammel Dec 13, 2024
b3d44b3
fix: tt sort (#6337)
derHowie Dec 16, 2024
d4dcf1b
TT fixes (#6338)
brunobar79 Dec 16, 2024
8a1f3b7
fix: tt -> swaps nav (#6343)
derHowie Dec 17, 2024
5bb2a0f
fix missing header height on the sheet (#6315)
walmat Dec 11, 2024
e67803c
convert network accessors to functions (#6219)
walmat Dec 11, 2024
668bbb1
Bump nanoid from 3.3.7 to 3.3.8 in /src/design-system/docs (#6320)
dependabot[bot] Dec 11, 2024
a97f60d
Update default currentNonce value to -1 (use case: fresh wallet or fr…
jinchung Dec 11, 2024
9dc6836
Replace node ack retries with a small delay (#6326)
jinchung Dec 12, 2024
9066a2a
fix undefined size on TextShadow component when switching themes (#6329)
walmat Dec 12, 2024
abf5db5
chore: update swaps sdk + use new getWrappedAssetAddress method (#6327)
welps Dec 12, 2024
2f81bce
NFT checker 2.0 (#6293)
brunobar79 Dec 13, 2024
8270050
Add inkchain support (#6323)
walmat Dec 13, 2024
daaa510
Retrieve FID for wallet addresses (#6330)
walmat Dec 16, 2024
99e7102
bump iOS and Android to v1.9.50 (#6340)
ibrahimtaveras00 Dec 17, 2024
52c8914
Icons hotfix (#6342)
brunobar79 Dec 17, 2024
8c595c9
Merge branch 'develop' into gregs/app-1958-ui-implementation-phase-1
greg-schrammel Dec 17, 2024
7032e2e
Merge branch 'develop' into trending-tokens-polishes
greg-schrammel Dec 17, 2024
243f741
Merge branch 'gregs/app-1958-ui-implementation-phase-1' into trending…
greg-schrammel Dec 17, 2024
6caad4f
resolve missing imports
walmat Dec 17, 2024
909514c
chore: merge 6caad4f9bde7492f75ca0cf0bc6aada28be385bd
walmat Dec 17, 2024
0ae1a3d
chainId
greg-schrammel Dec 17, 2024
709279a
prioritize symbol & not resize selected catergory pill
greg-schrammel Dec 17, 2024
2174043
discorty screen trending tokens separator
greg-schrammel Dec 17, 2024
bfe80fa
add remote config to control limit
walmat Dec 18, 2024
6ad09ea
remove unused import
walmat Dec 18, 2024
d6f4820
chore: temp hc for review at limit 12
derHowie Dec 18, 2024
2907fd9
Update iOS and Android to v1.9.51 (#6346)
ibrahimtaveras00 Dec 18, 2024
095c9b2
chore: remove unnecessary hc limit
derHowie Dec 18, 2024
8049dae
fix: nav to swap from tt row (#6347)
derHowie Dec 18, 2024
7282097
Fix non fractal price data formatter (#6348)
walmat Dec 18, 2024
d73864f
Fix spacing to 28px in latest TestFlight version (#6351)
walmat Dec 18, 2024
6409fc8
fix network switcher using name instead of label (#6350)
walmat Dec 18, 2024
5d4cf09
add default initial pinned chains (#6349)
walmat Dec 19, 2024
e4f3df6
portal
greg-schrammel Nov 21, 2024
5a57394
trending tokens
greg-schrammel Nov 21, 2024
b30f254
network switcher
greg-schrammel Nov 21, 2024
a96cf3a
feat flag
greg-schrammel Nov 21, 2024
d72b64e
opss
greg-schrammel Nov 25, 2024
d2d9441
i18n
greg-schrammel Nov 25, 2024
d5ffef5
performance
greg-schrammel Dec 2, 2024
e236e04
ops
greg-schrammel Dec 2, 2024
94b2022
Wire up trending tokens UI (#6292)
walmat Dec 6, 2024
1892162
lint?
greg-schrammel Dec 9, 2024
d7128e1
add remote config flag for trending tokens
walmat Dec 9, 2024
37ebec2
scroll & light mode
greg-schrammel Dec 11, 2024
7229c96
better categories colors
greg-schrammel Dec 11, 2024
4b84e06
fix select all chain badges
greg-schrammel Dec 11, 2024
f003903
polish ui
greg-schrammel Dec 11, 2024
e240e37
better buttons
greg-schrammel Dec 12, 2024
cdac318
save
greg-schrammel Dec 13, 2024
6066c90
align friends pfps
greg-schrammel Dec 13, 2024
b399ee1
fix price change timeframes
greg-schrammel Dec 13, 2024
a40fcd7
fix images
greg-schrammel Dec 13, 2024
1a3cc88
better currency formatting
greg-schrammel Dec 13, 2024
d4f551a
fix comment
greg-schrammel Dec 13, 2024
6ab2a01
fix network button selecting the wrong one
greg-schrammel Dec 13, 2024
2ce5eb5
fix: tt sort (#6337)
derHowie Dec 16, 2024
c2b49d1
TT fixes (#6338)
brunobar79 Dec 16, 2024
d7d4176
fix: tt -> swaps nav (#6343)
derHowie Dec 17, 2024
f92860a
convert network accessors to functions (#6219)
walmat Dec 11, 2024
e2e0237
NFT checker 2.0 (#6293)
brunobar79 Dec 13, 2024
731263c
Icons hotfix (#6342)
brunobar79 Dec 17, 2024
ca72ae7
resolve missing imports
walmat Dec 17, 2024
e8c9c91
chainId
greg-schrammel Dec 17, 2024
f7a84ee
prioritize symbol & not resize selected catergory pill
greg-schrammel Dec 17, 2024
d7cc090
discorty screen trending tokens separator
greg-schrammel Dec 17, 2024
f1f9115
add remote config to control limit
walmat Dec 18, 2024
6e974fb
remove unused import
walmat Dec 18, 2024
1e118b8
chore: temp hc for review at limit 12
derHowie Dec 18, 2024
d4a8014
chore: remove unnecessary hc limit
derHowie Dec 18, 2024
9966b7e
Fix non fractal price data formatter (#6348)
walmat Dec 18, 2024
bd18468
Fix spacing to 28px in latest TestFlight version (#6351)
walmat Dec 18, 2024
be96cb9
fix network switcher using name instead of label (#6350)
walmat Dec 18, 2024
30444bc
add default initial pinned chains (#6349)
walmat Dec 19, 2024
76ecc6e
chore: merge
walmat Dec 19, 2024
cf93890
fix network switcher to use a network chip when odd number of pinned …
walmat Dec 19, 2024
46f5cba
Use sheet instead of custom AbsolutePortal (#6357)
walmat Dec 19, 2024
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
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ module.exports = {
],
'jest/expect-expect': 'off',
'jest/no-disabled-tests': 'off',
'no-nested-ternary': 'off',
},
};
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

### Fixed

## [1.9.50] (https://github.com/rainbow-me/rainbow/releases/tag/v1.9.50)

### Fixed

- Fixed an issue with unlocking app icons (#6342, #6345)

## [1.9.49] (https://github.com/rainbow-me/rainbow/releases/tag/v1.9.49)

### Added
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ android {
applicationId "me.rainbow"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 243
versionName "1.9.50"
versionCode 244
versionName "1.9.51"
missingDimensionStrategy 'react-native-camera', 'general'
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
Expand Down
8 changes: 4 additions & 4 deletions ios/Rainbow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.50;
MARKETING_VERSION = 1.9.51;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down Expand Up @@ -1951,7 +1951,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.50;
MARKETING_VERSION = 1.9.51;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down Expand Up @@ -2072,7 +2072,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.50;
MARKETING_VERSION = 1.9.51;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down Expand Up @@ -2192,7 +2192,7 @@
"$(PROJECT_DIR)",
);
LLVM_LTO = YES;
MARKETING_VERSION = 1.9.50;
MARKETING_VERSION = 1.9.51;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = (
"$(inherited)",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Rainbow",
"version": "1.9.50-1",
"version": "1.9.51-1",
"private": true,
"scripts": {
"setup": "yarn graphql-codegen:install && yarn ds:install && yarn allow-scripts && yarn graphql-codegen && yarn fetch:networks",
Expand Down
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { IS_ANDROID, IS_DEV } from '@/env';
import { prefetchDefaultFavorites } from '@/resources/favorites';
import Routes from '@/navigation/Routes';
import { BackendNetworks } from '@/components/BackendNetworks';
import { AbsolutePortalRoot } from './components/AbsolutePortal';

if (IS_DEV) {
reactNativeDisableYellowBox && LogBox.ignoreAllLogs();
Expand Down Expand Up @@ -73,6 +74,7 @@ function App({ walletReady }: AppProps) {
<InitialRouteContext.Provider value={initialRoute}>
<Routes ref={handleNavigatorRef} />
<PortalConsumer />
<AbsolutePortalRoot />
</InitialRouteContext.Provider>
)}
<OfflineToast />
Expand Down
90 changes: 25 additions & 65 deletions src/__swaps__/screens/Swap/components/AnimatedSwapCoinIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,19 @@ import { IS_ANDROID, IS_IOS } from '@/env';
import { PIXEL_RATIO } from '@/utils/deviceUtils';
import { useSwapContext } from '../providers/swap-provider';

const fallbackIconStyle = {
...borders.buildCircleAsObject(32),
position: 'absolute' as ViewStyle['position'],
};

const largeFallbackIconStyle = {
...borders.buildCircleAsObject(36),
position: 'absolute' as ViewStyle['position'],
};

const smallFallbackIconStyle = {
...borders.buildCircleAsObject(16),
position: 'absolute' as ViewStyle['position'],
};

export const AnimatedSwapCoinIcon = memo(function AnimatedSwapCoinIcon({
assetType,
large = true,
small,
size = 32,
showBadge = true,
}: {
assetType: 'input' | 'output';
large?: boolean;
small?: boolean;
size?: number;
showBadge?: boolean;
}) {
const { isDarkMode, colors } = useTheme();
const { internalSelectedInputAsset, internalSelectedOutputAsset } = useSwapContext();

const asset = assetType === 'input' ? internalSelectedInputAsset : internalSelectedOutputAsset;
const size = small ? 16 : large ? 36 : 32;

const didErrorForUniqueId = useSharedValue<string | undefined>(undefined);

Expand Down Expand Up @@ -91,15 +73,8 @@ export const AnimatedSwapCoinIcon = memo(function AnimatedSwapCoinIcon({
}));

return (
<View style={small ? sx.containerSmall : large ? sx.containerLarge : sx.container}>
<Animated.View
style={[
sx.reactCoinIconContainer,
small ? sx.coinIconFallbackSmall : large ? sx.coinIconFallbackLarge : sx.coinIconFallback,
sx.withShadow,
animatedCoinIconWrapperStyles,
]}
>
<View style={containerStyle(size)}>
<Animated.View style={[sx.reactCoinIconContainer, coinIconFallbackStyle(size), sx.withShadow, animatedCoinIconWrapperStyles]}>
<Animated.View style={animatedCoinIconStyles}>
{/* ⚠️ TODO: This works but we should figure out how to type this correctly to avoid this error */}
{/* @ts-expect-error: Doesn't pick up that it's getting a source prop via animatedProps */}
Expand All @@ -122,29 +97,14 @@ export const AnimatedSwapCoinIcon = memo(function AnimatedSwapCoinIcon({
/>
</Animated.View>

<Animated.View
style={[animatedFallbackStyles, small ? sx.coinIconFallbackSmall : large ? sx.coinIconFallbackLarge : sx.coinIconFallback]}
>
<SwapCoinIconTextFallback
asset={asset}
height={size}
width={size}
style={small ? smallFallbackIconStyle : large ? largeFallbackIconStyle : fallbackIconStyle}
/>
<Animated.View style={[animatedFallbackStyles, coinIconFallbackStyle(size)]}>
<SwapCoinIconTextFallback asset={asset} height={size} width={size} style={fallbackIconStyle(size)} />
</Animated.View>

<Box
as={Animated.View}
background={isDarkMode ? 'fillQuaternary' : 'fillTertiary'}
style={[
animatedEmptyStateStyles,
small ? sx.coinIconFallbackSmall : large ? sx.coinIconFallbackLarge : sx.coinIconFallback,
{
borderRadius: size / 2,
height: size,
width: size,
},
]}
style={[animatedEmptyStateStyles, coinIconFallbackStyle(size)]}
/>
</Animated.View>

Expand All @@ -153,28 +113,28 @@ export const AnimatedSwapCoinIcon = memo(function AnimatedSwapCoinIcon({
);
});

const fallbackIconStyle = (size: number) => ({
...borders.buildCircleAsObject(size),
position: 'absolute' as ViewStyle['position'],
});

const coinIconFallbackStyle = (size: number) => ({
borderRadius: size / 2,
height: size,
width: size,
overflow: 'visible' as const,
});

const containerStyle = (size: number) => ({
elevation: 6,
height: size,
overflow: 'visible' as const,
});

const sx = StyleSheet.create({
coinIcon: {
overflow: 'hidden',
},
coinIconFallback: {
borderRadius: 16,
height: 32,
overflow: 'visible',
width: 32,
},
coinIconFallbackLarge: {
borderRadius: 18,
height: 36,
overflow: 'visible',
width: 36,
},
coinIconFallbackSmall: {
borderRadius: 8,
height: 16,
overflow: 'visible',
width: 16,
},
container: {
elevation: 6,
height: 32,
Expand Down
2 changes: 1 addition & 1 deletion src/__swaps__/screens/Swap/components/CoinRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function CoinRow({ isFavorite, onPress, output, uniqueId, testID, ...asse
iconUrl={icon_url}
address={address}
mainnetAddress={mainnetAddress}
large
size={36}
chainId={chainId}
symbol={symbol || ''}
color={colors?.primary}
Expand Down
Loading
Loading