Skip to content

Commit

Permalink
ci(release): publish latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-happy-puppy committed Aug 28, 2024
1 parent e574612 commit c75d595
Show file tree
Hide file tree
Showing 1,069 changed files with 38,241 additions and 35,993 deletions.
17 changes: 16 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn g:run-fast-checks
yarn g:run-fast-checks

if command -v git-secrets &> /dev/null
then # only run if git-secrets is installed
# Initialise git-secrets configuration
git-secrets --register-aws > /dev/null

echo "Running git-secrets..."
# Scans all files that are about to be committed.
git-secrets --pre_commit_hook -- "$@"
fi

if command -v trufflehog &> /dev/null
then # only run if trufflehog is installed
trufflehog git file://. --since-commit HEAD --only-verified --fail
fi
30 changes: 30 additions & 0 deletions .yarn/patches/@tanstack-react-query-npm-5.51.16-8fa6414eca.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/package.json b/package.json
index e4b37644f3a62171deaff6dbf7731979ce751c78..7b2ca64565c0c6318ba01ff26cb4fad1c7419b0d 100644
--- a/package.json
+++ b/package.json
@@ -15,22 +15,9 @@
"url": "https://github.com/sponsors/tannerlinsley"
},
"type": "module",
- "types": "build/legacy/index.d.ts",
- "main": "build/legacy/index.cjs",
- "module": "build/legacy/index.js",
- "exports": {
- ".": {
- "import": {
- "types": "./build/modern/index.d.ts",
- "default": "./build/modern/index.js"
- },
- "require": {
- "types": "./build/modern/index.d.cts",
- "default": "./build/modern/index.cjs"
- }
- },
- "./package.json": "./package.json"
- },
+ "types": "build/modern/index.d.ts",
+ "main": "build/modern/index.cjs",
+ "module": "build/modern/index.js",
"sideEffects": false,
"files": [
"build",
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @uniswap/web-admins
74 changes: 63 additions & 11 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,11 +1,63 @@
We are back with some new updates! Here’s the latest:

Onboarding Improvements: New unfunded wallets will experience our upgraded homepage, which gives a preview of our token explore page, as well as a card stack of onboarding steps to complete.

Haptic Touch Settings: Users can now toggle their haptic touch preferences on the Settings page.

Other changes:

- Improved context menus on Swap Activity Items
- Increased fiat onramp options for stablecoins on the Polygon network
- Various bug fixes and performance improvements
IPFS hash of the deployment:
- CIDv0: `QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL`
- CIDv1: `bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu`

The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).

