Skip to content

Commit

Permalink
Merge branch 'main' into circles-swaps-util
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch authored Feb 18, 2025
2 parents 4419bb8 + 8746cf3 commit 4182372
Show file tree
Hide file tree
Showing 95 changed files with 2,433 additions and 1,129 deletions.
22 changes: 8 additions & 14 deletions .circleci/scripts/git-diff-default-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ async function gitDiff(): Promise<string> {
return diffResult;
}

function writePrBodyToFile(prBody: string) {
function writePrBodyAndInfoToFile(prInfo: PRInfo) {
const prBodyPath = path.resolve(CHANGED_FILES_DIR, 'pr-body.txt');
fs.writeFileSync(prBodyPath, prBody.trim());
console.log(`PR body saved to ${prBodyPath}`);
const labels = prInfo.labels.map(label => label.name).join(', ');
const updatedPrBody = `PR labels: {${labels}}\nPR base: {${prInfo.base.ref}}\n${prInfo.body.trim()}`;
fs.writeFileSync(prBodyPath, updatedPrBody);
console.log(`PR body and info saved to ${prBodyPath}`);
}

/**
Expand All @@ -135,17 +137,9 @@ async function storeGitDiffOutputAndPrBody() {
if (!baseRef) {
console.log('Not a PR, skipping git diff');
return;
} else if (baseRef !== GITHUB_DEFAULT_BRANCH) {
console.log(`This is for a PR targeting '${baseRef}', skipping git diff`);
writePrBodyToFile(prInfo.body);
return;
} else if (
prInfo.labels.some((label) => label.name === 'skip-e2e-quality-gate')
) {
console.log('PR has the skip-e2e-quality-gate label, skipping git diff');
return;
}

// We perform git diff even if the PR base is not main or skip-e2e-quality-gate label is applied
// because we rely on the git diff results for other jobs
console.log('Attempting to get git diff...');
const diffOutput = await gitDiff();
console.log(diffOutput);
Expand All @@ -155,7 +149,7 @@ async function storeGitDiffOutputAndPrBody() {
fs.writeFileSync(outputPath, diffOutput.trim());
console.log(`Git diff results saved to ${outputPath}`);

writePrBodyToFile(prInfo.body);
writePrBodyAndInfoToFile(prInfo);

process.exit(0);
} catch (error: any) {
Expand Down
10 changes: 2 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,8 @@ module.exports = {
rules: {
'react/no-unused-prop-types': 'warn',
'react/no-unused-state': 'warn',
'react/jsx-boolean-value': 'warn',
'react/jsx-curly-brace-presence': [
'warn',
{
props: 'never',
children: 'never',
},
],
'react/jsx-boolean-value': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/no-deprecated': 'warn',
'react/default-props-match-prop-types': 'warn',
'react/jsx-no-duplicate-props': 'warn',
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/validate-page-object-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Validate E2E Page Object usage on modified files

on:
pull_request:
branches:
- main
types:
- opened
- reopened
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/de/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/el/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 13 additions & 4 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 13 additions & 4 deletions app/_locales/en_GB/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/es/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/fr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/hi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/id/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ja/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ko/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/pt/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/ru/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/tl/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/tr/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/vi/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/_locales/zh_CN/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions app/images/unichain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/scripts/constants/sentry-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export const SENTRY_BACKGROUND_STATE = {
accountsAssets: false,
assetsMetadata: false,
},
MultiChainAssetsRatesController: {
assetsRates: false,
},
BridgeController: {
bridgeState: {
bridgeFeatureFlags: {
Expand Down
3 changes: 3 additions & 0 deletions app/scripts/controller-init/controller-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TransactionUpdateController } from '@metamask-institutional/transaction
import { AccountsController } from '@metamask/accounts-controller';
import {
MultichainAssetsController,
MultiChainAssetsRatesController,
MultichainBalancesController,
} from '@metamask/assets-controllers';
import { MultichainTransactionsController } from '@metamask/multichain-transactions-controller';
Expand Down Expand Up @@ -42,6 +43,7 @@ export type Controller =
| JsonSnapsRegistry
| KeyringController
| MultichainAssetsController
| MultiChainAssetsRatesController
| MultichainBalancesController
| MultichainTransactionsController
| NetworkController
Expand Down Expand Up @@ -73,6 +75,7 @@ export type ControllerFlatState = AccountsController['state'] &
JsonSnapsRegistry['state'] &
KeyringController['state'] &
MultichainAssetsController['state'] &
MultiChainAssetsRatesController['state'] &
MultichainBalancesController['state'] &
MultichainTransactionsController['state'] &
NetworkController['state'] &
Expand Down
Loading

0 comments on commit 4182372

Please sign in to comment.