From fd3ffc26f076172abefe4193e26782d274ac7c1c Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sat, 4 Oct 2025 12:26:24 -0400 Subject: [PATCH] Improve shop settings crypto wallet and Stripe configuration UX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move crypto wallet verification disclaimer to top of section for better visibility - Remove redundant Dogecoin address display message - Ensure crypto wallet checkbox is always unchecked on page refresh - Update disclaimer to use plural form for multiple wallet addresses - Fix checkbox label alignment to display inline - Update Stripe toggle label to be more descriptive - Add JavaScript progressive enhancement for Stripe API key fields - Ensure both crypto and Stripe forms are hidden by default with graceful degradation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- make_post_sell/templates/shop_settings.j2 | 80 ++++++++++++++++------- make_post_sell/views/shop.py | 5 ++ 2 files changed, 60 insertions(+), 25 deletions(-) diff --git a/make_post_sell/templates/shop_settings.j2 b/make_post_sell/templates/shop_settings.j2 index f2ee35b..fa941c2 100644 --- a/make_post_sell/templates/shop_settings.j2 +++ b/make_post_sell/templates/shop_settings.j2 @@ -133,7 +133,7 @@
- +
@@ -261,7 +261,23 @@
+ + + + +
+
+ + + Note: We cannot verify you control these addresses. Please double-check they're correct! + Consider sending a small test amount from another wallet to verify. + + +
+
+
+

Monero (XMR) Configuration

@@ -289,11 +305,6 @@

✓ Monero wallet configured and ready to accept payments -
- - Note: We cannot verify you control this address. Please double-check it's correct! - Consider sending a small test amount from another wallet to verify. - {% else %}

@@ -324,17 +335,8 @@
- - - - -
-
-{% endif %} - -{% if request.dogecoin_enabled %} -
-
+ +

Dogecoin (DOGE) Configuration 🐕

@@ -362,12 +364,6 @@

✓ Dogecoin wallet configured and ready to accept payments -
-
- - Your shop can now accept Dogecoin payments! Funds will be automatically swept to:
- {{ doge_processor.sweep_to_address }} -
{% else %}

@@ -403,6 +399,8 @@
+ +
@@ -410,8 +408,6 @@

{% endif %} - -

@@ -603,4 +599,38 @@ Existing sales honored for download buy purchasers.
+ + {%- endblock -%} diff --git a/make_post_sell/views/shop.py b/make_post_sell/views/shop.py index a4aaf49..1241be2 100644 --- a/make_post_sell/views/shop.py +++ b/make_post_sell/views/shop.py @@ -558,6 +558,11 @@ def shop_settings(request): shop.stripe_enabled = False request.session.flash(("Stripe payments disabled", "success")) + # Handle re-enable action - if stripe is disabled and we're submitting stripe settings + elif not shop.stripe_enabled: + shop.stripe_enabled = True + request.session.flash(("Stripe payments re-enabled", "success")) + elif stripe_public_api_key != shop.stripe_public_api_key: if stripe_public_api_key.startswith("pk_"): if not stripe_test_mode and "_test_" in stripe_public_api_key: