mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Changes in blockaid texts (#19001)
This commit is contained in:
parent
1646ab110e
commit
9c63dfca89
3
app/_locales/de/messages.json
generated
3
app/_locales/de/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Was Sie beachten sollten:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Dies basiert auf Informationen von "
|
||||
},
|
||||
"time": {
|
||||
"message": "Zeit"
|
||||
},
|
||||
|
3
app/_locales/el/messages.json
generated
3
app/_locales/el/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Πράγματα που πρέπει να έχετε υπόψη σας:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Αυτό βασίζεται σε πληροφορίες από"
|
||||
},
|
||||
"time": {
|
||||
"message": "Ώρα"
|
||||
},
|
||||
|
13
app/_locales/en/messages.json
generated
13
app/_locales/en/messages.json
generated
@ -552,6 +552,9 @@
|
||||
"message": "View account at $1",
|
||||
"description": "$1 replaced by URL for custom block explorer"
|
||||
},
|
||||
"blockaid": {
|
||||
"message": "Blockaid"
|
||||
},
|
||||
"blockies": {
|
||||
"message": "Blockies"
|
||||
},
|
||||
@ -2863,7 +2866,7 @@
|
||||
"message": "Open in block explorer"
|
||||
},
|
||||
"openSea": {
|
||||
"message": "OpenSea (Beta)"
|
||||
"message": "OpenSea + Blockaid (Beta)"
|
||||
},
|
||||
"openSeaNew": {
|
||||
"message": "OpenSea"
|
||||
@ -3496,6 +3499,9 @@
|
||||
"security": {
|
||||
"message": "Security"
|
||||
},
|
||||
"securityAlert": {
|
||||
"message": "Security alert from $1 and $2"
|
||||
},
|
||||
"securityAndPrivacy": {
|
||||
"message": "Security & privacy"
|
||||
},
|
||||
@ -4429,9 +4435,6 @@
|
||||
"thisCollection": {
|
||||
"message": "this collection"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "This is based on information from "
|
||||
},
|
||||
"thisServiceIsExperimental": {
|
||||
"message": "This service is experimental. By enabling this feature, you agree to OpenSea's $1.",
|
||||
"description": "$1 is link to open sea terms of use"
|
||||
@ -4650,7 +4653,7 @@
|
||||
"message": "Transaction resubmitted with estimated gas fee increased to $1 at $2"
|
||||
},
|
||||
"transactionSecurityCheck": {
|
||||
"message": "Enable transaction security providers"
|
||||
"message": "Enable security alerts"
|
||||
},
|
||||
"transactionSecurityCheckDescription": {
|
||||
"message": "We use third-party APIs to detect and display risks involved in unsigned transaction and signature requests before you sign them. These services will have access to your unsigned transaction and signature requests, your account address, and your preferred language."
|
||||
|
3
app/_locales/es/messages.json
generated
3
app/_locales/es/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Cosas a tener en cuenta:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Esto se basa en información de "
|
||||
},
|
||||
"time": {
|
||||
"message": "Tiempo"
|
||||
},
|
||||
|
3
app/_locales/fr/messages.json
generated
3
app/_locales/fr/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Les choses que vous devez garder à l’esprit :"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Ces informations proviennent de "
|
||||
},
|
||||
"time": {
|
||||
"message": "Temps"
|
||||
},
|
||||
|
3
app/_locales/hi/messages.json
generated
3
app/_locales/hi/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "ध्यान रखने योग्य बातें"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "से प्राप्त जानकारी पर आधारित है"
|
||||
},
|
||||
"time": {
|
||||
"message": "समय"
|
||||
},
|
||||
|
3
app/_locales/id/messages.json
generated
3
app/_locales/id/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Hal-hal yang perlu diingat:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Hal ini berdasarkan informasi dari "
|
||||
},
|
||||
"time": {
|
||||
"message": "Waktu"
|
||||
},
|
||||
|
3
app/_locales/ja/messages.json
generated
3
app/_locales/ja/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "留意点:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "これは次の情報源からの情報に基づくものです: "
|
||||
},
|
||||
"time": {
|
||||
"message": "時間"
|
||||
},
|
||||
|
3
app/_locales/ko/messages.json
generated
3
app/_locales/ko/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "유의 사항:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "다음에 기반한 정보입니다: "
|
||||
},
|
||||
"time": {
|
||||
"message": "시간"
|
||||
},
|
||||
|
3
app/_locales/pt/messages.json
generated
3
app/_locales/pt/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Informações importantes:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Isso se baseia em informações de "
|
||||
},
|
||||
"time": {
|
||||
"message": "Hora"
|
||||
},
|
||||
|
3
app/_locales/ru/messages.json
generated
3
app/_locales/ru/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Что нужно помнить:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Это основано на информации от "
|
||||
},
|
||||
"time": {
|
||||
"message": "Время"
|
||||
},
|
||||
|
3
app/_locales/tl/messages.json
generated
3
app/_locales/tl/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Mga bagay na dapat tandaan:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Ito ay batay sa impormasyon mula sa "
|
||||
},
|
||||
"time": {
|
||||
"message": "Oras"
|
||||
},
|
||||
|
3
app/_locales/tr/messages.json
generated
3
app/_locales/tr/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Unutulmaması gerekenler:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Bu, şu kaynaktan alınan bilgilere dayanır: "
|
||||
},
|
||||
"time": {
|
||||
"message": "Zaman"
|
||||
},
|
||||
|
3
app/_locales/vi/messages.json
generated
3
app/_locales/vi/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "Những điều cần lưu ý:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "Điều này dựa trên thông tin từ "
|
||||
},
|
||||
"time": {
|
||||
"message": "Thời gian"
|
||||
},
|
||||
|
3
app/_locales/zh_CN/messages.json
generated
3
app/_locales/zh_CN/messages.json
generated
@ -3920,9 +3920,6 @@
|
||||
"thingsToKeep": {
|
||||
"message": "注意事项:"
|
||||
},
|
||||
"thisIsBasedOn": {
|
||||
"message": "所根据的信息是来自"
|
||||
},
|
||||
"time": {
|
||||
"message": "时间"
|
||||
},
|
||||
|
@ -19,7 +19,7 @@ describe('Settings Search', function () {
|
||||
security: 'Reveal Secret',
|
||||
alerts: 'Browsing a website',
|
||||
networks: 'Ethereum Mainnet',
|
||||
experimental: 'Enable transaction security',
|
||||
experimental: 'Enable security alerts',
|
||||
about: 'Terms of Use',
|
||||
};
|
||||
|
||||
|
@ -150,9 +150,7 @@ describe('Confirm Page Container Content', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
queryByText('This is based on information from'),
|
||||
).toBeInTheDocument();
|
||||
expect(queryByText('OpenSea')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should not render SecurityProviderBannerMessage component when flagAsDangerous is not malicious', () => {
|
||||
@ -171,7 +169,7 @@ describe('Confirm Page Container Content', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeNull();
|
||||
expect(queryByText('This is based on information from')).toBeNull();
|
||||
expect(queryByText('OpenSea')).toBeNull();
|
||||
});
|
||||
|
||||
it('should show insufficient funds error for EIP-1559 network', () => {
|
||||
|
@ -57,14 +57,24 @@ export default function SecurityProviderBannerMessage({
|
||||
{messageText}
|
||||
</Text>
|
||||
<Text variant={TextVariant.bodySm} as="h6" color={Color.textAlternative}>
|
||||
{t('thisIsBasedOn')}
|
||||
<ButtonLink
|
||||
size={Size.inherit}
|
||||
href="https://opensea.io/"
|
||||
target="_blank"
|
||||
>
|
||||
{t('openSeaNew')}
|
||||
</ButtonLink>
|
||||
{t('securityAlert', [
|
||||
<ButtonLink
|
||||
key="opensea_link"
|
||||
size={Size.inherit}
|
||||
href="https://opensea.io/"
|
||||
target="_blank"
|
||||
>
|
||||
{t('openSeaNew')}
|
||||
</ButtonLink>,
|
||||
<ButtonLink
|
||||
key="blockaid_link"
|
||||
size={Size.inherit}
|
||||
href="https://blockaid.io/"
|
||||
target="_blank"
|
||||
>
|
||||
{t('blockaid')}
|
||||
</ButtonLink>,
|
||||
])}
|
||||
</Text>
|
||||
</BannerAlert>
|
||||
);
|
||||
|
@ -8,7 +8,7 @@ import { SECURITY_PROVIDER_MESSAGE_SEVERITIES } from './security-provider-banner
|
||||
describe('Security Provider Banner Message', () => {
|
||||
const store = configureMockStore()({});
|
||||
|
||||
const thisIsBasedOnText = 'This is based on information from';
|
||||
const thisIsBasedOnText = 'OpenSea';
|
||||
|
||||
it('should render SecurityProviderBannerMessage component properly when flagAsDangerous is malicious', () => {
|
||||
const securityProviderResponse = {
|
||||
|
@ -133,9 +133,7 @@ describe('SignatureRequestOriginal', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByText('This is based on information from'),
|
||||
).toBeInTheDocument();
|
||||
expect(screen.getByText('OpenSea')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should not render SecurityProviderBannerMessage component when flagAsDangerous is not malicious', () => {
|
||||
@ -150,6 +148,6 @@ describe('SignatureRequestOriginal', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeNull();
|
||||
expect(screen.queryByText('This is based on information from')).toBeNull();
|
||||
expect(screen.queryByText('OpenSea')).toBeNull();
|
||||
});
|
||||
});
|
||||
|
@ -291,9 +291,7 @@ describe('Signature Request Component', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
queryByText('This is based on information from'),
|
||||
).toBeInTheDocument();
|
||||
expect(queryByText('OpenSea')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should not render SecurityProviderBannerMessage component when flagAsDangerous is not malicious', () => {
|
||||
@ -325,7 +323,7 @@ describe('Signature Request Component', () => {
|
||||
'Because of an error, this request was not verified by the security provider. Proceed with caution.',
|
||||
),
|
||||
).toBeNull();
|
||||
expect(queryByText('This is based on information from')).toBeNull();
|
||||
expect(queryByText('OpenSea')).toBeNull();
|
||||
});
|
||||
|
||||
it('should render a warning when the selected account is not the one being used to sign', () => {
|
||||
|
@ -17,7 +17,7 @@ exports[`ExperimentalTab with desktop enabled renders ExperimentalTab component
|
||||
class="settings-page__content-item"
|
||||
>
|
||||
<span>
|
||||
Enable transaction security providers
|
||||
Enable security alerts
|
||||
</span>
|
||||
<div
|
||||
class="settings-page__content-description"
|
||||
@ -38,7 +38,7 @@ exports[`ExperimentalTab with desktop enabled renders ExperimentalTab component
|
||||
<h5
|
||||
class="box box--margin-top-1 box--flex-direction-row typography typography--h5 typography--weight-medium typography--style-normal typography--color-text-default"
|
||||
>
|
||||
OpenSea (Beta)
|
||||
OpenSea + Blockaid (Beta)
|
||||
</h5>
|
||||
<label
|
||||
class="toggle-button toggle-button--off"
|
||||
|
Loading…
Reference in New Issue
Block a user