Skip to content

Commit e3a712f

Browse files
ci(release): publish latest release
1 parent 48a0bb2 commit e3a712f

File tree

28 files changed

+223
-490
lines changed

28 files changed

+223
-490
lines changed

RELEASE

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
- Onboarding improvements
2-
- Adds fallback support method for opening the side panel on chrome failure
1+
Here are the latest updates:
2+
3+
Native Asset Top Up: Easily access our fiat on ramp feature if you don’t have enough native asset on a network to complete a transaction.
4+
5+
Other changes:
6+
37
- Various bug fixes and performance improvements
8+
- Improved gas estimation for Send transactions

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
extension/1.2.1
1+
mobile/1.32

apps/extension/src/app/PopupApp.tsx

Lines changed: 0 additions & 149 deletions
This file was deleted.

apps/extension/src/app/navigation/utils.ts

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const useExtensionNavigation = (): {
3636
export async function focusOrCreateOnboardingTab(page?: string): Promise<void> {
3737
const extension = await chrome.management.getSelf()
3838

39-
const tabs = await chrome.tabs.query({ url: `chrome-extension://${extension.id}/onboarding.html*` })
39+
const tabs = await chrome.tabs.query({ url: `chrome-extension://${extension.id}/*` })
4040
const tab = tabs[0]
4141

4242
const url = 'onboarding.html#/' + (page ? page : TopLevelRoutes.Onboarding)
@@ -68,44 +68,6 @@ export async function focusOrCreateOnboardingTab(page?: string): Promise<void> {
6868
})
6969
}
7070

71-
export async function focusOrCreateDappRequestWindow(tabId: number | undefined, windowId: number): Promise<void> {
72-
const extension = await chrome.management.getSelf()
73-
74-
const window = await chrome.windows.getCurrent()
75-
76-
const tabs = await chrome.tabs.query({ url: `chrome-extension://${extension.id}/popup.html*` })
77-
const tab = tabs[0]
78-
79-
// Centering within current window
80-
const height = 410
81-
const width = 330
82-
const top = Math.round((window.top ?? 0) + ((window.height ?? height) - height) / 2)
83-
const left = Math.round((window.left ?? 0) + ((window.width ?? width) - width) / 2)
84-
let url = `popup.html?windowId=${windowId}`
85-
if (tabId) {
86-
url += `&tabId=${tabId}`
87-
}
88-
89-
if (!tab?.id) {
90-
await chrome.windows.create({
91-
url,
92-
type: 'popup',
93-
top,
94-
left,
95-
width,
96-
height,
97-
})
98-
return
99-
}
100-
101-
await chrome.tabs.update(tab.id, {
102-
url,
103-
active: true,
104-
highlighted: true,
105-
})
106-
await chrome.windows.update(tab.windowId, { focused: true, top, left, width, height })
107-
}
108-
10971
/**
11072
* To avoid opening too many tabs while also ensuring that we don't take over the user's active tab,
11173
* we only update the URL of the active tab if it's already in a specific route of the Uniswap interface.

apps/extension/src/app/sentry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const enum SentryAppNameTag {
1919
Onboarding = 'onboarding',
2020
ContentScript = 'content-script',
2121
Background = 'background',
22-
Popup = 'popup',
2322
}
2423

2524
export function initializeSentry(appNameTag: SentryAppNameTag, sentryUserId: string): void {

apps/extension/src/background/utils/chromeSidePanelUtils.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { focusOrCreateDappRequestWindow } from 'src/app/navigation/utils'
21
import { logger } from 'utilities/src/logger/logger'
32

43
export async function openSidePanel(tabId: number | undefined, windowId: number): Promise<void> {
@@ -9,10 +8,6 @@ export async function openSidePanel(tabId: number | undefined, windowId: number)
98
windowId,
109
})
1110
} catch (error) {
12-
// TODO WALL-4313 - Backup for some broken chrome.sidePanel.open functionality
13-
// Consider removing this once the issue is resolved or leaving as fallback
14-
await focusOrCreateDappRequestWindow(tabId, windowId)
15-
1611
logger.error(error, {
1712
tags: {
1813
file: 'background/background.ts',

apps/extension/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Uniswap Extension",
44
"description": "The Uniswap Extension is a self-custody crypto wallet that's built for swapping.",
5-
"version": "1.2.1",
5+
"version": "1.2.0",
66
"minimum_chrome_version": "116",
77
"icons": {
88
"16": "assets/icon16.png",

apps/extension/src/popup.html

Lines changed: 0 additions & 68 deletions
This file was deleted.

apps/extension/src/popup/popup.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

apps/extension/src/store/store.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const setupStore = (preloadedState?: PreloadedState<ExtensionState>): ReturnType
5858
let store: ReturnType<typeof setupStore> | undefined
5959
let persistor: ReturnType<typeof persistStore> | undefined
6060

61-
export async function initializeReduxStore(args?: { readOnly?: boolean }): Promise<{
61+
export async function initializeReduxStore(): Promise<{
6262
store: ReturnType<typeof setupStore>
6363
persistor: ReturnType<typeof persistStore>
6464
}> {
@@ -69,12 +69,6 @@ export async function initializeReduxStore(args?: { readOnly?: boolean }): Promi
6969
store = setupStore(oldStore)
7070
persistor = persistStore(store)
7171

72-
if (args?.readOnly) {
73-
// This means the store will be initialized with the persisted state from disk, but it won't persist any changes.
74-
// Only useful for use cases where we don't want to modify the state (for example, a popup window instead of the sidebar).
75-
persistor.pause()
76-
}
77-
7872
// We wait a few seconds to make sure the store is fully initialized and persisted before deleting the old storage.
7973
// This is needed because otherwise the background script might think the user is not onboarded if it reads the storage while it's being migrated.
8074
if (oldStore) {

apps/extension/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ module.exports = (env) => {
172172
sidebar: './src/sidebar/sidebar.tsx',
173173
injected: './src/contentScript/injected.ts',
174174
ethereum: './src/contentScript/ethereum.ts',
175-
popup: './src/popup/popup.tsx',
176175
},
177176
output: {
178177
filename: '[name].js',

0 commit comments

Comments
 (0)