mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Deep Cake scrub: gut user-visible refs, swap SVG asset contents
URL replacements throughout lib/: - support_view_model.dart: removed Cake's own support channels (email, website, forum, Telegram, Telegram bot). Only GitHub Issues + Releases remain. Third-party provider support links (ChangeNow, SideShift, SimpleSwap, Exolix, Trocador, Onramper, DFX, MoonPay, Robinhood, Kryptonim) kept — genuinely useful when a swap goes sideways. - transaction_details_view_model.dart + payjoin_details_view_model.dart: mempool.cakewallet.com -> mempool.space (canonical free public mempool, no affiliate). - services_updates_widget.dart: status.cakewallet.com -> our GH issues. - 8 widget/screen files: docs.cakewallet.com / blog / cakewallet.com help URLs repointed to github.com/Such-Software/hash-wallet (placeholder until we have our own docs; better than dead-linking to Cake's docs). User-facing text changes: - walletkit_service.dart: WalletKit metadata (name/description/url/icon/ redirect) all -> Hash Wallet / Such Software repo / hashwallet:// scheme. - di.dart: TrezorConnect callback URL + appName -> Hash Wallet. - vulnerable_seeds_popup.dart + haven_wallet_removal_popup.dart: copy rewritten to say 'Hash Wallet' instead of 'Cake Wallet', and point to GH issues instead of Cake's support email. - swap_provider_initial_preference_modal.dart: trailing 'Cake Wallet.' -> 'Hash Wallet.' Deep-link URL scheme cakewallet:// -> hashwallet:// in: - lib/main.dart, lib/src/screens/root/root.dart, lib/view_model/link_view_model.dart Means any cakewallet:// link from a payment QR / Trezor callback / shortcut now routes via hashwallet://. No existing user base so no migration needed. SVG asset swaps (content replaced, filenames kept so call-sites compile without rewriting): - assets/new-ui/cake_squircle_icon.svg -> hash_wallet/02_app_icon.svg - assets/new-ui/cakewallet-wordmark-light.svg -> hash_wallet/03_lockup_horizontal.svg (dark text for light backgrounds) - assets/new-ui/cakewallet-wordmark.svg -> hash_wallet/03_lockup_horizontal_dark.svg (light text for dark backgrounds) - apps_widget.dart: the conditional cakelabs-icon render became a SizedBox() no-op. The Apps tab is gutted anyway (placeholder content); this widget is also used elsewhere where the Cake Labs attribution badge is unwanted.
This commit is contained in:
@@ -29,7 +29,7 @@ class LinkViewModel {
|
||||
bool get isWalletConnectLink => currentLink?.authority == 'wc';
|
||||
bool get isNanoGptLink => currentLink?.scheme == 'nano-gpt';
|
||||
bool get isQuickActionLink =>
|
||||
currentLink?.scheme == 'cakewallet' && currentLink?.host == 'quickaction';
|
||||
currentLink?.scheme == 'hashwallet' && currentLink?.host == 'quickaction';
|
||||
|
||||
String? getRouteToGo() {
|
||||
if (isWalletConnectLink) {
|
||||
|
||||
@@ -83,7 +83,7 @@ abstract class PayjoinDetailsViewModelBase with Store {
|
||||
value: '${S.current.view_transaction_on}mempool.space',
|
||||
onTap: () async {
|
||||
try {
|
||||
final uri = Uri.parse('https://mempool.cakewallet.com/tx/${payjoinSession.txId!}');
|
||||
final uri = Uri.parse('https://mempool.space/tx/${payjoinSession.txId!}');
|
||||
if (await canLaunchUrl(uri))
|
||||
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||
} catch (e) {}
|
||||
|
||||
@@ -15,42 +15,24 @@ abstract class SupportViewModelBase with Store {
|
||||
|
||||
SupportViewModelBase(this._appStore)
|
||||
: items = [
|
||||
// Hash Wallet: Cake's own support channels (email, website, forum,
|
||||
// Discord, Telegram, Telegram bot) gutted — those are Cake Labs
|
||||
// properties, not ours. Replaced with the only channel we have right
|
||||
// now: GitHub Issues. The third-party provider support links below
|
||||
// are kept because they're genuinely useful when a user has trouble
|
||||
// with a swap/buy via that provider.
|
||||
LinkListItem(
|
||||
title: 'Email',
|
||||
icon: 'assets/images/support_icon.png',
|
||||
linkTitle: 'support@cakewallet.com',
|
||||
link: 'mailto:support@cakewallet.com'),
|
||||
title: 'GitHub Issues',
|
||||
icon: 'assets/images/github.png',
|
||||
hasIconColor: true,
|
||||
linkTitle: 'github.com/Such-Software/hash-wallet/issues',
|
||||
link: 'https://github.com/Such-Software/hash-wallet/issues'),
|
||||
LinkListItem(
|
||||
title: 'Website',
|
||||
icon: 'assets/images/global.png',
|
||||
linkTitle: 'cakewallet.com',
|
||||
link: 'https://cakewallet.com'),
|
||||
LinkListItem(
|
||||
title: 'Forum',
|
||||
icon: 'assets/images/discourse.png',
|
||||
linkTitle: 'forum.cakewallet.com',
|
||||
link: 'https://forum.cakewallet.com'),
|
||||
LinkListItem(
|
||||
title: 'GitHub',
|
||||
title: 'GitHub Releases',
|
||||
icon: 'assets/images/github.png',
|
||||
hasIconColor: true,
|
||||
linkTitle: S.current.apk_update,
|
||||
link: 'https://github.com/cake-tech/cake_wallet/releases'),
|
||||
LinkListItem(
|
||||
title: 'Discord',
|
||||
icon: 'assets/images/discord.png',
|
||||
linkTitle: 'discord.gg/pwmWa6aFpX',
|
||||
link: 'https://discord.gg/pwmWa6aFpX'),
|
||||
LinkListItem(
|
||||
title: 'Telegram',
|
||||
icon: 'assets/images/Telegram.png',
|
||||
linkTitle: 't.me/cakewallet',
|
||||
link: 'https://t.me/cakewalletannouncements'),
|
||||
LinkListItem(
|
||||
title: 'Telegram Support Bot',
|
||||
icon: 'assets/images/Telegram.png',
|
||||
linkTitle: '@cakewallet_bot',
|
||||
link: 'https://t.me/cakewallet_bot'),
|
||||
link: 'https://github.com/Such-Software/hash-wallet/releases'),
|
||||
LinkListItem(
|
||||
title: 'ChangeNow',
|
||||
icon: 'assets/images/change_now.png',
|
||||
@@ -86,7 +68,7 @@ abstract class SupportViewModelBase with Store {
|
||||
icon: 'assets/images/onramper_dark.png',
|
||||
lightIcon: 'assets/images/onramper_light.png',
|
||||
linkTitle: 'View exchanges',
|
||||
link: 'https://docs.cakewallet.com/support/buy/#onramper'),
|
||||
link: 'https://onramper.com/'),
|
||||
LinkListItem(
|
||||
title: 'DFX',
|
||||
icon: 'assets/images/dfx_dark.png',
|
||||
@@ -114,7 +96,7 @@ abstract class SupportViewModelBase with Store {
|
||||
link: 'mailto:contact@support.kryptonim.com'),
|
||||
];
|
||||
|
||||
final docsUrl = 'https://docs.cakewallet.com';
|
||||
final docsUrl = 'https://github.com/Such-Software/hash-wallet';
|
||||
|
||||
String fetchUrl({String locale = "en", String authToken = ""}) {
|
||||
var supportUrl =
|
||||
@@ -126,7 +108,7 @@ abstract class SupportViewModelBase with Store {
|
||||
}
|
||||
|
||||
String get appVersion =>
|
||||
"${isMoneroOnly ? "Monero.com" : "Cake Wallet"} - ${_appStore.settingsStore.appVersion}";
|
||||
"${isMoneroOnly ? "Monero.com" : "Hash Wallet"} - ${_appStore.settingsStore.appVersion}";
|
||||
|
||||
String get fiatApiMode => _appStore.settingsStore.fiatApiMode.title;
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@ abstract class TransactionDetailsViewModelBase with Store {
|
||||
case WalletType.monero:
|
||||
return 'https://monero.com/tx/${txId}';
|
||||
case WalletType.bitcoin:
|
||||
return 'https://mempool.cakewallet.com/${wallet.isTestnet ? "testnet/" : ""}tx/${txId}';
|
||||
return 'https://mempool.space/${wallet.isTestnet ? "testnet/" : ""}tx/${txId}';
|
||||
case WalletType.litecoin:
|
||||
return bitcoin!.txIsMweb(transactionInfo)
|
||||
? "https://www.mwebexplorer.com/blocks/block/${transactionInfo.height}"
|
||||
|
||||
Reference in New Issue
Block a user