From 21cc7307bacd60c7724b8342165b8f12edfa6207 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 7 Jan 2026 13:08:14 +0100 Subject: [PATCH 1/2] refactor(frontend): rename and move link to wallet info for factory --- .../lib/components/factory/create/FactoryCredits.svelte | 4 ++-- .../factory/create/FactoryCreditsWithFee.svelte | 4 ++-- .../create/FactoryWalletInfo.svelte} | 8 +------- src/frontend/src/lib/i18n/en.json | 2 +- src/frontend/src/lib/i18n/zh-cn.json | 2 +- src/frontend/src/lib/types/i18n.d.ts | 2 +- 6 files changed, 8 insertions(+), 14 deletions(-) rename src/frontend/src/lib/components/{wallet/GetICPInfo.svelte => factory/create/FactoryWalletInfo.svelte} (85%) diff --git a/src/frontend/src/lib/components/factory/create/FactoryCredits.svelte b/src/frontend/src/lib/components/factory/create/FactoryCredits.svelte index 3b0b94549..06b9e38a8 100644 --- a/src/frontend/src/lib/components/factory/create/FactoryCredits.svelte +++ b/src/frontend/src/lib/components/factory/create/FactoryCredits.svelte @@ -2,7 +2,7 @@ import { fromNullable, isNullish } from '@dfinity/utils'; import type { Snippet } from 'svelte'; import FactoryCreditsWithFee from '$lib/components/factory/create/FactoryCreditsWithFee.svelte'; - import GetICPInfo from '$lib/components/wallet/GetICPInfo.svelte'; + import FactoryWalletInfo from '$lib/components/factory/create/FactoryWalletInfo.svelte'; import type { SelectedWallet } from '$lib/schemas/wallet.schema'; import type { JunoModalCreateSegmentDetail, JunoModalDetail } from '$lib/types/modal'; import type { Option } from '$lib/types/utils'; @@ -37,7 +37,7 @@ {#if isNullish(fee)} - + {:else} import type { Snippet } from 'svelte'; import Html from '$lib/components/ui/Html.svelte'; - import GetICPInfo from '$lib/components/wallet/GetICPInfo.svelte'; + import FactoryWalletInfo from '$lib/components/factory/create/FactoryWalletInfo.svelte'; import { E8S_PER_ICP } from '$lib/constants/app.constants'; import { CYCLES, ICP } from '$lib/constants/token.constants'; import { creditsOrZero } from '$lib/derived/console/credits.derived'; @@ -89,7 +89,7 @@ {/if} {#if insufficientFunds} - + {:else} {@render children()} {/if} diff --git a/src/frontend/src/lib/components/wallet/GetICPInfo.svelte b/src/frontend/src/lib/components/factory/create/FactoryWalletInfo.svelte similarity index 85% rename from src/frontend/src/lib/components/wallet/GetICPInfo.svelte rename to src/frontend/src/lib/components/factory/create/FactoryWalletInfo.svelte index 6b3b62b5f..12429cf9e 100644 --- a/src/frontend/src/lib/components/wallet/GetICPInfo.svelte +++ b/src/frontend/src/lib/components/factory/create/FactoryWalletInfo.svelte @@ -12,7 +12,7 @@

- {$i18n.wallet.transfer_icp_info} + {$i18n.wallet.transfer_info} {$i18n.wallet.documentation}. @@ -21,9 +21,3 @@ - - diff --git a/src/frontend/src/lib/i18n/en.json b/src/frontend/src/lib/i18n/en.json index 6c33d8aa1..fbc089b24 100644 --- a/src/frontend/src/lib/i18n/en.json +++ b/src/frontend/src/lib/i18n/en.json @@ -357,7 +357,7 @@ "account_identifier": "Account identifier", "balance": "Balance", "credits": "Credits", - "transfer_icp_info": "Learn how to provision your wallet in the", + "transfer_info": "Learn how to provision your wallet in the", "documentation": "documentation", "tx_id": "ID", "tx_timestamp": "Timestamp", diff --git a/src/frontend/src/lib/i18n/zh-cn.json b/src/frontend/src/lib/i18n/zh-cn.json index 2ec14a113..4fc42dda4 100644 --- a/src/frontend/src/lib/i18n/zh-cn.json +++ b/src/frontend/src/lib/i18n/zh-cn.json @@ -357,7 +357,7 @@ "account_identifier": "账户", "balance": "余额", "credits": "积分", - "transfer_icp_info": "了解如何为您的钱包充值", + "transfer_info": "了解如何为您的钱包充值", "documentation": "文档", "tx_id": "交易ID", "tx_timestamp": "时间", diff --git a/src/frontend/src/lib/types/i18n.d.ts b/src/frontend/src/lib/types/i18n.d.ts index ec9deb146..e396f2388 100644 --- a/src/frontend/src/lib/types/i18n.d.ts +++ b/src/frontend/src/lib/types/i18n.d.ts @@ -367,7 +367,7 @@ interface I18nWallet { account_identifier: string; balance: string; credits: string; - transfer_icp_info: string; + transfer_info: string; documentation: string; tx_id: string; tx_timestamp: string; From 31831a59c59ff3f7ab427c0243a5b65891aa9ac8 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 7 Jan 2026 13:14:10 +0100 Subject: [PATCH 2/2] chore: lint --- .../lib/components/factory/create/FactoryCreditsWithFee.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/lib/components/factory/create/FactoryCreditsWithFee.svelte b/src/frontend/src/lib/components/factory/create/FactoryCreditsWithFee.svelte index b7b7aa70d..d0a34dc8b 100644 --- a/src/frontend/src/lib/components/factory/create/FactoryCreditsWithFee.svelte +++ b/src/frontend/src/lib/components/factory/create/FactoryCreditsWithFee.svelte @@ -1,7 +1,7 @@