Skip to content

Commit

Permalink
test/test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka committed Feb 26, 2025
1 parent 83856e6 commit 619ab12
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/suite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trezor/suite",
"suiteVersion": "25.3.0",
"suiteVersion": "25.3.1",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Context } from '@suite-common/message-system';
import { isSupportedEthStakingNetworkSymbol } from '@suite-common/wallet-utils';
import {
isSupportedEthStakingNetworkSymbol,
isSupportedSolStakingNetworkSymbol,
} from '@suite-common/wallet-utils';
import { Column } from '@trezor/components';
import { spacings } from '@trezor/theme';

Expand Down Expand Up @@ -31,6 +34,9 @@ export const AccountBanners = ({ account }: AccountBannersProps) => {
{account?.symbol &&
isSupportedEthStakingNetworkSymbol(account.symbol) &&
route?.name === 'wallet-staking' && <ContextMessage context={Context.ethStaking} />}
{account?.symbol &&
isSupportedSolStakingNetworkSymbol(account.symbol) &&
route?.name === 'wallet-staking' && <ContextMessage context={Context.solStaking} />}
<AuthConfirmFailed />
<BackendDisconnected />
<DeviceUnavailable />
Expand Down
60 changes: 59 additions & 1 deletion suite-common/message-system/config/config.v1.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"timestamp": "2025-02-24T00:00:00+00:00",
"sequence": 81,
"sequence": 84,
"actions": [
{
"conditions": [
Expand Down Expand Up @@ -294,6 +294,64 @@
}
}
},
{
"conditions": [
{
"settings": [
{
"sol": true
}
],
"environment": {
"desktop": ">25.2.0",
"mobile": "!",
"web": ">25.2.2"
}
}
],
"message": {
"id": "b487d590-3bbc-43ff-a5fc-048777512d49",
"priority": 92,
"dismissible": true,
"variant": "info",
"category": ["context"],
"content": {
"en-GB": "Tady to aktualizuj, delej.",
"en": "Tady to aktualizuj, delej..",
"es": "Si encuentras algún problema al sincronizar tus cuentas de Solana, por favor actualiza tu Trezor Suite a la última versión.",
"cs": "Pokud narazíte na problémy se synchronizací vašich účtů Solana, aktualizujte Trezor Suite na nejnovější verzi.",
"ru": "Если у вас возникли проблемы с синхронизацией ваших счетов Solana, обновите Trezor Suite до последней версии.",
"ja": "Solanaアカウントの同期に問題がある場合は、Trezor Suiteを最新バージョンに更新してください。",
"hu": "Ha bármilyen problémába ütközik a Solana fiókjainak szinkronizálásakor, frissítse a Trezor Suite alkalmazást a legújabb verzióra.",
"it": "Se riscontri problemi di sincronizzazione dei tuoi account Solana, aggiorna la tua Trezor Suite all'ultima versione.",
"fr": "Si vous rencontrez des problèmes de synchronisation de vos comptes Solana, veuillez mettre à jour votre Trezor Suite vers la dernière version.",
"de": "Wenn Sie Probleme beim Synchronisieren Ihrer Solana-Konten haben, aktualisieren Sie Ihre Trezor Suite auf die neueste Version.",
"tr": "Solana hesaplarınızı senkronize etme konusunda herhangi bir sorunla karşılaşırsanız, Trezor Suite'inizi en son sürüme güncelleyin.",
"pt": "Se encontrar problemas ao sincronizar as suas contas Solana, atualize o seu Trezor Suite para a versão mais recente.",
"uk": "Якщо у вас виникли проблеми з синхронізацією ваших рахунків Solana, оновіть ваш Trezor Suite до останньої версії."
},
"cta": {
"action": "internal-link",
"link": "firmware-index",
"label": {
"en-GB": "Update now",
"en": "Update now",
"es": "Actualizar ahora",
"cs": "Aktualizovat teď",
"ru": "Обновить сейчас",
"ja": "今すぐアップデート",
"hu": "Frissítés most",
"it": "Aggiorna ora",
"fr": "Mettre à jour maintenant",
"de": "Jetzt aktualisieren",
"tr": "Şimdi güncelle",
"pt": "Atualizar agora",
"uk": "Оновити зараз"
}
},
"context": { "domain": "accounts.sol.staking" }
}
},
{
"conditions": [
{
Expand Down
1 change: 1 addition & 0 deletions suite-common/message-system/src/messageSystemTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type FeatureDomain = (typeof Feature)[keyof typeof Feature];
export const Context = {
coinjoin: 'accounts.coinjoin',
ethStaking: 'accounts.eth.staking',
solStaking: 'accounts.sol.staking',
} as const;

export type ContextDomain = (typeof Context)[keyof typeof Context];
Expand Down

0 comments on commit 619ab12

Please sign in to comment.