You can also access the Uniswap Interface from an IPFS gateway.
**BEWARE**: The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported.
**You should always use an IPFS gateway that enforces origin separation**, or our hosted deployment of the latest release at [app.uniswap.org](https://app.uniswap.org).
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.dweb.link/
- https://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.cf-ipfs.com/
- [ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/](ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/)

## 5.44.0 (2024-08-28)


### Features

* **web:** adding v4 everywhere feature flag (#10886) 5b065e9
* **web:** enhanced dropdown component in prep for v4 changes (#11070) 6e4565c
* **web:** new pools page and rename old pools pages (#11004) 7b774cc
* **web:** tamaguify explore page (charts) (incl. snapshots) (#11117) 8485f71
* **web:** tamaguify explore page (tables) (incl. snapshots) (#11118) e29104d
* **web:** use uniswap currency info (#11064) 00da3f5


### Bug Fixes

* **web:** add error policy all to balances web query (#11176) 1100abe
* **web:** dont double format amountOut (#11111) d4d3df2
* **web:** extraneous useClickOutside for DropdownSelector components (#11109) 501adb9
* **web:** fallback to common bases (#11140) 0fac4f6
* **web:** fix button label on add/v2 page (#11156) 31b7462
* **web:** fix modal height for absolute-positioned modal contents (#11152) 0b2919c
* **web:** fix switchChain for single-chain wallets (#11342) 9621efe
* **web:** remove redirect from landing page when connected (#11207) dc75f2a
* **web:** remove second language selection menu (#11263) 62eeedf
* **web:** tdp pdp tamagui staging hotfix (#11311) fa0312e
* **web:** Use neutralContrast for Add Liq and Preview buttons - staging (#11315) ca38bad
* **web:** Use neutralContrast for Swap button (#11065) 962f3e5
* **web:** use reduceRight instead of findLastIndex for activeIndex (#11201) 1adceb3
* **web:** use updated Arb Xv2 experiment name & update UniswapX SDK (#11058) a54ba3e
* **web:** Volume Explore chart TimeSelector colors - staging (#11322) 8e2a763


### Continuous Integration

* **web:** update sitemaps 3c8a16c


### Code Refactoring

* **web:** tamaguify buy form (#10981) 3743d77


### Tests

* **web:** useCurrencyInfo (#11085) 92adc3b


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mobile/1.33
web/5.44.0
10 changes: 8 additions & 2 deletions apps/extension/jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import 'utilities/src/logger/mocks'

import { chrome } from 'jest-chrome'
import { AppearanceSettingType } from 'wallet/src/features/appearance/slice'
import { TextEncoder, TextDecoder } from 'util';
import { TextEncoder, TextDecoder } from 'util'
import { mockSharedPersistQueryClientProvider } from 'uniswap/src/test/mocks/mockSharedPersistQueryClientProvider'
import { mockUIAssets } from 'ui/src/test/mocks/mockUIAssets'

process.env.IS_UNISWAP_EXTENSION = true
process.env.IS_UNISWAP_EXTENSION = true

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
Expand Down Expand Up @@ -69,3 +71,7 @@ jest.mock('wallet/src/features/appearance/hooks', () => {
useSelectedColorScheme: () => 'light',
}
})

jest.mock('uniswap/src/data/apiClients/SharedPersistQueryClientProvider', () => mockSharedPersistQueryClientProvider)

mockUIAssets()
10 changes: 5 additions & 5 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@sentry/react": "7.80.0",
"@sentry/webpack-plugin": "2.10.3",
"@svgr/webpack": "8.0.1",
"@tamagui/core": "1.108.2",
"@tamagui/core": "1.108.4",
"@types/uuid": "9.0.1",
"@uniswap/analytics-events": "2.36.0",
"@uniswap/universal-router-sdk": "2.2.0",
Expand All @@ -26,7 +26,7 @@
"react-i18next": "14.1.0",
"react-native": "0.73.6",
"react-native-gesture-handler": "2.15.0",
"react-native-reanimated": "npm:react-native-reanimated@3.8.1",
"react-native-reanimated": "3.15.0",
"react-native-svg": "15.1.0",
"react-native-web": "0.19.10",
"react-qr-code": "2.0.12",
Expand Down Expand Up @@ -74,7 +74,7 @@
"serve": "^14.2.0",
"statsig-js": "4.41.0",
"swc-loader": "^0.2.3",
"tamagui-loader": "1.108.2",
"tamagui-loader": "1.108.4",
"typescript": "5.3.3",
"webpack": "5.90.0",
"webpack-cli": "^5.0.1",
Expand All @@ -88,8 +88,8 @@
"env:local:download": "bash ../../scripts/downloadEnvLocal.sh web-local-envs ../../.env",
"env:local:upload": "bash ../../scripts/uploadEnvLocal.sh web-local-envs ../../.env",
"format": "../../scripts/prettier.sh",
"lint": "eslint . --ext ts,tsx --max-warnings=0",
"lint:fix": "eslint . --ext ts,tsx --fix",
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --ext ts,tsx --max-warnings=0",
"lint:fix": "NODE_OPTIONS=--max-old-space-size=8192 eslint . --ext ts,tsx --fix",
"start": "webpack serve --config webpack.config.js",
"start:absolute": "yarn start:absolute:mac",
"start:absolute:mac": "yarn start --output-path /Users/Shared/stretch",
Expand Down
7 changes: 5 additions & 2 deletions apps/extension/src/app/OnboardingApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import i18n from 'uniswap/src/i18n/i18n'
import { ExtensionOnboardingFlow } from 'uniswap/src/types/screens/extension'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

const supportsSidePanel = checksIfSupportsSidePanel()
Expand Down Expand Up @@ -178,8 +179,10 @@ export default function OnboardingApp(): JSX.Element {
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
<WalletUniswapProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
Expand Down
11 changes: 7 additions & 4 deletions apps/extension/src/app/PopupApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { logger } from 'utilities/src/logger/logger'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

getLocalUserId()
Expand Down Expand Up @@ -132,10 +133,12 @@ export default function PopupApp(): JSX.Element {
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
<WalletUniswapProvider>
<TraceUserProperties />
<DappContextProvider>
<RouterProvider router={router} />
</DappContextProvider>
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
Expand Down
19 changes: 11 additions & 8 deletions apps/extension/src/app/SidebarApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { AccountSwitcherScreen } from 'src/app/features/accounts/AccountSwitcher
import { DappContextProvider } from 'src/app/features/dapp/DappContext'
import { addRequest } from 'src/app/features/dappRequests/saga'
import { ReceiveScreen } from 'src/app/features/receive/ReceiveScreen'
import { SendFlow } from 'src/app/features/send/SendFlow'
import { DevMenuScreen } from 'src/app/features/settings/DevMenuScreen'
import { SettingsPrivacyScreen } from 'src/app/features/settings/SettingsPrivacyScreen'
import { RemoveRecoveryPhraseVerify } from 'src/app/features/settings/SettingsRecoveryPhraseScreen/RemoveRecoveryPhraseVerify'
Expand All @@ -23,7 +24,6 @@ import { SettingsScreen } from 'src/app/features/settings/SettingsScreen'
import { SettingsScreenWrapper } from 'src/app/features/settings/SettingsScreenWrapper'
import { SettingsChangePasswordScreen } from 'src/app/features/settings/password/SettingsChangePasswordScreen'
import { SwapFlowScreen } from 'src/app/features/swap/SwapFlowScreen'
import { TransferFlowScreen } from 'src/app/features/transfer/TransferFlowScreen'
import { useIsWalletUnlocked } from 'src/app/hooks/useIsWalletUnlocked'
import { MainContent, WebNavigation } from 'src/app/navigation'
import { AppRoutes, RemoveRecoveryPhraseRoutes, SettingsRoutes } from 'src/app/navigation/constants'
Expand All @@ -50,6 +50,7 @@ import { useInterval } from 'utilities/src/time/timing'
import { ErrorBoundary } from 'wallet/src/components/ErrorBoundary/ErrorBoundary'
import { LocalizationContextProvider } from 'wallet/src/features/language/LocalizationContext'
import { syncAppWithDeviceLanguage } from 'wallet/src/features/language/slice'
import { WalletUniswapProvider } from 'wallet/src/features/transactions/contexts/WalletUniswapContext'
import { SharedProvider } from 'wallet/src/provider'

getLocalUserId()
Expand Down Expand Up @@ -118,8 +119,8 @@ const router = sentryCreateHashRouter([
],
},
{
path: AppRoutes.Transfer,
element: <TransferFlowScreen />,
path: AppRoutes.Send,
element: <SendFlow />,
},
{
path: AppRoutes.Swap,
Expand Down Expand Up @@ -246,11 +247,13 @@ export default function SidebarApp(): JSX.Element {
<GraphqlProvider>
<LocalizationContextProvider>
<UnitagUpdaterContextProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
<WalletUniswapProvider>
<TraceUserProperties />
<DappContextProvider>
<PrimaryAppInstanceDebuggerLazy />
<RouterProvider router={router} />
</DappContextProvider>
</WalletUniswapProvider>
</UnitagUpdaterContextProvider>
</LocalizationContextProvider>
</GraphqlProvider>
Expand Down
8 changes: 0 additions & 8 deletions apps/extension/src/app/components/OptionalStrictMode.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { useEffect } from 'react'
import { useColorScheme } from 'react-native'
import { useHideSmallBalancesSetting, useHideSpamTokensSetting } from 'uniswap/src/features/settings/hooks'
import { ExtensionUserPropertyName, setUserProperty } from 'uniswap/src/features/telemetry/user'
// eslint-disable-next-line no-restricted-imports
import { analytics } from 'utilities/src/telemetry/analytics/analytics'
import { useAppFiatCurrencyInfo } from 'wallet/src/features/fiatCurrency/hooks'
import { useGatingUserPropertyUsernames } from 'wallet/src/features/gating/userPropertyHooks'
import { useCurrentLanguage } from 'wallet/src/features/language/hooks'
import {
useActiveAccount,
useHideSmallBalancesSetting,
useHideSpamTokensSetting,
useSignerAccounts,
useViewOnlyAccounts,
} from 'wallet/src/features/wallet/hooks'
import { useActiveAccount, useSignerAccounts, useViewOnlyAccounts } from 'wallet/src/features/wallet/hooks'

/** Component that tracks UserProperties during the lifetime of the app */
export function TraceUserProperties(): null {
Expand Down
16 changes: 5 additions & 11 deletions apps/extension/src/app/components/modal/InfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { ReactNode } from 'react'
import { Anchor, Button, Flex, Text, TouchableArea, useSporeColors } from 'ui/src'
import { X } from 'ui/src/components/icons'
import { zIndices } from 'ui/src/theme'
import { BottomSheetModal } from 'uniswap/src/components/modals/BottomSheetModal'
import { Modal } from 'uniswap/src/components/modals/Modal'
import { ModalNameType } from 'uniswap/src/features/telemetry/constants'

export interface BottomModalProps {
export interface ModalProps {
name: ModalNameType
isOpen: boolean
showCloseButton?: boolean
Expand Down Expand Up @@ -33,17 +33,11 @@ export function InfoModal({
onButtonPress,
linkText,
linkUrl,
}: React.PropsWithChildren<BottomModalProps>): JSX.Element {
}: React.PropsWithChildren<ModalProps>): JSX.Element {
const colors = useSporeColors()

return (
<BottomSheetModal
alignment="bottom"
backgroundColor={colors.surface1.val}
isModalOpen={isOpen}
name={name}
onClose={onDismiss}
>
<Modal backgroundColor={colors.surface1.val} isModalOpen={isOpen} name={name} onClose={onDismiss}>
{showCloseButton && (
<TouchableArea
p="$spacing16"
Expand Down Expand Up @@ -77,6 +71,6 @@ export function InfoModal({
</Anchor>
)}
</Flex>
</BottomSheetModal>
</Modal>
)
}
2 changes: 1 addition & 1 deletion apps/extension/src/app/components/tabs/NftsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { memo, useCallback } from 'react'
import { useSelector } from 'react-redux'
import { ContextMenu, Flex } from 'ui/src'
import { fromGraphQLChain } from 'uniswap/src/features/chains/utils'
import { selectNftsVisibility } from 'uniswap/src/features/favorites/selectors'
import { ElementName, SectionName } from 'uniswap/src/features/telemetry/constants'
import { sendAnalyticsEvent } from 'uniswap/src/features/telemetry/send'
import { UniverseChainId } from 'uniswap/src/types/chains'
import { NftsList } from 'wallet/src/components/nfts/NftsList'
import { selectNftsVisibility } from 'wallet/src/features/favorites/selectors'
import { NFTViewer } from 'wallet/src/features/images/NFTViewer'
import { ESTIMATED_NFT_LIST_ITEM_SIZE } from 'wallet/src/features/nfts/constants'
import { NFTItem } from 'wallet/src/features/nfts/types'
Expand Down
Loading

0 comments on commit c75d595

Please sign in to comment.