From f0a3390d10787b4956c5b5883c43ab88556400f7 Mon Sep 17 00:00:00 2001
From: shan <47271333+shanimal08@users.noreply.github.com>
Date: Tue, 10 Dec 2024 13:17:19 +0200
Subject: [PATCH 1/7] feat(ui): orphan chain info tooltip (#1213)
Description
---
- added tooltip for steps to try if you've landed up on an orphan chain
- adjusted dialog styling for the loader when importing a new wallet
form seed words
Motivation and Context
---
resolves:
- https://github.com/tari-project/universe/issues/1193
- https://github.com/tari-project/universe/issues/1189
How Has This Been Tested?
---
- locally:
https://github.com/user-attachments/assets/fbeee140-fda3-4467-8282-cf824d1e3514
https://github.com/user-attachments/assets/bc944f27-3ce2-4b36-a6e2-e016c36ed8df
---
---
public/locales/af/mining-view.json | 9 +++
public/locales/af/settings.json | 6 ++
public/locales/cn/mining-view.json | 9 +++
public/locales/cn/settings.json | 6 ++
public/locales/de/mining-view.json | 9 +++
public/locales/de/settings.json | 6 ++
public/locales/en/mining-view.json | 9 +++
public/locales/en/settings.json | 15 ++--
public/locales/fr/mining-view.json | 9 +++
public/locales/fr/settings.json | 6 ++
public/locales/hi/mining-view.json | 9 +++
public/locales/hi/settings.json | 6 ++
public/locales/id/mining-view.json | 9 +++
public/locales/id/settings.json | 6 ++
public/locales/ja/mining-view.json | 9 +++
public/locales/ja/settings.json | 6 ++
public/locales/ko/mining-view.json | 9 +++
public/locales/ko/settings.json | 6 ++
public/locales/pl/mining-view.json | 9 +++
public/locales/pl/settings.json | 6 ++
public/locales/ru/mining-view.json | 9 +++
public/locales/ru/settings.json | 6 ++
public/locales/tr/mining-view.json | 9 +++
public/locales/tr/settings.json | 6 ++
.../AdminUI/groups/OtherUIGroup.tsx | 6 ++
src/components/elements/List.tsx | 31 ++++++++
.../wallet/SeedWordsMarkup/SeedWordsEdit.tsx | 25 ++++--
src/containers/main/SideBar/SideBar.tsx | 2 +-
.../components/LostConnectionAlert.tsx | 8 +-
.../SideBar/components/OrphanChainAlert.tsx | 36 ---------
.../OrphanChainAlert.styles.ts | 56 +++++++++++++
.../OrphanChainAlert/OrphanChainAlert.tsx | 79 +++++++++++++++++++
src/containers/main/SideBar/styles.ts | 5 +-
src/hooks/app/useSetUp.ts | 4 +-
src/store/appStateStore.ts | 2 +-
src/store/useUIStore.ts | 2 +-
src/theme/palettes/light.ts | 2 +-
37 files changed, 386 insertions(+), 61 deletions(-)
create mode 100644 src/components/elements/List.tsx
delete mode 100644 src/containers/main/SideBar/components/OrphanChainAlert.tsx
create mode 100644 src/containers/main/SideBar/components/OrphanChainAlert/OrphanChainAlert.styles.ts
create mode 100644 src/containers/main/SideBar/components/OrphanChainAlert/OrphanChainAlert.tsx
diff --git a/public/locales/af/mining-view.json b/public/locales/af/mining-view.json
index 64ef7a511..32add90ff 100644
--- a/public/locales/af/mining-view.json
+++ b/public/locales/af/mining-view.json
@@ -20,6 +20,15 @@
"stop-mining": "Stop Mynbou",
"waiting-for-idle": "Wag tot onaktief"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Jy verdien belonings vir die myn van CPU en GPU afsonderlik",
"you-won-block": "Jy was die wenner van blok #{{ blockHeight }}",
"you-won-while-away": "Jy het {{ blocks }} gewen terwyl jy weg was",
diff --git a/public/locales/af/settings.json b/public/locales/af/settings.json
index 750edc826..a5aea1374 100644
--- a/public/locales/af/settings.json
+++ b/public/locales/af/settings.json
@@ -46,6 +46,7 @@
"title": "Tyd waarna masjien as onaktief beskou word"
},
"importing-wallet": "Beursie invoer",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Voer 24 woorde in, geskei deur spasies",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Uitnodigingskode",
@@ -84,6 +85,10 @@
"pool-mining-description": "Wanneer geaktiveer, sal u in \"n poel myn en by \"n groep mynwerkers aansluit.",
"randomx-network-hash-rate": "Randomx netwerk hashrate",
"refresh-versions": "Verfris weergawes",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Rapporteer \"n probleem",
"reset-permanently": "Is jy seker jy wil alle instellings permanent terugstel?",
"reset-settings": "Stel Instellings Terug",
@@ -111,6 +116,7 @@
"general": "Algemeen",
"mining": "Mynbou",
"p2p": "Poel Mynbou",
+ "releaseNotes": "Release Notes",
"very_experimental": "Baie Eksperimenteel",
"wallet": "Beursie"
},
diff --git a/public/locales/cn/mining-view.json b/public/locales/cn/mining-view.json
index 0cbf954ee..5b72b4314 100644
--- a/public/locales/cn/mining-view.json
+++ b/public/locales/cn/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "停止挖矿",
"waiting-for-idle": "等待空闲"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "您分别为 CPU 和 GPU 挖矿获得奖励",
"you-won-block": "您赢得了区块 #{{ blockHeight }}",
"you-won-while-away": "您在离开时赢得了 {{ blocks }}",
diff --git a/public/locales/cn/settings.json b/public/locales/cn/settings.json
index 09659c1b0..7ef486bde 100644
--- a/public/locales/cn/settings.json
+++ b/public/locales/cn/settings.json
@@ -46,6 +46,7 @@
"title": "机器被视为空闲的时间"
},
"importing-wallet": "正在导入钱包",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "输入24个用空格分隔的单词",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "邀请代码",
@@ -84,6 +85,10 @@
"pool-mining-description": "启用后,您将在矿池中挖矿并加入一组矿工(部落)。",
"randomx-network-hash-rate": "Randomx 网络算力",
"refresh-versions": "刷新版本",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "报告问题",
"reset-permanently": "您确定要永久重置所有设置吗?",
"reset-settings": "重置设置",
@@ -111,6 +116,7 @@
"general": "常规",
"mining": "挖矿",
"p2p": "矿池挖矿",
+ "releaseNotes": "Release Notes",
"very_experimental": "非常实验性",
"wallet": "钱包"
},
diff --git a/public/locales/de/mining-view.json b/public/locales/de/mining-view.json
index 2ae914a6a..cdb4f11fc 100644
--- a/public/locales/de/mining-view.json
+++ b/public/locales/de/mining-view.json
@@ -16,6 +16,15 @@
"stop-mining": "Mining stoppen",
"waiting-for-idle": "Warten auf Leerlauf"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Sie verdienen Belohnungen für das Mining von CPU und GPU separat",
"you-won-block": "Sie waren der Gewinner von Block #{{ blockHeight }}",
"you-won-while-away": "Sie haben {{ blocks }} gewonnen, während Sie weg waren",
diff --git a/public/locales/de/settings.json b/public/locales/de/settings.json
index efa55121c..a4cee4eb5 100644
--- a/public/locales/de/settings.json
+++ b/public/locales/de/settings.json
@@ -46,6 +46,7 @@
"title": "Zeit nach der die Maschine als inaktiv betrachtet wird"
},
"importing-wallet": "Wallet wird importiert",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Geben Sie 24 Wörter ein, getrennt durch Leerzeichen",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Einladungscode",
@@ -84,6 +85,10 @@
"pool-mining-description": "Wenn aktiviert, wirst du in einem Pool minen und einer Gruppe von Minern beitreten.",
"randomx-network-hash-rate": "Randomx-Netzwerk-Hashrate",
"refresh-versions": "Versionen aktualisieren",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Ein Problem melden",
"reset-permanently": "Bist du sicher, dass du alle Einstellungen dauerhaft zurücksetzen möchtest?",
"reset-settings": "Einstellungen zurücksetzen",
@@ -111,6 +116,7 @@
"general": "Allgemein",
"mining": "Mining",
"p2p": "Pool-Mining",
+ "releaseNotes": "Release Notes",
"very_experimental": "Sehr experimentell",
"wallet": "Wallet"
},
diff --git a/public/locales/en/mining-view.json b/public/locales/en/mining-view.json
index 822262fbc..ce2537598 100644
--- a/public/locales/en/mining-view.json
+++ b/public/locales/en/mining-view.json
@@ -16,6 +16,15 @@
"stop-mining": "Stop Mining",
"waiting-for-idle": "Waiting for Idle"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "You earn rewards for mining CPU and GPU separately",
"you-won-block": "You were the winner of block #{{ blockHeight }}",
"you-won-while-away": "You won {{ blocks }} while you were away",
diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json
index 74345c1e5..2614b8b1c 100644
--- a/public/locales/en/settings.json
+++ b/public/locales/en/settings.json
@@ -46,6 +46,7 @@
"title": "Time after which mdchine is considered idle"
},
"importing-wallet": "Importing wallet",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Enter 24 words separated by spaces",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Invite Code",
@@ -84,6 +85,10 @@
"pool-mining-description": "When enabled, you will mine in a pool and join a group of miners.",
"randomx-network-hash-rate": "Randomx network hashrate",
"refresh-versions": "Refresh versions",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Report an issue",
"reset-permanently": "Are you sure you want to reset all settings permanently?",
"reset-settings": "Reset Settings",
@@ -111,9 +116,9 @@
"general": "General",
"mining": "Mining",
"p2p": "Pool Mining",
+ "releaseNotes": "Release Notes",
"very_experimental": "Very Experimental",
- "wallet": "Wallet",
- "releaseNotes": "Release Notes"
+ "wallet": "Wallet"
},
"tari-wallet-address": "Tari Wallet Address",
"terms-and-conditions": "Terms & Conditions",
@@ -136,9 +141,5 @@
"visual-mode": "Visual mode",
"yes": "Yes",
"your-feedback": "Describe your issue, including your Telegram handle if you have one, so that we can contact you with updates.",
- "your-reference": "Your reference:
{{logRef}}",
- "release-notes": {
- "upgrade-available": "⚠️ Upgrade Available",
- "loading": "Loading release notes..."
- }
+ "your-reference": "Your reference:
{{logRef}}"
}
\ No newline at end of file
diff --git a/public/locales/fr/mining-view.json b/public/locales/fr/mining-view.json
index e5bd25968..d08321cc1 100644
--- a/public/locales/fr/mining-view.json
+++ b/public/locales/fr/mining-view.json
@@ -16,6 +16,15 @@
"stop-mining": "Arrêtez le minage",
"waiting-for-idle": "En attente d'inactivité"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Vous gagnez des récompenses pour le minage CPU et GPU séparément",
"you-won-block": "Vous avez gagné le bloc #{{ blockHeight }}",
"you-won-while-away": "Vous avez gagné {{ blocks }} pendant votre absence",
diff --git a/public/locales/fr/settings.json b/public/locales/fr/settings.json
index 7fc5cf9c1..89818aa67 100644
--- a/public/locales/fr/settings.json
+++ b/public/locales/fr/settings.json
@@ -46,6 +46,7 @@
"title": "Temps après lequel la machine est considérée comme inactive"
},
"importing-wallet": "Importation du portefeuille",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Entrez 24 mots séparés par des espaces",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Code d\"invitation",
@@ -84,6 +85,10 @@
"pool-mining-description": "Lorsqu\"il est activé, vous minerez dans un pool et rejoindrez un groupe de mineurs.",
"randomx-network-hash-rate": "Taux de hachage du réseau Randomx",
"refresh-versions": "Rafraîchir les versions",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Signaler un problème",
"reset-permanently": "Êtes-vous sûr de vouloir réinitialiser tous les paramètres de manière permanente ?",
"reset-settings": "Réinitialiser les paramètres",
@@ -111,6 +116,7 @@
"general": "Général",
"mining": "Minage",
"p2p": "Minage en pool",
+ "releaseNotes": "Release Notes",
"very_experimental": "Très Expérimental",
"wallet": "Portefeuille"
},
diff --git a/public/locales/hi/mining-view.json b/public/locales/hi/mining-view.json
index e974ef65b..7348b079e 100644
--- a/public/locales/hi/mining-view.json
+++ b/public/locales/hi/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "माइनिंग रोकें",
"waiting-for-idle": "निष्क्रिय होने की प्रतीक्षा"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "आप CPU और GPU माइनिंग के लिए अलग-अलग पुरस्कार अर्जित करते हैं",
"you-won-block": "आप ब्लॉक #{{ blockHeight }} के विजेता थे",
"you-won-while-away": "आपने {{ blocks }} जीते जब आप दूर थे",
diff --git a/public/locales/hi/settings.json b/public/locales/hi/settings.json
index ae80e512a..7e13a3503 100644
--- a/public/locales/hi/settings.json
+++ b/public/locales/hi/settings.json
@@ -46,6 +46,7 @@
"title": "समय जिसके बाद मशीन को निष्क्रिय माना जाता है"
},
"importing-wallet": "वॉलेट आयात किया जा रहा है",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "24 शब्दों को स्पेस से अलग करके दर्ज करें",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "आमंत्रण कोड",
@@ -84,6 +85,10 @@
"pool-mining-description": "सक्षम होने पर, आप एक पूल में माइन करेंगे और माइनर्स के समूह में शामिल होंगे।",
"randomx-network-hash-rate": "Randomx नेटवर्क हैशरेट",
"refresh-versions": "संस्करण ताज़ा करें",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "समस्या की रिपोर्ट करें",
"reset-permanently": "क्या आप वाकई सभी सेटिंग्स को स्थायी रूप से रीसेट करना चाहते हैं?",
"reset-settings": "सेटिंग्स रीसेट करें",
@@ -111,6 +116,7 @@
"general": "सामान्य",
"mining": "माइनिंग",
"p2p": "पूल माइनिंग",
+ "releaseNotes": "Release Notes",
"very_experimental": "बहुत प्रयोगात्मक",
"wallet": "वॉलेट"
},
diff --git a/public/locales/id/mining-view.json b/public/locales/id/mining-view.json
index 92fe2ae40..19a9bafcd 100644
--- a/public/locales/id/mining-view.json
+++ b/public/locales/id/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "Hentikan Penambangan",
"waiting-for-idle": "Menunggu Tidak Aktif"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Anda mendapatkan hadiah untuk menambang CPU dan GPU secara terpisah",
"you-won-block": "Anda adalah pemenang dari blok #{{ blockHeight }}",
"you-won-while-away": "Anda memenangkan {{ blocks }} saat Anda pergi",
diff --git a/public/locales/id/settings.json b/public/locales/id/settings.json
index ae95dca7a..415c9f751 100644
--- a/public/locales/id/settings.json
+++ b/public/locales/id/settings.json
@@ -46,6 +46,7 @@
"title": "Waktu setelah mesin dianggap tidak aktif"
},
"importing-wallet": "Mengimpor dompet",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Masukkan 24 kata yang dipisahkan oleh spasi",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Kode Undangan",
@@ -84,6 +85,10 @@
"pool-mining-description": "Ketika diaktifkan, Anda akan menambang dalam pool dan bergabung dengan kelompok penambang.",
"randomx-network-hash-rate": "Hashrate jaringan Randomx",
"refresh-versions": "Segarkan versi",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Laporkan masalah",
"reset-permanently": "Apakah Anda yakin ingin mengatur ulang semua pengaturan secara permanen?",
"reset-settings": "Atur Ulang Pengaturan",
@@ -111,6 +116,7 @@
"general": "Umum",
"mining": "Penambangan",
"p2p": "Penambangan Pool",
+ "releaseNotes": "Release Notes",
"very_experimental": "Sangat Eksperimental",
"wallet": "Dompet"
},
diff --git a/public/locales/ja/mining-view.json b/public/locales/ja/mining-view.json
index d7e38290a..768451a86 100644
--- a/public/locales/ja/mining-view.json
+++ b/public/locales/ja/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "マイニングを停止",
"waiting-for-idle": "アイドル待機中"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "CPUとGPUのマイニングで別々に報酬を得ます",
"you-won-block": "ブロック #{{ blockHeight }} の勝者です",
"you-won-while-away": "不在中に{{ blocks }}を獲得しました",
diff --git a/public/locales/ja/settings.json b/public/locales/ja/settings.json
index 97aa4a1f4..496bc3c5b 100644
--- a/public/locales/ja/settings.json
+++ b/public/locales/ja/settings.json
@@ -46,6 +46,7 @@
"title": "マシンがアイドルと見なされるまでの時間"
},
"importing-wallet": "ウォレットのインポート",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "スペースで区切って24の単語を入力してください",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "招待コード",
@@ -84,6 +85,10 @@
"pool-mining-description": "有効にすると、プールでマイニングし、マイナーのグループに参加します。",
"randomx-network-hash-rate": "Randomxネットワークのハッシュレート",
"refresh-versions": "バージョンを更新",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "問題を報告する",
"reset-permanently": "すべての設定を永久にリセットしてもよろしいですか?",
"reset-settings": "設定をリセット",
@@ -111,6 +116,7 @@
"general": "一般",
"mining": "マイニング",
"p2p": "プールマイニング",
+ "releaseNotes": "Release Notes",
"very_experimental": "非常に実験的",
"wallet": "ウォレット"
},
diff --git a/public/locales/ko/mining-view.json b/public/locales/ko/mining-view.json
index b19798b95..eb56ebd74 100644
--- a/public/locales/ko/mining-view.json
+++ b/public/locales/ko/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "채굴 중지",
"waiting-for-idle": "유휴 상태 대기 중"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "CPU와 GPU 채굴에 대해 각각 보상을 받습니다",
"you-won-block": "당신은 블록 #{{ blockHeight }}의 승자였습니다",
"you-won-while-away": "자리를 비운 동안 {{ blocks }}를 획득했습니다",
diff --git a/public/locales/ko/settings.json b/public/locales/ko/settings.json
index 979d820ad..40da718af 100644
--- a/public/locales/ko/settings.json
+++ b/public/locales/ko/settings.json
@@ -46,6 +46,7 @@
"title": "기기가 유휴 상태로 간주되는 시간"
},
"importing-wallet": "지갑 가져오기",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "공백으로 구분된 24개의 단어를 입력하세요",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "초대 코드",
@@ -84,6 +85,10 @@
"pool-mining-description": "활성화되면 풀에서 채굴하고 마이너 그룹에 참여합니다.",
"randomx-network-hash-rate": "Randomx 네트워크 해시레이트",
"refresh-versions": "버전 새로고침",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "문제 보고",
"reset-permanently": "모든 설정을 영구적으로 초기화하시겠습니까?",
"reset-settings": "설정 초기화",
@@ -111,6 +116,7 @@
"general": "일반",
"mining": "채굴",
"p2p": "풀 채굴",
+ "releaseNotes": "Release Notes",
"very_experimental": "매우 실험적",
"wallet": "지갑"
},
diff --git a/public/locales/pl/mining-view.json b/public/locales/pl/mining-view.json
index e4b7e9c8a..7dfc1bf0a 100644
--- a/public/locales/pl/mining-view.json
+++ b/public/locales/pl/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "Zatrzymaj kopanie",
"waiting-for-idle": "Oczekiwanie na bezczynność"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Zarabiasz nagrody za kopanie CPU i GPU osobno",
"you-won-block": "Byłeś zwycięzcą bloku #{{ blockHeight }}",
"you-won-while-away": "Wygrałeś {{ blocks }} podczas swojej nieobecności",
diff --git a/public/locales/pl/settings.json b/public/locales/pl/settings.json
index 9f28735e2..ec5551010 100644
--- a/public/locales/pl/settings.json
+++ b/public/locales/pl/settings.json
@@ -47,6 +47,7 @@
"title": "Czas po którym urządzenie jest uważane za bezczynne"
},
"importing-wallet": "Importowanie portfela",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Wprowadź 24 słowa oddzielone spacjami",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Kod Zaproszenia",
@@ -86,6 +87,10 @@
"pool-mining-description": "Po włączeniu tej opcji będziesz wydobywać w puli i dołączać do grupy górników (plemienia).",
"randomx-network-hash-rate": "Hashrate sieci Randomx",
"refresh-versions": "Odśwież wersje",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Zgłoś problem",
"reset-permanently": "Czy na pewno chcesz trwale zresetować ustawienia?",
"reset-settings": "Resetuj ustawienia",
@@ -113,6 +118,7 @@
"general": "Ogólne",
"mining": "Wydobycie",
"p2p": "Kopanie w puli",
+ "releaseNotes": "Release Notes",
"very_experimental": "Bardzo Eksperymentalne",
"wallet": "Portfel"
},
diff --git a/public/locales/ru/mining-view.json b/public/locales/ru/mining-view.json
index 0ed5fcb24..da82da207 100644
--- a/public/locales/ru/mining-view.json
+++ b/public/locales/ru/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "Остановить майнинг",
"waiting-for-idle": "Ожидание простоя"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "Вы получаете награды за майнинг на CPU и GPU отдельно",
"you-won-block": "Вы выиграли блок #{{ blockHeight }}",
"you-won-while-away": "Вы выиграли {{ blocks }}, пока вас не было",
diff --git a/public/locales/ru/settings.json b/public/locales/ru/settings.json
index 52ea2e8b6..779df8e4b 100644
--- a/public/locales/ru/settings.json
+++ b/public/locales/ru/settings.json
@@ -46,6 +46,7 @@
"title": "Время, после которого машина считается в простое"
},
"importing-wallet": "Импорт кошелька",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Введите 24 слова, разделенные пробелами",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Код приглашения",
@@ -84,6 +85,10 @@
"pool-mining-description": "При включении вы будете майнить в пуле и присоединитесь к группе майнеров.",
"randomx-network-hash-rate": "Хэшрейт сети Randomx",
"refresh-versions": "Обновить версии",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Сообщить о проблеме",
"reset-permanently": "Вы уверены, что хотите сбросить все настройки навсегда?",
"reset-settings": "Сбросить настройки",
@@ -111,6 +116,7 @@
"general": "Общие",
"mining": "Майнинг",
"p2p": "Майнинг в пуле",
+ "releaseNotes": "Release Notes",
"very_experimental": "Очень экспериментальные",
"wallet": "Кошелек"
},
diff --git a/public/locales/tr/mining-view.json b/public/locales/tr/mining-view.json
index ce0475fda..54df1d55c 100644
--- a/public/locales/tr/mining-view.json
+++ b/public/locales/tr/mining-view.json
@@ -17,6 +17,15 @@
"stop-mining": "Madenciliği Durdur",
"waiting-for-idle": "Boşta Bekliyor"
},
+ "orphan-chain-tooltip": {
+ "heading": "Things to try:",
+ "step_1": "Check your Internet connection",
+ "step_2": "Wait 30 mins",
+ "step_3": "Restart the app",
+ "step_4": "Try using a Tor Bridge (in Settings)",
+ "step_5": "Try disabling Tor (in Settings)",
+ "step_6": "Try an app reset (in Settings)"
+ },
"you-earn-rewards-separately": "CPU ve GPU madenciliği için ayrı ayrı ödüller kazanırsınız",
"you-won-block": "blok #{{ blockHeight }} kazananı siz oldunuz",
"you-won-while-away": "Uzakta olduğunuzda {{ blocks }} kazandınız",
diff --git a/public/locales/tr/settings.json b/public/locales/tr/settings.json
index 3b68f56ba..c1ff96255 100644
--- a/public/locales/tr/settings.json
+++ b/public/locales/tr/settings.json
@@ -46,6 +46,7 @@
"title": "Makinenin boşta sayılacağı süre"
},
"importing-wallet": "Cüzdan İçe Aktarılıyor",
+ "importing-wallet-copy": "Tari Universe will restart automatically once your wallet has been imported",
"invalid-seed-words": "Boşluklarla ayrılmış 24 kelime girin",
"invalid-stats-server-port": "Invalid stats server port",
"inviteCode": "Davet Kodu",
@@ -84,6 +85,10 @@
"pool-mining-description": "Etkinleştirildiğinde, bir havuzda madencilik yapacak ve bir grup madenciye (kabileye) katılacaksınız.",
"randomx-network-hash-rate": "Randomx ağ hash oranı",
"refresh-versions": "Sürümleri yenileyin",
+ "release-notes": {
+ "loading": "Loading release notes...",
+ "upgrade-available": "⚠️ Upgrade Available"
+ },
"report-issue": "Bir sorunu bildir",
"reset-permanently": "Tüm ayarları kalıcı olarak sıfırlamak istediğinizden emin misiniz?",
"reset-settings": "Ayarları sıfırla",
@@ -111,6 +116,7 @@
"general": "Genel",
"mining": "Madencilik",
"p2p": "Havuz Madenciliği",
+ "releaseNotes": "Release Notes",
"very_experimental": "Çok Deneysel",
"wallet": "Cüzdan"
},
diff --git a/src/components/AdminUI/groups/OtherUIGroup.tsx b/src/components/AdminUI/groups/OtherUIGroup.tsx
index 4f09cface..089434530 100644
--- a/src/components/AdminUI/groups/OtherUIGroup.tsx
+++ b/src/components/AdminUI/groups/OtherUIGroup.tsx
@@ -18,6 +18,12 @@ export function OtherUIGroup() {
+
{/* TODO: add the other sections if we want */}
>
diff --git a/src/components/elements/List.tsx b/src/components/elements/List.tsx
new file mode 100644
index 000000000..d2fbb33dd
--- /dev/null
+++ b/src/components/elements/List.tsx
@@ -0,0 +1,31 @@
+import styled from 'styled-components';
+
+const ListItem = styled.li`
+ color: ${({ theme }) => theme.palette.text.secondary};
+ font-size: 12px;
+ font-weight: 400;
+`;
+
+const ListWrapper = styled.div`
+ display: flex;
+ width: 100%;
+ ol,
+ ul {
+ max-width: 100%;
+ padding: 0;
+ padding-inline-start: 20px;
+ line-height: 1.35;
+ margin: 0;
+ }
+`;
+
+interface ListProps {
+ items: string[];
+ ordered?: boolean;
+}
+
+export const List = ({ items, ordered = false }: ListProps) => {
+ const itemMarkup = items?.map((item, i) => {item});
+
+ return {ordered ? {itemMarkup}
: };
+};
diff --git a/src/containers/floating/Settings/sections/wallet/SeedWordsMarkup/SeedWordsEdit.tsx b/src/containers/floating/Settings/sections/wallet/SeedWordsMarkup/SeedWordsEdit.tsx
index bc0417d90..5428db9bd 100644
--- a/src/containers/floating/Settings/sections/wallet/SeedWordsMarkup/SeedWordsEdit.tsx
+++ b/src/containers/floating/Settings/sections/wallet/SeedWordsMarkup/SeedWordsEdit.tsx
@@ -53,8 +53,15 @@ export const GreyTypography = styled(Typography)(({ theme }) => ({
const seedWordsRegex = /^(([a-zA-Z]+)\s){23}([a-zA-Z]+)$/;
+const dialogStyles = {
+ width: '380px',
+ padding: '16px 30px',
+ gap: 16,
+};
+
export const SeedWordsEdit = ({ seedWords, seedWordsFetching, toggleEdit }: SeedWordsEditProps) => {
const [showConfirm, setShowConfirm] = useState(false);
+
const [newSeedWords, setNewSeedWords] = useState();
const importSeedWords = useWalletStore((s) => s.importSeedWords);
const isWalletImporting = useWalletStore((s) => s.is_wallet_importing);
@@ -158,16 +165,22 @@ export const SeedWordsEdit = ({ seedWords, seedWordsFetching, toggleEdit }: Seed
{errors.seedWords && errors.seedWords.message}