Skip to content

Commit 5c450ef

Browse files
authored
feat: cp-13.12.0 revert sidepanel (#38512)
This PR is to revert sidepanel ## **Description** <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/38512?quickstart=1) ## **Changelog** <!-- If this PR is not End-User-Facing and should not show up in the CHANGELOG, you can choose to either: 1. Write `CHANGELOG entry: null` 2. Label with `no-changelog` If this PR is End-User-Facing, please write a short User-Facing description in the past tense like: `CHANGELOG entry: Added a new tab for users to see their NFTs` `CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker` (This helps the Release Engineer do their job more quickly and accurately) --> CHANGELOG entry:no sidepanel ## **Related issues** Fixes: ## **Manual testing steps** 1. Run extension, see no switch to sidepanel button in global menu 2. for new user, after onboarding it shouldn't onboard the user on sidepanel ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** NA ### **After** NA ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Disables sidepanel across builds and CI, removes manifest sidepanel config/permission, and updates e2e onboarding to run sidepanel logic only when enabled. > > - **Build/CI**: > - Set `IS_SIDEPANEL: false` in `builds.yml` (all build types and global env) and `.github/workflows/run-e2e.yml`. > - **Manifests**: > - `app/manifest/v3/_base.json`: Remove `"sidePanel"` permission. > - `app/manifest/v3/chrome.json`: Remove `side_panel` block (default path) while keeping `minimum_chrome_version`. > - **E2E Tests**: > - `test/e2e/page-objects/flows/onboarding.flow.ts`: Gate `handleSidepanelPostOnboarding` to only run when `SELENIUM_BROWSER === 'chrome'` and `IS_SIDEPANEL === 'true'`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit cab8cee. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent ea93cae commit 5c450ef

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/run-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
RUN_ID: ${{ github.run_id }}
7575
PR_NUMBER: ${{ github.event.pull_request.number || '' }}
7676
TEST_SUITE_NAME: ${{ inputs.test-suite-name }}
77-
IS_SIDEPANEL: true
77+
IS_SIDEPANEL: false
7878
steps:
7979
- name: Checkout and setup environment
8080
uses: MetaMask/action-checkout-and-setup@v1

app/manifest/v3/_base.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@
8787
"unlimitedStorage",
8888
"webRequest",
8989
"offscreen",
90-
"identity",
91-
"sidePanel"
90+
"identity"
9291
],
9392
"sandbox": {
9493
"pages": ["snaps/index.html"]

app/manifest/v3/chrome.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@
1010
"matches": ["http://*/*", "https://*/*"],
1111
"ids": ["*"]
1212
},
13-
"minimum_chrome_version": "115",
14-
"side_panel": {
15-
"default_path": "sidepanel.html"
16-
}
13+
"minimum_chrome_version": "115"
1714
}

builds.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ buildTypes:
3434
- REJECT_INVALID_SNAPS_PLATFORM_VERSION: true
3535
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/iframe/10.2.3/index.html
3636
- ACCOUNT_SNAPS_DIRECTORY_URL: https://snaps.metamask.io/account-management
37-
- IS_SIDEPANEL: true
37+
- IS_SIDEPANEL: false
3838
- EXTENSION_UX_PNA25: true
3939
# for seedless onboarding (social login)
4040
- GOOGLE_PROD_CLIENT_ID
@@ -69,7 +69,7 @@ buildTypes:
6969
- REJECT_INVALID_SNAPS_PLATFORM_VERSION: true
7070
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/iframe/10.2.3/index.html
7171
- ACCOUNT_SNAPS_DIRECTORY_URL: https://snaps.metamask.io/account-management
72-
- IS_SIDEPANEL: true
72+
- IS_SIDEPANEL: false
7373
- EXTENSION_UX_PNA25: true
7474
# for seedless onboarding (social login)
7575
- GOOGLE_BETA_CLIENT_ID
@@ -100,7 +100,7 @@ buildTypes:
100100
- INFURA_ENV_KEY_REF: INFURA_EXPERIMENTAL_PROJECT_ID
101101
- SEGMENT_WRITE_KEY_REF: SEGMENT_EXPERIMENTAL_WRITE_KEY
102102
- ALLOW_LOCAL_SNAPS: false
103-
- IS_SIDEPANEL: true
103+
- IS_SIDEPANEL: false
104104
- REQUIRE_SNAPS_ALLOWLIST: true
105105
- REJECT_INVALID_SNAPS_PLATFORM_VERSION: true
106106
- IFRAME_EXECUTION_ENVIRONMENT_URL: https://execution.metamask.io/iframe/10.2.3/index.html
@@ -140,7 +140,7 @@ buildTypes:
140140
- SEGMENT_WRITE_KEY_REF: SEGMENT_FLASK_WRITE_KEY
141141
- ACCOUNT_SNAPS_DIRECTORY_URL: https://metamask.github.io/snaps-directory-staging/main/account-management
142142
- EIP_4337_ENTRYPOINT: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789'
143-
- IS_SIDEPANEL: true
143+
- IS_SIDEPANEL: false
144144
- EXTENSION_UX_PNA25: true
145145
# for seedless onboarding (social login)
146146
- GOOGLE_FLASK_CLIENT_ID
@@ -467,4 +467,4 @@ env:
467467

468468
# PNA25 (Privacy Notice)
469469
- EXTENSION_UX_PNA25: true
470-
- IS_SIDEPANEL: true
470+
- IS_SIDEPANEL: false

test/e2e/page-objects/flows/onboarding.flow.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ import TermsOfUseUpdateModal from '../pages/dialog/terms-of-use-update-modal';
2626
export const handleSidepanelPostOnboarding = async (
2727
driver: Driver,
2828
): Promise<void> => {
29-
// Only run on Chrome-based browsers (Firefox doesn't support sidepanel)
30-
if (process.env.SELENIUM_BROWSER === Browser.FIREFOX) {
29+
// Only run when sidepanel is actually enabled on Chrome
30+
const isSidepanelEnabled =
31+
process.env.SELENIUM_BROWSER === 'chrome' &&
32+
process.env.IS_SIDEPANEL === 'true';
33+
34+
if (!isSidepanelEnabled) {
3135
return;
3236
}
3337

0 commit comments

Comments
 (0)