From 7bc5a831b9dbb3cbaa78c6bf8f83980587809e3c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 12 Jul 2025 11:09:28 -0700 Subject: auto withdrawal confirm --- src/locales/en.json | 8 ++-- src/routes/(app)/[username]/(profile)/+page.svelte | 17 ++++++- .../(app)/[username]/accepted/[text]/+page.svelte | 55 +++++++++++----------- src/routes/(app)/settings/account/+page.svelte | 4 +- 4 files changed, 50 insertions(+), 34 deletions(-) (limited to 'src') diff --git a/src/locales/en.json b/src/locales/en.json index 6045b00d..72c3cd41 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -296,6 +296,8 @@ "placeholder": "Enter an address, invoice or username" }, "settings": { + "confirmAutoWithdrawal": "Confirm auto withdrawal settings", + "confirmAutoWithdrawalDesc": "Your auto withdrawals have been disabled. Please double check your destination address before re-enabling them or remove the address to dismiss this message.", "tip": "Default tip", "tipDesc": "Default tip percentage when auto-paying trusted users", "nostr": "Nostr", @@ -308,15 +310,15 @@ "memoPromptPlaceholder": "e.g. Please enter your name for the order", "rememberFor": "Remember for", "import": "Import secret key", - "destination": "Autowithdrawal address", + "destination": "Auto withdrawal address", "destinationDesc": "The address that withdrawals will be sent to", "destinationPlaceholder": "Enter a Bitcoin, Liquid or Lightning address", "reserve": "Reserve amount", "reserveDesc": "The amount to be left in your account after the withdrawal is complete", "shopify": "Shopify", - "threshold": "Autowithdrawal threshold", + "threshold": "Auto withdrawal threshold", "thresholdDesc": "When your balance exceeds this amount, a withdrawal will be triggered", - "autoWithdraw": "Autowithdrawal", + "autoWithdraw": "Auto withdrawal", "autoWithdrawDescription": "Enable withdrawals to an external address when your balance reaches a given threshold", "notifications": "Email notifications", "pushNotifications": "Push notifications", diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 31320197..c60c468a 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -32,12 +32,27 @@
+ {#if user?.destination && !user?.autowithdraw} +
+

+ {$t("user.settings.confirmAutoWithdrawal")} +

+
+ {$t("user.settings.confirmAutoWithdrawalDesc")} +
+ + + + Settings +
+ {/if} {#if user?.fresh}

{$t("user.settings.welcome")}

{$t("user.settings.yourUsername")} {user?.username} - {#if $password} + {#if $password} {$t("user.settings.yourPassword")} {$password}{/if}
diff --git a/src/routes/(app)/[username]/accepted/[text]/+page.svelte b/src/routes/(app)/[username]/accepted/[text]/+page.svelte index cfd9961f..d96e48e2 100644 --- a/src/routes/(app)/[username]/accepted/[text]/+page.svelte +++ b/src/routes/(app)/[username]/accepted/[text]/+page.svelte @@ -5,45 +5,44 @@ let { data } = $props(); let { nfc, text } = $derived(data); let { username } = $derived(data.subject); - let url = `https://coinos.io/p/${username}`; + let url = `https://coinos.io/p/${username.toLowerCase()}`;
-

Bitcoin Accepted Here

+

+ Bitcoin Accepted Here +

-
coinos.io/{username}
+
+ coinos.io/{username.toLowerCase()} +
{#if nfc}
-
-
- - -
Coinos
-
+
+ + +
-
-
- -
Other
- -
+
+ + + + + + +
{/if} diff --git a/src/routes/(app)/settings/account/+page.svelte b/src/routes/(app)/settings/account/+page.svelte index 481c8de7..d8b61170 100644 --- a/src/routes/(app)/settings/account/+page.svelte +++ b/src/routes/(app)/settings/account/+page.svelte @@ -204,7 +204,7 @@

-{#if user.autowithdraw} +
-{/if} +
{#if editingThreshold}